diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index af6322b0..00000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1,12 +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/cicd is the default owner for changes in this repo -* @googleapis/yoshi-java @googleapis/cicd -**/*.java @googleapis/cicd - -# The java-samples-reviewers team is the default owner for samples changes -samples/**/*.java @googleapis/java-samples-reviewers diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index a0296d4a..00000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,51 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve - ---- - -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-container/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. container 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 754e30c6..00000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this library - ---- - -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 b1597f98..00000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,7 +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-container/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 # ☕️ diff --git a/.github/blunderbuss.yml b/.github/blunderbuss.yml deleted file mode 100644 index 1a23ea42..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/master/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 47c2ba13..00000000 --- a/.github/generated-files-bot.yml +++ /dev/null @@ -1,11 +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]' diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata deleted file mode 100644 index 46531307..00000000 --- a/.github/readme/synth.metadata/synth.metadata +++ /dev/null @@ -1,18 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/java-container.git", - "sha": "af19b9e0bfb97466403b24d80d714cb3a66dc4e2" - } - }, - { - "git": { - "name": "synthtool", - "remote": "https://github.com/googleapis/synthtool.git", - "sha": "2414b817065726eae0bc525346c7e874f969369d" - } - } - ] -} \ 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/.github/release-please.yml b/.github/release-please.yml index dce2c845..bf18750f 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -1,2 +1,16 @@ +bumpMinorPreMajor: true +handleGHRelease: true releaseType: java-yoshi -bumpMinorPreMajor: true \ No newline at end of file +branches: + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-yoshi + branch: java7 + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-backport + branch: 2.2.x + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-backport + branch: 2.3.x diff --git a/.github/release-trigger.yml b/.github/release-trigger.yml new file mode 100644 index 00000000..867b4da2 --- /dev/null +++ b/.github/release-trigger.yml @@ -0,0 +1,2 @@ +enabled: true +multiScmName: java-container 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 6bddd18e..00000000 --- a/.github/sync-repo-settings.yaml +++ /dev/null @@ -1,49 +0,0 @@ - -# 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" -# List of explicit permissions to add (additive only) -permissionRules: -- team: yoshi-admins - permission: admin -- team: yoshi-java-admins - permission: admin -- team: yoshi-java - permission: push \ No newline at end of file diff --git a/.github/trusted-contribution.yml b/.github/trusted-contribution.yml deleted file mode 100644 index f247d5c7..00000000 --- a/.github/trusted-contribution.yml +++ /dev/null @@ -1,2 +0,0 @@ -trustedContributors: -- renovate-bot \ No newline at end of file diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml deleted file mode 100644 index 7513acae..00000000 --- a/.github/workflows/approve-readme.yaml +++ /dev/null @@ -1,54 +0,0 @@ -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@v3 - 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 7c8816a7..00000000 --- a/.github/workflows/auto-release.yaml +++ /dev/null @@ -1,88 +0,0 @@ -on: - pull_request: -name: auto-release -jobs: - approve: - runs-on: ubuntu-latest - if: contains(github.head_ref, 'release-please') - steps: - - uses: actions/github-script@v3 - 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(master): release " - if ( !context.payload.pull_request.title.startsWith("chore(master): release") ) { - return; - } - - // only approve PRs with pom.xml and versions.txt changes - const filesPromise = github.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.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.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.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 98a472e1..00000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,90 +0,0 @@ -on: - push: - branches: - - master - pull_request: -name: ci -jobs: - units: - runs-on: ubuntu-latest - strategy: - matrix: - java: [7, 8, 11] - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 - with: - java-version: ${{matrix.java}} - - run: java -version - - 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: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 - with: - java-version: 8 - - run: java -version - - run: .kokoro/build.bat - env: - JOB_TYPE: test - dependencies: - runs-on: ubuntu-latest - strategy: - matrix: - java: [8, 11] - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 - with: - 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: | - 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: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 - with: - java-version: 8 - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: lint - clirr: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 - with: - java-version: 8 - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: clirr \ No newline at end of file diff --git a/.github/workflows/samples.yaml b/.github/workflows/samples.yaml deleted file mode 100644 index c46230a7..00000000 --- a/.github/workflows/samples.yaml +++ /dev/null @@ -1,14 +0,0 @@ -on: - pull_request: -name: samples -jobs: - checkstyle: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 - with: - 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 598779ba..00000000 --- a/.gitignore +++ /dev/null @@ -1,47 +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 -venv - -.flattened-pom.xml diff --git a/.kokoro/build.bat b/.kokoro/build.bat deleted file mode 100644 index 05826ad9..00000000 --- a/.kokoro/build.bat +++ /dev/null @@ -1,3 +0,0 @@ -:: 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 44512626..00000000 --- a/.kokoro/build.sh +++ /dev/null @@ -1,118 +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 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 \ - -T 1C - -# if GOOGLE_APPLICATION_CREDIENTIALS 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 -Dclirr.skip=true -Denforcer.skip=true - RETURN_CODE=$? - ;; -lint) - mvn com.coveo:fmt-maven-plugin:check - RETURN_CODE=$? - ;; -javadoc) - mvn javadoc:javadoc javadoc:test-javadoc - RETURN_CODE=$? - ;; -integration) - mvn -B ${INTEGRATION_TEST_ARGS} \ - -Penable-integration-tests \ - -DtrimStackTrace=false \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -fae \ - verify - 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 - pushd ${SAMPLES_DIR} - mvn -B \ - -Penable-samples \ - -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 -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_BUILD_COP}" == "true" ]] -then - chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/flakybot - ${KOKORO_GFILE_DIR}/linux_amd64/flakybot -repo=googleapis/java-container -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 5cf7ba49..00000000 --- a/.kokoro/coerce_logs.sh +++ /dev/null @@ -1,38 +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 - echo "processing ${xml}" - 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 047eed5a..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-container/.kokoro/trampoline.sh" - -# Tell the trampoline which build file to use. -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-container/.kokoro/build.sh" -} diff --git a/.kokoro/common.sh b/.kokoro/common.sh deleted file mode 100644 index ace89f45..00000000 --- a/.kokoro/common.sh +++ /dev/null @@ -1,58 +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) $*"; } \ No newline at end of file diff --git a/.kokoro/continuous/common.cfg b/.kokoro/continuous/common.cfg deleted file mode 100644 index 518a1974..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-container/.kokoro/trampoline.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-container/.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 b375c8d3..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-container \ - --package-name="container" \ - --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/continuous/readme.cfg b/.kokoro/continuous/readme.cfg deleted file mode 100644 index 55e2b514..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-container/.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" -} diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh deleted file mode 100755 index c91e5a56..00000000 --- a/.kokoro/dependencies.sh +++ /dev/null @@ -1,89 +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 Java -java -version -echo $JOB_TYPE - -export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m" - -# this should run maven enforcer -retry_with_backoff 3 10 \ - mvn install -B -V \ - -DskipTests=true \ - -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/\\s--\\smodule.*// >.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 $(find -name ".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 \ No newline at end of file diff --git a/.kokoro/nightly/common.cfg b/.kokoro/nightly/common.cfg deleted file mode 100644 index 518a1974..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-container/.kokoro/trampoline.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-container/.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 0048c8ec..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: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "ENABLE_BUILD_COP" - 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" -} 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 c14ec2e7..00000000 --- a/.kokoro/nightly/java8-osx.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-container/.kokoro/build.sh" diff --git a/.kokoro/nightly/java8-win.cfg b/.kokoro/nightly/java8-win.cfg deleted file mode 100644 index 6b638557..00000000 --- a/.kokoro/nightly/java8-win.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-container/.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 f2542931..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_BUILD_COP" - value: "true" -} 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 828ed806..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-container/.kokoro/trampoline.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-container/.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 1a5bf99a..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-container/.kokoro/dependencies.sh" -} 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 c14ec2e7..00000000 --- a/.kokoro/presubmit/java8-osx.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-container/.kokoro/build.sh" diff --git a/.kokoro/presubmit/java8-win.cfg b/.kokoro/presubmit/java8-win.cfg deleted file mode 100644 index 6b638557..00000000 --- a/.kokoro/presubmit/java8-win.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-container/.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 555f496e..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-container/.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 ef97674a..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-container - -# 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-container \ - --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 045db081..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-container/.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-container/.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 d064ad88..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-container \ - --package-name="container" \ - --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 dd1cdd8f..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-container/.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 6e3f6599..00000000 --- a/.kokoro/release/common.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -# Copyright 2018 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 - -# 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 67478061..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-container/.kokoro/release/drop.sh" -} diff --git a/.kokoro/release/drop.sh b/.kokoro/release/drop.sh deleted file mode 100755 index 5c4551ef..00000000 --- a/.kokoro/release/drop.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash -# Copyright 2018 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 - -# 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 2331ff0a..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-container/.kokoro/release/promote.sh" -} diff --git a/.kokoro/release/promote.sh b/.kokoro/release/promote.sh deleted file mode 100755 index 1fa95fa5..00000000 --- a/.kokoro/release/promote.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -# Copyright 2018 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 - -# 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 a39cf383..00000000 --- a/.kokoro/release/publish_javadoc.cfg +++ /dev/null @@ -1,29 +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: "STAGING_BUCKET_V2" - value: "docs-staging-v2" - # Production will be at: docs-staging-v2 -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-container/.kokoro/release/publish_javadoc.sh" -} - - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "docuploader_service_account" - } - } -} \ No newline at end of file diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh deleted file mode 100755 index 0105ba1f..00000000 --- a/.kokoro/release/publish_javadoc.sh +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/bash -# Copyright 2019 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}" ]]; then - echo "Need to set STAGING_BUCKET environment variable" - 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")/../../ - -# install docuploader package -python3 -m pip install gcp-docuploader - -# compile all packages -mvn clean install -B -q -DskipTests=true - -export NAME=google-cloud-container -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} - -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 -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 deleted file mode 100644 index 12d10cfa..00000000 --- a/.kokoro/release/publish_javadoc11.cfg +++ /dev/null @@ -1,30 +0,0 @@ -# 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-container/.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 2474ab2f..00000000 --- a/.kokoro/release/publish_javadoc11.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/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-container -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/.kokoro/release/snapshot.cfg b/.kokoro/release/snapshot.cfg deleted file mode 100644 index 49c2f9e6..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-container/.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 098168a7..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 install 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 7ebc3e9a..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-container/.kokoro/release/stage.sh" -} - -# Need to save the properties file -action { - define_artifacts { - regex: "github/java-container/target/nexus-staging/staging/*.properties" - strip_prefix: "github/java-container" - } -} - -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 16126d2e..00000000 --- a/.kokoro/release/stage.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -# Copyright 2018 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 - -# Start the releasetool reporter -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" - -# 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 - mvn nexus-staging:release -B \ - -DperformRelease=true \ - --settings=settings.xml -fi \ No newline at end of file diff --git a/.kokoro/trampoline.sh b/.kokoro/trampoline.sh deleted file mode 100644 index 9da0f839..00000000 --- a/.kokoro/trampoline.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash -# Copyright 2018 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 -# 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 1291bf6c..00000000 --- a/.repo-metadata.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "container", - "name_pretty": "Kubernetes Engine", - "product_documentation": "https://cloud.google.com/kubernetes-engine/", - "client_documentation": "https://googleapis.dev/java/google-cloud-container/latest/", - "issue_tracker": "https://issuetracker.google.com/savedsearches/559777", - "release_level": "ga", - "language": "java", - "repo": "googleapis/java-container", - "repo_short": "java-container", - "distribution_name": "com.google.cloud:google-cloud-container", - "codeowner_team": "@googleapis/cicd", - "api_id": "container.googleapis.com", - "api_description": "is an enterprise-grade platform for containerized applications, including stateful and stateless, AI and ML, Linux and Windows, complex and simple web apps, API, and backend services. Leverage industry-first features like four-way auto-scaling and no-stress management. Optimize GPU and TPU provisioning, use integrated developer tools, and get multi-cluster support from SREs.", - "transport": "grpc" -} diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 4d0a2e8c..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,185 +0,0 @@ -# Changelog - -### [1.2.4](https://www.github.com/googleapis/java-container/compare/v1.2.3...v1.2.4) (2021-01-14) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.18.0 ([#341](https://www.github.com/googleapis/java-container/issues/341)) ([0aff153](https://www.github.com/googleapis/java-container/commit/0aff1537590d84bcdbed1129ce753e8cc965936b)) - -### [1.2.3](https://www.github.com/googleapis/java-container/compare/v1.2.2...v1.2.3) (2020-12-15) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.17.0 ([#327](https://www.github.com/googleapis/java-container/issues/327)) ([3bdd669](https://www.github.com/googleapis/java-container/commit/3bdd66923be3d6c82bdf91ad525a8bfe62b3d37d)) - -### [1.2.2](https://www.github.com/googleapis/java-container/compare/v1.2.1...v1.2.2) (2020-12-14) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.1 ([47e74ae](https://www.github.com/googleapis/java-container/commit/47e74ae30d4491c5609cc67ff2fda2b80f8163fb)) - -### [1.2.1](https://www.github.com/googleapis/java-container/compare/v1.2.0...v1.2.1) (2020-12-02) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.0 ([#311](https://www.github.com/googleapis/java-container/issues/311)) ([f883c47](https://www.github.com/googleapis/java-container/commit/f883c47243cfa7b9f21ecb5a8ee879b90f24ad0d)) - -## [1.2.0](https://www.github.com/googleapis/java-container/compare/v1.1.2...v1.2.0) (2020-11-19) - - -### Features - -* **v1:** sync v1 GKE API ([#289](https://www.github.com/googleapis/java-container/issues/289)) ([8882a96](https://www.github.com/googleapis/java-container/commit/8882a9691e6dc1e588a4283c3f4abaa7cd4852cd)) - -### [1.1.2](https://www.github.com/googleapis/java-container/compare/v1.1.1...v1.1.2) (2020-11-11) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.15.0 ([#283](https://www.github.com/googleapis/java-container/issues/283)) ([94fd8ba](https://www.github.com/googleapis/java-container/commit/94fd8ba061591e4c88fc3148f14aec611408963b)) - -### [1.1.1](https://www.github.com/googleapis/java-container/compare/v1.1.0...v1.1.1) (2020-11-02) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.14.1 ([#270](https://www.github.com/googleapis/java-container/issues/270)) ([40f286b](https://www.github.com/googleapis/java-container/commit/40f286b31031b01e31c88572c6b1a369fd127944)) - -## [1.1.0](https://www.github.com/googleapis/java-container/compare/v1.0.4...v1.1.0) (2020-10-30) - - -### Features - -* **deps:** adopt flatten plugin and google-cloud-shared-dependencies ([#206](https://www.github.com/googleapis/java-container/issues/206)) ([d001d6f](https://www.github.com/googleapis/java-container/commit/d001d6fbd62cab4d4264fc34df73684d0cdbd0e0)) - - -### Bug Fixes - -* migrate to grpc_service_config ([#202](https://www.github.com/googleapis/java-container/issues/202)) ([e909f20](https://www.github.com/googleapis/java-container/commit/e909f20144e88b90127a391b510d86139c6ac9fe)) -* restore retry config for deleteCluster, deleteNode ([#166](https://www.github.com/googleapis/java-container/issues/166)) ([697949e](https://www.github.com/googleapis/java-container/commit/697949ef41ccc010f3fe221902699bbcf5ef0763)) - - -### Documentation - -* fix a broken link in the docs. ([#179](https://www.github.com/googleapis/java-container/issues/179)) ([1ea5933](https://www.github.com/googleapis/java-container/commit/1ea59336a0790d464626bf99ea2f9c6c393182d2)) -* Fixed broken links in the reference documentation ([#183](https://www.github.com/googleapis/java-container/issues/183)) ([ccfdc18](https://www.github.com/googleapis/java-container/commit/ccfdc1883955bb4b24697ccbb8a3dd42783c475f)) - - -### Dependencies - -* update core dependencies ([#189](https://www.github.com/googleapis/java-container/issues/189)) ([2a706c3](https://www.github.com/googleapis/java-container/commit/2a706c35dcd2162467b7204c86f86332009beffc)) -* update dependency com.google.api:api-common to v1.9.1 ([#171](https://www.github.com/googleapis/java-container/issues/171)) ([b98a6e5](https://www.github.com/googleapis/java-container/commit/b98a6e5cf003f7b86c602449353f572b8cabcfeb)) -* update dependency com.google.api:api-common to v1.9.2 ([#178](https://www.github.com/googleapis/java-container/issues/178)) ([bb9954f](https://www.github.com/googleapis/java-container/commit/bb9954ff7982df60c6ebc5f672ce935888e80dc8)) -* update dependency com.google.api.grpc:proto-google-common-protos to v1.18.0 ([#160](https://www.github.com/googleapis/java-container/issues/160)) ([cb5982a](https://www.github.com/googleapis/java-container/commit/cb5982ae91ac5a2a342a1df414a3a4683b7621cf)) -* update dependency com.google.cloud:google-cloud-core to v1.93.5 ([#172](https://www.github.com/googleapis/java-container/issues/172)) ([c3635c7](https://www.github.com/googleapis/java-container/commit/c3635c7dbade7823c03aa3747a4a927a3f7312f4)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.13.0 ([#252](https://www.github.com/googleapis/java-container/issues/252)) ([63294a5](https://www.github.com/googleapis/java-container/commit/63294a5b0a33f837acca66cbb401d92004474a5b)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.2 ([#209](https://www.github.com/googleapis/java-container/issues/209)) ([b1b8994](https://www.github.com/googleapis/java-container/commit/b1b8994c7f7ca9daced77a6daf75f7d4298ff9db)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.3 ([#211](https://www.github.com/googleapis/java-container/issues/211)) ([a9a195b](https://www.github.com/googleapis/java-container/commit/a9a195b5d351638970605f023590dd64f7b8a910)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 ([#217](https://www.github.com/googleapis/java-container/issues/217)) ([ce08762](https://www.github.com/googleapis/java-container/commit/ce08762db57ee3473fd7abf977745381271924a8)) -* update dependency com.google.protobuf:protobuf-bom to v3.12.0 ([#164](https://www.github.com/googleapis/java-container/issues/164)) ([0cdb923](https://www.github.com/googleapis/java-container/commit/0cdb92371a1842495a1fd181e72fc6f9f95c4e05)) -* update dependency com.google.protobuf:protobuf-bom to v3.12.2 ([#169](https://www.github.com/googleapis/java-container/issues/169)) ([b4fe079](https://www.github.com/googleapis/java-container/commit/b4fe07927691da958c033238848d6e4ddb96e6c6)) -* update dependency io.grpc:grpc-bom to v1.29.0 ([#152](https://www.github.com/googleapis/java-container/issues/152)) ([856f1cc](https://www.github.com/googleapis/java-container/commit/856f1cccdc00c003e4731f1d10d6cd85c1593506)) -* update dependency io.grpc:grpc-bom to v1.30.0 ([#184](https://www.github.com/googleapis/java-container/issues/184)) ([e105f60](https://www.github.com/googleapis/java-container/commit/e105f60fbde9ad45e9d03011a232e0978fe0fe09)) -* update dependency org.threeten:threetenbp to v1.4.4 ([#154](https://www.github.com/googleapis/java-container/issues/154)) ([a483161](https://www.github.com/googleapis/java-container/commit/a48316167d0cdebd6716484dcf026d4af6e6baec)) - -### [1.0.4](https://www.github.com/googleapis/java-container/compare/v1.0.3...v1.0.4) (2020-04-20) - - -### Dependencies - -* update dependency com.google.guava:guava-bom to v29 ([#130](https://www.github.com/googleapis/java-container/issues/130)) ([bd004cd](https://www.github.com/googleapis/java-container/commit/bd004cdee266b0bc50e915ff3990e7041f5d2e19)) - -### [1.0.3](https://www.github.com/googleapis/java-container/compare/v1.0.2...v1.0.3) (2020-04-13) - - -### Documentation - -* display resource name patterns in code font. ([#125](https://www.github.com/googleapis/java-container/issues/125)) ([acc4ab7](https://www.github.com/googleapis/java-container/commit/acc4ab75166c7738d557fe1977a4fc185660b814)) - -### [1.0.2](https://www.github.com/googleapis/java-container/compare/v1.0.1...v1.0.2) (2020-04-09) - - -### Documentation - -* **v1:** fix relative URLs in documentation ([#119](https://www.github.com/googleapis/java-container/issues/119)) ([4951555](https://www.github.com/googleapis/java-container/commit/49515554a9a4eba977301cc8a37bac102cae156e)), closes [#101](https://www.github.com/googleapis/java-container/issues/101) [#101](https://www.github.com/googleapis/java-container/issues/101) [#99](https://www.github.com/googleapis/java-container/issues/99) [#106](https://www.github.com/googleapis/java-container/issues/106) [#80](https://www.github.com/googleapis/java-container/issues/80) [#113](https://www.github.com/googleapis/java-container/issues/113) [#95](https://www.github.com/googleapis/java-container/issues/95) [#111](https://www.github.com/googleapis/java-container/issues/111) [#475](https://www.github.com/googleapis/java-container/issues/475) [#475](https://www.github.com/googleapis/java-container/issues/475) [#465](https://www.github.com/googleapis/java-container/issues/465) [#465](https://www.github.com/googleapis/java-container/issues/465) [#476](https://www.github.com/googleapis/java-container/issues/476) [#476](https://www.github.com/googleapis/java-container/issues/476) - -### [1.0.1](https://www.github.com/googleapis/java-container/compare/v1.0.0...v1.0.1) (2020-04-07) - - -### Dependencies - -* update core dependencies ([#99](https://www.github.com/googleapis/java-container/issues/99)) ([2b4af5b](https://www.github.com/googleapis/java-container/commit/2b4af5b6b9204cede271095d5e677d432ef6c9fc)) -* update dependency com.google.api:api-common to v1.9.0 ([#106](https://www.github.com/googleapis/java-container/issues/106)) ([3953dd4](https://www.github.com/googleapis/java-container/commit/3953dd4d13236219c45b48bd3ed2f6760c73273d)) -* update dependency com.google.cloud:google-cloud-core to v1.93.1 ([#80](https://www.github.com/googleapis/java-container/issues/80)) ([00fee0a](https://www.github.com/googleapis/java-container/commit/00fee0aca2e6cc5c23fa96be968daa759bd46631)) -* update dependency com.google.cloud:google-cloud-core to v1.93.4 ([#113](https://www.github.com/googleapis/java-container/issues/113)) ([086d78e](https://www.github.com/googleapis/java-container/commit/086d78e62879de5991af8789f3597b1754918b6a)) -* update dependency org.threeten:threetenbp to v1.4.2 ([#95](https://www.github.com/googleapis/java-container/issues/95)) ([e5746bb](https://www.github.com/googleapis/java-container/commit/e5746bb4194716f2e6229f8c1bf36f64d8fd8953)) -* update dependency org.threeten:threetenbp to v1.4.3 ([#111](https://www.github.com/googleapis/java-container/issues/111)) ([1f34ca1](https://www.github.com/googleapis/java-container/commit/1f34ca1b5ec5f31728c0537ef91106678efb8dbd)) - -## [1.0.0](https://www.github.com/googleapis/java-container/compare/v0.119.1...v1.0.0) (2020-02-27) - - -### Features - -* promote to GA ([#77](https://www.github.com/googleapis/java-container/issues/77)) ([e3c268d](https://www.github.com/googleapis/java-container/commit/e3c268d80506403ce754fbda9cbd4009975a4e2f)) - - -### Bug Fixes - -* **regen:** make deprecated fields optional ([#64](https://www.github.com/googleapis/java-container/issues/64)) ([92d3d87](https://www.github.com/googleapis/java-container/commit/92d3d87fcb308c409175650726c32fd962863266)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-core to v1.92.5 ([24627f1](https://www.github.com/googleapis/java-container/commit/24627f181cf3d38857fb47b05a8898b5b29b7e5c)) -* update dependency com.google.protobuf:protobuf-bom to v3.11.4 ([e5f3ab9](https://www.github.com/googleapis/java-container/commit/e5f3ab9c112cf9f2d05fa3a70eeaf58246e0166c)) -* update dependency io.grpc:grpc-bom to v1.27.1 ([42c9bac](https://www.github.com/googleapis/java-container/commit/42c9bac676770edfd402230a2af3905a2a806ca1)) -* update dependency io.grpc:grpc-bom to v1.27.2 ([f3fe5b4](https://www.github.com/googleapis/java-container/commit/f3fe5b48d9aec62bdf57431dca41e333f252791f)) - - -### Documentation - -* **regen:** update sample code to set total timeout, add API client header test ([584d428](https://www.github.com/googleapis/java-container/commit/584d428034a5dc509e04806a0e0353c7ac717e05)) - -### [0.119.1](https://www.github.com/googleapis/java-container/compare/v0.119.0...v0.119.1) (2020-02-04) - - -### Dependencies - -* update core dependencies ([#37](https://www.github.com/googleapis/java-container/issues/37)) ([d78962f](https://www.github.com/googleapis/java-container/commit/d78962fbec8b5de770104f6a350d987955d570ae)) -* update core dependencies ([#52](https://www.github.com/googleapis/java-container/issues/52)) ([e2f8c58](https://www.github.com/googleapis/java-container/commit/e2f8c58faaddb1031cc1ab6c71f21c16bb0bec38)) -* update dependency com.google.guava:guava-bom to v28.2-android ([#35](https://www.github.com/googleapis/java-container/issues/35)) ([2f666f3](https://www.github.com/googleapis/java-container/commit/2f666f3dbf710b78d799f4f7ad78c167f39f79e3)) -* update dependency com.google.protobuf:protobuf-bom to v3.11.3 ([#54](https://www.github.com/googleapis/java-container/issues/54)) ([00cdc92](https://www.github.com/googleapis/java-container/commit/00cdc9250a72188b175979da0c13db81457fe60a)) -* update dependency com.google.protobuf:protobuf-java to v3.11.3 ([#55](https://www.github.com/googleapis/java-container/issues/55)) ([2b6082a](https://www.github.com/googleapis/java-container/commit/2b6082a9346cad8cdae279e03190d11deb898301)) -* update dependency org.threeten:threetenbp to v1.4.1 ([ccc8dbf](https://www.github.com/googleapis/java-container/commit/ccc8dbf68a46ebbfb08c074e2e607aa94dc5d782)) - -## [0.119.0](https://www.github.com/googleapis/java-container/compare/v0.118.0...v0.119.0) (2020-01-07) - - -### Features - -* add ListUsableSubnetworks rpc, k8s taint support, many Cluster configuration options ([#30](https://www.github.com/googleapis/java-container/issues/30)) ([1a5918d](https://www.github.com/googleapis/java-container/commit/1a5918db443548b396e4d9f0ad2b9bdb01523553)) - - -### Dependencies - -* update core dependencies ([#33](https://www.github.com/googleapis/java-container/issues/33)) ([8e2a8e5](https://www.github.com/googleapis/java-container/commit/8e2a8e5e5718ba88577311a7b483acf22c9e806c)) -* update dependency io.grpc:grpc-bom to v1.26.0 ([734a0c8](https://www.github.com/googleapis/java-container/commit/734a0c875fd4c85adde8b3363e112c8b3a98c30d)) - -## [0.118.0](https://www.github.com/googleapis/java-container/compare/0.117.0...v0.118.0) (2019-12-05) - - -### Features - -* make repo releasable, add parent/bom ([#1](https://www.github.com/googleapis/java-container/issues/1)) ([ceda307](https://www.github.com/googleapis/java-container/commit/ceda307047f38657b1966037adc9ee72aae52130)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-core to v1.91.3 ([#20](https://www.github.com/googleapis/java-container/issues/20)) ([df86da9](https://www.github.com/googleapis/java-container/commit/df86da9355286360c4c82785aa5446decf74060c)) -* update dependency io.grpc:grpc-bom to v1.25.0 ([#6](https://www.github.com/googleapis/java-container/issues/6)) ([4b7b3e3](https://www.github.com/googleapis/java-container/commit/4b7b3e3f2a937fcc7bc50d46984158188caee0f7)) -* update gax.version to v1.50.1 ([#9](https://www.github.com/googleapis/java-container/issues/9)) ([8635a50](https://www.github.com/googleapis/java-container/commit/8635a506d8ce8854fc7d537eae6deda10e401e67)) -* update protobuf packages to v3.11.1 ([#17](https://www.github.com/googleapis/java-container/issues/17)) ([c2d8228](https://www.github.com/googleapis/java-container/commit/c2d822831eafd2d9fdd7c44e0d59aecd6eb7987d)) 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 diff --git a/README.md b/README.md index 59af9aff..886c2227 100644 --- a/README.md +++ b/README.md @@ -8,16 +8,26 @@ Java idiomatic client for [Kubernetes Engine][product-docs]. - [Product Documentation][product-docs] - [Client Library Documentation][javadocs] + +:bus: In October 2022, this library has moved to +[google-cloud-java/java-container]( +https://github.com/googleapis/google-cloud-java/tree/main/java-container). +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-container`) remain the same. +Sample code is in https://github.com/GoogleCloudPlatform/java-docs-samples. + ## 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 com.google.cloud libraries-bom - 16.4.0 + 26.1.4 pom import @@ -34,35 +44,44 @@ 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 google-cloud-container - 1.2.4 + 2.6.0 ``` -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:16.4.0') +implementation platform('com.google.cloud:libraries-bom:26.10.0') -compile 'com.google.cloud:google-cloud-container' +implementation 'com.google.cloud:google-cloud-container' ``` -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 -compile 'com.google.cloud:google-cloud-container:1.2.4' +implementation 'com.google.cloud:google-cloud-container:2.16.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-container" % "1.2.4" +libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.16.0" ``` + ## Authentication See the [Authentication][authentication] section in the base directory's README. +## Authorization + +The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired Kubernetes Engine APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Kubernetes Engine API calls. + ## Getting Started ### Prerequisites @@ -70,7 +89,7 @@ See the [Authentication][authentication] section in the base directory's README. You will need a [Google Cloud Platform Console][developer-console] project with the Kubernetes Engine [API enabled][enable-api]. [Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by -[installing the Google Cloud SDK][cloud-sdk] and running the following commands in command line: +[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. ### Installation and setup @@ -99,9 +118,49 @@ To get help, follow the instructions in the [shared Troubleshooting document][tr Kubernetes Engine uses gRPC for the transport layer. -## Java Versions +## Supported Java Versions + +Java 8 or above is required for using this client. + +Google's Java client libraries, +[Google Cloud Client Libraries][cloudlibs] +and +[Google Cloud API Libraries][apilibs], +follow the +[Oracle Java SE support roadmap][oracle] +(see the Oracle Java SE Product Releases section). + +### For new development -Java 7 or above is required for using this client. +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 @@ -109,6 +168,7 @@ Java 7 or above is required for using this client. This library follows [Semantic Versioning](http://semver.org/). + ## Contributing @@ -120,6 +180,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. @@ -128,7 +189,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] @@ -137,7 +197,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/kubernetes-engine/ -[javadocs]: https://googleapis.dev/java/google-cloud-container/latest/ +[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-container/latest/history [kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-container/java7.svg [kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-container/java7.html [kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-container/java8.svg @@ -148,18 +208,27 @@ 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-container/java8-win.html [kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-container/java11.svg [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-container/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-container.svg -[maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-container&core=gav +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.16.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication +[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes +[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles +[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/ -[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/master/troubleshooting/readme.md#troubleshooting -[contributing]: https://github.com/googleapis/java-container/blob/master/CONTRIBUTING.md -[code-of-conduct]: https://github.com/googleapis/java-container/blob/master/CODE_OF_CONDUCT.md#contributor-code-of-conduct -[license]: https://github.com/googleapis/java-container/blob/master/LICENSE +[cloud-cli]: https://cloud.google.com/cli +[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting +[contributing]: https://github.com/googleapis/java-container/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/java-container/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/java-container/blob/main/LICENSE [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=container.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png + +[semver]: https://semver.org/ +[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained +[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries +[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html +[g-c-j]: http://github.com/googleapis/google-cloud-java diff --git a/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. 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-container-bom/pom.xml b/google-cloud-container-bom/pom.xml deleted file mode 100644 index 331a3717..00000000 --- a/google-cloud-container-bom/pom.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-container-bom - 1.2.4 - pom - - com.google.cloud - google-cloud-shared-config - 0.10.0 - - - Google Cloud container BOM - https://github.com/googleapis/java-container - - BOM for Google Cloud Container - - - - Google LLC - - - - - chingor13 - Jeff Ching - chingor@google.com - Google LLC - - Developer - - - - - - scm:git:https://github.com/googleapis/java-container.git - scm:git:git@github.com:googleapis/java-container.git - https://github.com/googleapis/java-container - - - - - 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 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - com.google.api.grpc - grpc-google-cloud-container-v1 - 1.2.4 - - - com.google.api.grpc - proto-google-cloud-container-v1 - 1.2.4 - - - com.google.cloud - google-cloud-container - 1.2.4 - - - - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - - true - - - - - \ No newline at end of file diff --git a/google-cloud-container/pom.xml b/google-cloud-container/pom.xml deleted file mode 100644 index 9af5323b..00000000 --- a/google-cloud-container/pom.xml +++ /dev/null @@ -1,114 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-container - 1.2.4 - jar - Google Cloud Container - https://github.com/googleapis/java-container - Java idiomatic client for Google Cloud Container - - com.google.cloud - google-cloud-container-parent - 1.2.4 - - - google-cloud-container - - - - 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-container-v1 - - - com.google.guava - guava - - - com.google.api - gax - - - com.google.api - gax-grpc - - - org.threeten - threetenbp - - - - - junit - junit - test - - - com.google.cloud - google-cloud-core - test - - - - com.google.api.grpc - grpc-google-cloud-container-v1 - test - - - - com.google.api - gax-grpc - testlib - test - - - - - - java9 - - [9,) - - - - javax.annotation - javax.annotation-api - - - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - \ No newline at end of file diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java deleted file mode 100644 index 30aba4dc..00000000 --- a/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java +++ /dev/null @@ -1,3642 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.container.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; -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.container.v1.stub.ClusterManagerStub; -import com.google.cloud.container.v1.stub.ClusterManagerStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.container.v1.AddonsConfig; -import com.google.container.v1.CancelOperationRequest; -import com.google.container.v1.Cluster; -import com.google.container.v1.ClusterUpdate; -import com.google.container.v1.CompleteIPRotationRequest; -import com.google.container.v1.CreateClusterRequest; -import com.google.container.v1.CreateNodePoolRequest; -import com.google.container.v1.DeleteClusterRequest; -import com.google.container.v1.DeleteNodePoolRequest; -import com.google.container.v1.GetClusterRequest; -import com.google.container.v1.GetJSONWebKeysRequest; -import com.google.container.v1.GetJSONWebKeysResponse; -import com.google.container.v1.GetNodePoolRequest; -import com.google.container.v1.GetOperationRequest; -import com.google.container.v1.GetServerConfigRequest; -import com.google.container.v1.ListClustersRequest; -import com.google.container.v1.ListClustersResponse; -import com.google.container.v1.ListNodePoolsRequest; -import com.google.container.v1.ListNodePoolsResponse; -import com.google.container.v1.ListOperationsRequest; -import com.google.container.v1.ListOperationsResponse; -import com.google.container.v1.ListUsableSubnetworksRequest; -import com.google.container.v1.ListUsableSubnetworksResponse; -import com.google.container.v1.MaintenancePolicy; -import com.google.container.v1.NetworkPolicy; -import com.google.container.v1.NodePool; -import com.google.container.v1.Operation; -import com.google.container.v1.RollbackNodePoolUpgradeRequest; -import com.google.container.v1.ServerConfig; -import com.google.container.v1.SetAddonsConfigRequest; -import com.google.container.v1.SetLabelsRequest; -import com.google.container.v1.SetLegacyAbacRequest; -import com.google.container.v1.SetLocationsRequest; -import com.google.container.v1.SetLoggingServiceRequest; -import com.google.container.v1.SetMaintenancePolicyRequest; -import com.google.container.v1.SetMasterAuthRequest; -import com.google.container.v1.SetMonitoringServiceRequest; -import com.google.container.v1.SetNetworkPolicyRequest; -import com.google.container.v1.SetNodePoolAutoscalingRequest; -import com.google.container.v1.SetNodePoolManagementRequest; -import com.google.container.v1.SetNodePoolSizeRequest; -import com.google.container.v1.StartIPRotationRequest; -import com.google.container.v1.UpdateClusterRequest; -import com.google.container.v1.UpdateMasterRequest; -import com.google.container.v1.UpdateNodePoolRequest; -import com.google.container.v1.UsableSubnetwork; -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: Google Kubernetes Engine Cluster Manager v1 - * - *

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 (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
- *   String parent = "parent-995424086";
- *   ListClustersResponse response = clusterManagerClient.listClusters(parent);
- * }
- * }
- * - *

Note: close() needs to be called on the ClusterManagerClient 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 ClusterManagerSettings to - * create(). For example: - * - *

To customize credentials: - * - *

{@code
- * ClusterManagerSettings clusterManagerSettings =
- *     ClusterManagerSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * ClusterManagerClient clusterManagerClient = ClusterManagerClient.create(clusterManagerSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * ClusterManagerSettings clusterManagerSettings =
- *     ClusterManagerSettings.newBuilder().setEndpoint(myEndpoint).build();
- * ClusterManagerClient clusterManagerClient = ClusterManagerClient.create(clusterManagerSettings);
- * }
- * - *

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

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String parent = "parent-995424086";
-   *   ListClustersResponse response = clusterManagerClient.listClusters(parent);
-   * }
-   * }
- * - * @param parent The parent (project and location) where the clusters will be listed. Specified in - * the format `projects/*/locations/*`. Location "-" matches all zones and all - * regions. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListClustersResponse listClusters(String parent) { - ListClustersRequest request = ListClustersRequest.newBuilder().setParent(parent).build(); - return listClusters(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all clusters owned by a project in either the specified zone or all zones. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   ListClustersResponse response = clusterManagerClient.listClusters(projectId, zone);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated - * and replaced by the parent field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides, - * or "-" for all zones. This field has been deprecated and replaced by the parent field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListClustersResponse listClusters(String projectId, String zone) { - ListClustersRequest request = - ListClustersRequest.newBuilder().setProjectId(projectId).setZone(zone).build(); - return listClusters(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all clusters owned by a project in either the specified zone or all zones. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   ListClustersRequest request =
-   *       ListClustersRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setParent("parent-995424086")
-   *           .build();
-   *   ListClustersResponse response = clusterManagerClient.listClusters(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListClustersResponse listClusters(ListClustersRequest request) { - return listClustersCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all clusters owned by a project in either the specified zone or all zones. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   ListClustersRequest request =
-   *       ListClustersRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setParent("parent-995424086")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.listClustersCallable().futureCall(request);
-   *   // Do something.
-   *   ListClustersResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable listClustersCallable() { - return stub.listClustersCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the details of a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String name = "name3373707";
-   *   Cluster response = clusterManagerClient.getCluster(name);
-   * }
-   * }
- * - * @param name The name (project, location, cluster) of the cluster to retrieve. Specified in the - * format `projects/*/locations/*/clusters/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Cluster getCluster(String name) { - GetClusterRequest request = GetClusterRequest.newBuilder().setName(name).build(); - return getCluster(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the details of a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   String clusterId = "clusterId561939637";
-   *   Cluster response = clusterManagerClient.getCluster(projectId, zone, clusterId);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated - * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. - * This field has been deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster to retrieve. This field has been - * deprecated and replaced by the name field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Cluster getCluster(String projectId, String zone, String clusterId) { - GetClusterRequest request = - GetClusterRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .build(); - return getCluster(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the details of a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   GetClusterRequest request =
-   *       GetClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setName("name3373707")
-   *           .build();
-   *   Cluster response = clusterManagerClient.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 details of a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   GetClusterRequest request =
-   *       GetClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future = clusterManagerClient.getClusterCallable().futureCall(request);
-   *   // Do something.
-   *   Cluster response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getClusterCallable() { - return stub.getClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a cluster, consisting of the specified number and type of Google Compute Engine - * instances. - * - *

By default, the cluster is created in the project's [default - * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). - * - *

One firewall is added for the cluster. After cluster creation, the Kubelet creates routes - * for each node to allow the containers on that node to communicate with all other instances in - * the cluster. - * - *

Finally, an entry is added to the project's global metadata indicating which CIDR range the - * cluster is using. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String parent = "parent-995424086";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   Operation response = clusterManagerClient.createCluster(parent, cluster);
-   * }
-   * }
- * - * @param parent The parent (project and location) where the cluster will be created. Specified in - * the format `projects/*/locations/*`. - * @param cluster Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation createCluster(String parent, Cluster cluster) { - CreateClusterRequest request = - CreateClusterRequest.newBuilder().setParent(parent).setCluster(cluster).build(); - return createCluster(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a cluster, consisting of the specified number and type of Google Compute Engine - * instances. - * - *

By default, the cluster is created in the project's [default - * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). - * - *

One firewall is added for the cluster. After cluster creation, the Kubelet creates routes - * for each node to allow the containers on that node to communicate with all other instances in - * the cluster. - * - *

Finally, an entry is added to the project's global metadata indicating which CIDR range the - * cluster is using. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   Cluster cluster = Cluster.newBuilder().build();
-   *   Operation response = clusterManagerClient.createCluster(projectId, zone, cluster);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated - * and replaced by the parent field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. - * This field has been deprecated and replaced by the parent field. - * @param cluster Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation createCluster(String projectId, String zone, Cluster cluster) { - CreateClusterRequest request = - CreateClusterRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setCluster(cluster) - .build(); - return createCluster(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a cluster, consisting of the specified number and type of Google Compute Engine - * instances. - * - *

By default, the cluster is created in the project's [default - * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). - * - *

One firewall is added for the cluster. After cluster creation, the Kubelet creates routes - * for each node to allow the containers on that node to communicate with all other instances in - * the cluster. - * - *

Finally, an entry is added to the project's global metadata indicating which CIDR range the - * cluster is using. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   CreateClusterRequest request =
-   *       CreateClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setCluster(Cluster.newBuilder().build())
-   *           .setParent("parent-995424086")
-   *           .build();
-   *   Operation response = clusterManagerClient.createCluster(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation createCluster(CreateClusterRequest request) { - return createClusterCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a cluster, consisting of the specified number and type of Google Compute Engine - * instances. - * - *

By default, the cluster is created in the project's [default - * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). - * - *

One firewall is added for the cluster. After cluster creation, the Kubelet creates routes - * for each node to allow the containers on that node to communicate with all other instances in - * the cluster. - * - *

Finally, an entry is added to the project's global metadata indicating which CIDR range the - * cluster is using. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   CreateClusterRequest request =
-   *       CreateClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setCluster(Cluster.newBuilder().build())
-   *           .setParent("parent-995424086")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.createClusterCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createClusterCallable() { - return stub.createClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the settings of a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String name = "name3373707";
-   *   ClusterUpdate update = ClusterUpdate.newBuilder().build();
-   *   Operation response = clusterManagerClient.updateCluster(name, update);
-   * }
-   * }
- * - * @param name The name (project, location, cluster) of the cluster to update. Specified in the - * format `projects/*/locations/*/clusters/*`. - * @param update Required. A description of the update. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation updateCluster(String name, ClusterUpdate update) { - UpdateClusterRequest request = - UpdateClusterRequest.newBuilder().setName(name).setUpdate(update).build(); - return updateCluster(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the settings of a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   String clusterId = "clusterId561939637";
-   *   ClusterUpdate update = ClusterUpdate.newBuilder().build();
-   *   Operation response = clusterManagerClient.updateCluster(projectId, zone, clusterId, update);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated - * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. - * This field has been deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated - * and replaced by the name field. - * @param update Required. A description of the update. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation updateCluster( - String projectId, String zone, String clusterId, ClusterUpdate update) { - UpdateClusterRequest request = - UpdateClusterRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setUpdate(update) - .build(); - return updateCluster(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the settings of a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   UpdateClusterRequest request =
-   *       UpdateClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setUpdate(ClusterUpdate.newBuilder().build())
-   *           .setName("name3373707")
-   *           .build();
-   *   Operation response = clusterManagerClient.updateCluster(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation updateCluster(UpdateClusterRequest request) { - return updateClusterCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the settings of a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   UpdateClusterRequest request =
-   *       UpdateClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setUpdate(ClusterUpdate.newBuilder().build())
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.updateClusterCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateClusterCallable() { - return stub.updateClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the version and/or image type for the specified node pool. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   UpdateNodePoolRequest request =
-   *       UpdateNodePoolRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setNodePoolId("nodePoolId1121557241")
-   *           .setNodeVersion("nodeVersion1155309686")
-   *           .setImageType("imageType-878147787")
-   *           .setName("name3373707")
-   *           .addAllLocations(new ArrayList())
-   *           .setWorkloadMetadataConfig(WorkloadMetadataConfig.newBuilder().build())
-   *           .setUpgradeSettings(NodePool.UpgradeSettings.newBuilder().build())
-   *           .build();
-   *   Operation response = clusterManagerClient.updateNodePool(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation updateNodePool(UpdateNodePoolRequest request) { - return updateNodePoolCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the version and/or image type for the specified node pool. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   UpdateNodePoolRequest request =
-   *       UpdateNodePoolRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setNodePoolId("nodePoolId1121557241")
-   *           .setNodeVersion("nodeVersion1155309686")
-   *           .setImageType("imageType-878147787")
-   *           .setName("name3373707")
-   *           .addAllLocations(new ArrayList())
-   *           .setWorkloadMetadataConfig(WorkloadMetadataConfig.newBuilder().build())
-   *           .setUpgradeSettings(NodePool.UpgradeSettings.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.updateNodePoolCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateNodePoolCallable() { - return stub.updateNodePoolCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the autoscaling settings for the specified node pool. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetNodePoolAutoscalingRequest request =
-   *       SetNodePoolAutoscalingRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setNodePoolId("nodePoolId1121557241")
-   *           .setAutoscaling(NodePoolAutoscaling.newBuilder().build())
-   *           .setName("name3373707")
-   *           .build();
-   *   Operation response = clusterManagerClient.setNodePoolAutoscaling(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setNodePoolAutoscaling(SetNodePoolAutoscalingRequest request) { - return setNodePoolAutoscalingCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the autoscaling settings for the specified node pool. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetNodePoolAutoscalingRequest request =
-   *       SetNodePoolAutoscalingRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setNodePoolId("nodePoolId1121557241")
-   *           .setAutoscaling(NodePoolAutoscaling.newBuilder().build())
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.setNodePoolAutoscalingCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - setNodePoolAutoscalingCallable() { - return stub.setNodePoolAutoscalingCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the logging service for a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String name = "name3373707";
-   *   String loggingService = "loggingService1098570326";
-   *   Operation response = clusterManagerClient.setLoggingService(name, loggingService);
-   * }
-   * }
- * - * @param name The name (project, location, cluster) of the cluster to set logging. Specified in - * the format `projects/*/locations/*/clusters/*`. - * @param loggingService Required. The logging service the cluster should use to write logs. - * Currently available options: - *
    - *
  • `logging.googleapis.com/kubernetes` - The Cloud Logging service with a - * Kubernetes-native resource model - *
  • `logging.googleapis.com` - The legacy Cloud Logging service (no longer available as - * of GKE 1.15). - *
  • `none` - no logs will be exported from the cluster. - *
- *

If left as an empty string,`logging.googleapis.com/kubernetes` will be used for GKE - * 1.14+ or `logging.googleapis.com` for earlier versions. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setLoggingService(String name, String loggingService) { - SetLoggingServiceRequest request = - SetLoggingServiceRequest.newBuilder() - .setName(name) - .setLoggingService(loggingService) - .build(); - return setLoggingService(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the logging service for a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   String clusterId = "clusterId561939637";
-   *   String loggingService = "loggingService1098570326";
-   *   Operation response =
-   *       clusterManagerClient.setLoggingService(projectId, zone, clusterId, loggingService);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated - * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. - * This field has been deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated - * and replaced by the name field. - * @param loggingService Required. The logging service the cluster should use to write logs. - * Currently available options: - *
    - *
  • `logging.googleapis.com/kubernetes` - The Cloud Logging service with a - * Kubernetes-native resource model - *
  • `logging.googleapis.com` - The legacy Cloud Logging service (no longer available as - * of GKE 1.15). - *
  • `none` - no logs will be exported from the cluster. - *
- *

If left as an empty string,`logging.googleapis.com/kubernetes` will be used for GKE - * 1.14+ or `logging.googleapis.com` for earlier versions. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setLoggingService( - String projectId, String zone, String clusterId, String loggingService) { - SetLoggingServiceRequest request = - SetLoggingServiceRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setLoggingService(loggingService) - .build(); - return setLoggingService(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the logging service for a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetLoggingServiceRequest request =
-   *       SetLoggingServiceRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setLoggingService("loggingService1098570326")
-   *           .setName("name3373707")
-   *           .build();
-   *   Operation response = clusterManagerClient.setLoggingService(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setLoggingService(SetLoggingServiceRequest request) { - return setLoggingServiceCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the logging service for a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetLoggingServiceRequest request =
-   *       SetLoggingServiceRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setLoggingService("loggingService1098570326")
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.setLoggingServiceCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable setLoggingServiceCallable() { - return stub.setLoggingServiceCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the monitoring service for a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String name = "name3373707";
-   *   String monitoringService = "monitoringService-1431578291";
-   *   Operation response = clusterManagerClient.setMonitoringService(name, monitoringService);
-   * }
-   * }
- * - * @param name The name (project, location, cluster) of the cluster to set monitoring. Specified - * in the format `projects/*/locations/*/clusters/*`. - * @param monitoringService Required. The monitoring service the cluster should use to write - * metrics. Currently available options: - *
    - *
  • "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring service with a - * Kubernetes-native resource model - *
  • `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no longer - * available as of GKE 1.15). - *
  • `none` - No metrics will be exported from the cluster. - *
- *

If left as an empty string,`monitoring.googleapis.com/kubernetes` will be used for GKE - * 1.14+ or `monitoring.googleapis.com` for earlier versions. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setMonitoringService(String name, String monitoringService) { - SetMonitoringServiceRequest request = - SetMonitoringServiceRequest.newBuilder() - .setName(name) - .setMonitoringService(monitoringService) - .build(); - return setMonitoringService(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the monitoring service for a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   String clusterId = "clusterId561939637";
-   *   String monitoringService = "monitoringService-1431578291";
-   *   Operation response =
-   *       clusterManagerClient.setMonitoringService(projectId, zone, clusterId, monitoringService);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated - * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. - * This field has been deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated - * and replaced by the name field. - * @param monitoringService Required. The monitoring service the cluster should use to write - * metrics. Currently available options: - *
    - *
  • "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring service with a - * Kubernetes-native resource model - *
  • `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no longer - * available as of GKE 1.15). - *
  • `none` - No metrics will be exported from the cluster. - *
- *

If left as an empty string,`monitoring.googleapis.com/kubernetes` will be used for GKE - * 1.14+ or `monitoring.googleapis.com` for earlier versions. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setMonitoringService( - String projectId, String zone, String clusterId, String monitoringService) { - SetMonitoringServiceRequest request = - SetMonitoringServiceRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setMonitoringService(monitoringService) - .build(); - return setMonitoringService(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the monitoring service for a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetMonitoringServiceRequest request =
-   *       SetMonitoringServiceRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setMonitoringService("monitoringService-1431578291")
-   *           .setName("name3373707")
-   *           .build();
-   *   Operation response = clusterManagerClient.setMonitoringService(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setMonitoringService(SetMonitoringServiceRequest request) { - return setMonitoringServiceCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the monitoring service for a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetMonitoringServiceRequest request =
-   *       SetMonitoringServiceRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setMonitoringService("monitoringService-1431578291")
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.setMonitoringServiceCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - setMonitoringServiceCallable() { - return stub.setMonitoringServiceCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the addons for a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String name = "name3373707";
-   *   AddonsConfig addonsConfig = AddonsConfig.newBuilder().build();
-   *   Operation response = clusterManagerClient.setAddonsConfig(name, addonsConfig);
-   * }
-   * }
- * - * @param name The name (project, location, cluster) of the cluster to set addons. Specified in - * the format `projects/*/locations/*/clusters/*`. - * @param addonsConfig Required. The desired configurations for the various addons available to - * run in the cluster. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setAddonsConfig(String name, AddonsConfig addonsConfig) { - SetAddonsConfigRequest request = - SetAddonsConfigRequest.newBuilder().setName(name).setAddonsConfig(addonsConfig).build(); - return setAddonsConfig(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the addons for a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   String clusterId = "clusterId561939637";
-   *   AddonsConfig addonsConfig = AddonsConfig.newBuilder().build();
-   *   Operation response =
-   *       clusterManagerClient.setAddonsConfig(projectId, zone, clusterId, addonsConfig);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated - * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. - * This field has been deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated - * and replaced by the name field. - * @param addonsConfig Required. The desired configurations for the various addons available to - * run in the cluster. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setAddonsConfig( - String projectId, String zone, String clusterId, AddonsConfig addonsConfig) { - SetAddonsConfigRequest request = - SetAddonsConfigRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setAddonsConfig(addonsConfig) - .build(); - return setAddonsConfig(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the addons for a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetAddonsConfigRequest request =
-   *       SetAddonsConfigRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setAddonsConfig(AddonsConfig.newBuilder().build())
-   *           .setName("name3373707")
-   *           .build();
-   *   Operation response = clusterManagerClient.setAddonsConfig(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setAddonsConfig(SetAddonsConfigRequest request) { - return setAddonsConfigCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the addons for a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetAddonsConfigRequest request =
-   *       SetAddonsConfigRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setAddonsConfig(AddonsConfig.newBuilder().build())
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.setAddonsConfigCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable setAddonsConfigCallable() { - return stub.setAddonsConfigCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the locations for a specific cluster. Deprecated. Use - * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update) - * instead. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String name = "name3373707";
-   *   List locations = new ArrayList<>();
-   *   Operation response = clusterManagerClient.setLocations(name, locations);
-   * }
-   * }
- * - * @param name The name (project, location, cluster) of the cluster to set locations. Specified in - * the format `projects/*/locations/*/clusters/*`. - * @param locations Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes - * should be located. Changing the locations a cluster is in will result in nodes being either - * created or removed from the cluster, depending on whether locations are being added or - * removed. - *

This list must always include the cluster's primary zone. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setLocations(String name, List locations) { - SetLocationsRequest request = - SetLocationsRequest.newBuilder().setName(name).addAllLocations(locations).build(); - return setLocations(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the locations for a specific cluster. Deprecated. Use - * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update) - * instead. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   String clusterId = "clusterId561939637";
-   *   List locations = new ArrayList<>();
-   *   Operation response = clusterManagerClient.setLocations(projectId, zone, clusterId, locations);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated - * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. - * This field has been deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated - * and replaced by the name field. - * @param locations Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes - * should be located. Changing the locations a cluster is in will result in nodes being either - * created or removed from the cluster, depending on whether locations are being added or - * removed. - *

This list must always include the cluster's primary zone. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setLocations( - String projectId, String zone, String clusterId, List locations) { - SetLocationsRequest request = - SetLocationsRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .addAllLocations(locations) - .build(); - return setLocations(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the locations for a specific cluster. Deprecated. Use - * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update) - * instead. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetLocationsRequest request =
-   *       SetLocationsRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .addAllLocations(new ArrayList())
-   *           .setName("name3373707")
-   *           .build();
-   *   Operation response = clusterManagerClient.setLocations(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setLocations(SetLocationsRequest request) { - return setLocationsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the locations for a specific cluster. Deprecated. Use - * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update) - * instead. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetLocationsRequest request =
-   *       SetLocationsRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .addAllLocations(new ArrayList())
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future = clusterManagerClient.setLocationsCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable setLocationsCallable() { - return stub.setLocationsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the master for a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String name = "name3373707";
-   *   String masterVersion = "masterVersion1167095830";
-   *   Operation response = clusterManagerClient.updateMaster(name, masterVersion);
-   * }
-   * }
- * - * @param name The name (project, location, cluster) of the cluster to update. Specified in the - * format `projects/*/locations/*/clusters/*`. - * @param masterVersion Required. The Kubernetes version to change the master to. - *

Users may specify either explicit versions offered by Kubernetes Engine or version - * aliases, which have the following behavior: - *

- "latest": picks the highest valid Kubernetes version - "1.X": picks the highest valid - * patch+gke.N patch in the 1.X version - "1.X.Y": picks the highest valid gke.N patch in the - * 1.X.Y version - "1.X.Y-gke.N": picks an explicit Kubernetes version - "-": picks the - * default Kubernetes version - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation updateMaster(String name, String masterVersion) { - UpdateMasterRequest request = - UpdateMasterRequest.newBuilder().setName(name).setMasterVersion(masterVersion).build(); - return updateMaster(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the master for a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   String clusterId = "clusterId561939637";
-   *   String masterVersion = "masterVersion1167095830";
-   *   Operation response =
-   *       clusterManagerClient.updateMaster(projectId, zone, clusterId, masterVersion);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated - * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. - * This field has been deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated - * and replaced by the name field. - * @param masterVersion Required. The Kubernetes version to change the master to. - *

Users may specify either explicit versions offered by Kubernetes Engine or version - * aliases, which have the following behavior: - *

- "latest": picks the highest valid Kubernetes version - "1.X": picks the highest valid - * patch+gke.N patch in the 1.X version - "1.X.Y": picks the highest valid gke.N patch in the - * 1.X.Y version - "1.X.Y-gke.N": picks an explicit Kubernetes version - "-": picks the - * default Kubernetes version - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation updateMaster( - String projectId, String zone, String clusterId, String masterVersion) { - UpdateMasterRequest request = - UpdateMasterRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setMasterVersion(masterVersion) - .build(); - return updateMaster(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the master for a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   UpdateMasterRequest request =
-   *       UpdateMasterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setMasterVersion("masterVersion1167095830")
-   *           .setName("name3373707")
-   *           .build();
-   *   Operation response = clusterManagerClient.updateMaster(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation updateMaster(UpdateMasterRequest request) { - return updateMasterCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the master for a specific cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   UpdateMasterRequest request =
-   *       UpdateMasterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setMasterVersion("masterVersion1167095830")
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future = clusterManagerClient.updateMasterCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateMasterCallable() { - return stub.updateMasterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets master auth materials. Currently supports changing the admin password or a specific - * cluster, either via password generation or explicitly setting the password. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetMasterAuthRequest request =
-   *       SetMasterAuthRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setUpdate(MasterAuth.newBuilder().build())
-   *           .setName("name3373707")
-   *           .build();
-   *   Operation response = clusterManagerClient.setMasterAuth(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setMasterAuth(SetMasterAuthRequest request) { - return setMasterAuthCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets master auth materials. Currently supports changing the admin password or a specific - * cluster, either via password generation or explicitly setting the password. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetMasterAuthRequest request =
-   *       SetMasterAuthRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setUpdate(MasterAuth.newBuilder().build())
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.setMasterAuthCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable setMasterAuthCallable() { - return stub.setMasterAuthCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes the cluster, including the Kubernetes endpoint and all worker nodes. - * - *

Firewalls and routes that were configured during cluster creation are also deleted. - * - *

Other Google Compute Engine resources that might be in use by the cluster, such as load - * balancer resources, are not deleted if they weren't present when the cluster was initially - * created. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String name = "name3373707";
-   *   Operation response = clusterManagerClient.deleteCluster(name);
-   * }
-   * }
- * - * @param name The name (project, location, cluster) of the cluster to delete. Specified in the - * format `projects/*/locations/*/clusters/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation deleteCluster(String name) { - DeleteClusterRequest request = DeleteClusterRequest.newBuilder().setName(name).build(); - return deleteCluster(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes the cluster, including the Kubernetes endpoint and all worker nodes. - * - *

Firewalls and routes that were configured during cluster creation are also deleted. - * - *

Other Google Compute Engine resources that might be in use by the cluster, such as load - * balancer resources, are not deleted if they weren't present when the cluster was initially - * created. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   String clusterId = "clusterId561939637";
-   *   Operation response = clusterManagerClient.deleteCluster(projectId, zone, clusterId);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated - * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. - * This field has been deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster to delete. This field has been deprecated - * and replaced by the name field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation deleteCluster(String projectId, String zone, String clusterId) { - DeleteClusterRequest request = - DeleteClusterRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .build(); - return deleteCluster(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes the cluster, including the Kubernetes endpoint and all worker nodes. - * - *

Firewalls and routes that were configured during cluster creation are also deleted. - * - *

Other Google Compute Engine resources that might be in use by the cluster, such as load - * balancer resources, are not deleted if they weren't present when the cluster was initially - * created. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   DeleteClusterRequest request =
-   *       DeleteClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setName("name3373707")
-   *           .build();
-   *   Operation response = clusterManagerClient.deleteCluster(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation deleteCluster(DeleteClusterRequest request) { - return deleteClusterCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes the cluster, including the Kubernetes endpoint and all worker nodes. - * - *

Firewalls and routes that were configured during cluster creation are also deleted. - * - *

Other Google Compute Engine resources that might be in use by the cluster, such as load - * balancer resources, are not deleted if they weren't present when the cluster was initially - * created. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   DeleteClusterRequest request =
-   *       DeleteClusterRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.deleteClusterCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteClusterCallable() { - return stub.deleteClusterCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all operations in a project in a specific zone or all zones. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   ListOperationsResponse response = clusterManagerClient.listOperations(projectId, zone);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated - * and replaced by the parent field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for, or - * `-` for all zones. This field has been deprecated and replaced by the parent field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListOperationsResponse listOperations(String projectId, String zone) { - ListOperationsRequest request = - ListOperationsRequest.newBuilder().setProjectId(projectId).setZone(zone).build(); - return listOperations(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all operations in a project in a specific zone or all zones. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   ListOperationsRequest request =
-   *       ListOperationsRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setParent("parent-995424086")
-   *           .build();
-   *   ListOperationsResponse response = clusterManagerClient.listOperations(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListOperationsResponse listOperations(ListOperationsRequest request) { - return listOperationsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all operations in a project in a specific zone or all zones. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   ListOperationsRequest request =
-   *       ListOperationsRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setParent("parent-995424086")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.listOperationsCallable().futureCall(request);
-   *   // Do something.
-   *   ListOperationsResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - listOperationsCallable() { - return stub.listOperationsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the specified operation. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String name = "name3373707";
-   *   Operation response = clusterManagerClient.getOperation(name);
-   * }
-   * }
- * - * @param name The name (project, location, operation id) of the operation to get. Specified in - * the format `projects/*/locations/*/operations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation getOperation(String name) { - GetOperationRequest request = GetOperationRequest.newBuilder().setName(name).build(); - return getOperation(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the specified operation. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   String operationId = "operationId129704162";
-   *   Operation response = clusterManagerClient.getOperation(projectId, zone, operationId);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated - * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. - * This field has been deprecated and replaced by the name field. - * @param operationId Deprecated. The server-assigned `name` of the operation. This field has been - * deprecated and replaced by the name field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation getOperation(String projectId, String zone, String operationId) { - GetOperationRequest request = - GetOperationRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setOperationId(operationId) - .build(); - return getOperation(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the specified operation. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   GetOperationRequest request =
-   *       GetOperationRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setOperationId("operationId129704162")
-   *           .setName("name3373707")
-   *           .build();
-   *   Operation response = clusterManagerClient.getOperation(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation getOperation(GetOperationRequest request) { - return getOperationCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the specified operation. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   GetOperationRequest request =
-   *       GetOperationRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setOperationId("operationId129704162")
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future = clusterManagerClient.getOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getOperationCallable() { - return stub.getOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Cancels the specified operation. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String name = "name3373707";
-   *   clusterManagerClient.cancelOperation(name);
-   * }
-   * }
- * - * @param name The name (project, location, operation id) of the operation to cancel. Specified in - * the format `projects/*/locations/*/operations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void cancelOperation(String name) { - CancelOperationRequest request = CancelOperationRequest.newBuilder().setName(name).build(); - cancelOperation(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Cancels the specified operation. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   String operationId = "operationId129704162";
-   *   clusterManagerClient.cancelOperation(projectId, zone, operationId);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated - * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation - * resides. This field has been deprecated and replaced by the name field. - * @param operationId Deprecated. The server-assigned `name` of the operation. This field has been - * deprecated and replaced by the name field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void cancelOperation(String projectId, String zone, String operationId) { - CancelOperationRequest request = - CancelOperationRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setOperationId(operationId) - .build(); - cancelOperation(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Cancels the specified operation. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   CancelOperationRequest request =
-   *       CancelOperationRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setOperationId("operationId129704162")
-   *           .setName("name3373707")
-   *           .build();
-   *   clusterManagerClient.cancelOperation(request);
-   * }
-   * }
- * - * @param request The request 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 cancelOperation(CancelOperationRequest request) { - cancelOperationCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Cancels the specified operation. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   CancelOperationRequest request =
-   *       CancelOperationRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setOperationId("operationId129704162")
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future = clusterManagerClient.cancelOperationCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable cancelOperationCallable() { - return stub.cancelOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns configuration info about the Google Kubernetes Engine service. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String name = "name3373707";
-   *   ServerConfig response = clusterManagerClient.getServerConfig(name);
-   * }
-   * }
- * - * @param name The name (project and location) of the server config to get, specified in the - * format `projects/*/locations/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ServerConfig getServerConfig(String name) { - GetServerConfigRequest request = GetServerConfigRequest.newBuilder().setName(name).build(); - return getServerConfig(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns configuration info about the Google Kubernetes Engine service. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   ServerConfig response = clusterManagerClient.getServerConfig(projectId, zone);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated - * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for. - * This field has been deprecated and replaced by the name field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ServerConfig getServerConfig(String projectId, String zone) { - GetServerConfigRequest request = - GetServerConfigRequest.newBuilder().setProjectId(projectId).setZone(zone).build(); - return getServerConfig(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns configuration info about the Google Kubernetes Engine service. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   GetServerConfigRequest request =
-   *       GetServerConfigRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setName("name3373707")
-   *           .build();
-   *   ServerConfig response = clusterManagerClient.getServerConfig(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ServerConfig getServerConfig(GetServerConfigRequest request) { - return getServerConfigCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns configuration info about the Google Kubernetes Engine service. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   GetServerConfigRequest request =
-   *       GetServerConfigRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.getServerConfigCallable().futureCall(request);
-   *   // Do something.
-   *   ServerConfig response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getServerConfigCallable() { - return stub.getServerConfigCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the public component of the cluster signing keys in JSON Web Key format. This API is not - * yet intended for general use, and is not available for all clusters. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   GetJSONWebKeysRequest request =
-   *       GetJSONWebKeysRequest.newBuilder().setParent("parent-995424086").build();
-   *   GetJSONWebKeysResponse response = clusterManagerClient.getJSONWebKeys(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GetJSONWebKeysResponse getJSONWebKeys(GetJSONWebKeysRequest request) { - return getJSONWebKeysCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the public component of the cluster signing keys in JSON Web Key format. This API is not - * yet intended for general use, and is not available for all clusters. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   GetJSONWebKeysRequest request =
-   *       GetJSONWebKeysRequest.newBuilder().setParent("parent-995424086").build();
-   *   ApiFuture future =
-   *       clusterManagerClient.getJSONWebKeysCallable().futureCall(request);
-   *   // Do something.
-   *   GetJSONWebKeysResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getJSONWebKeysCallable() { - return stub.getJSONWebKeysCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the node pools for a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String parent = "parent-995424086";
-   *   ListNodePoolsResponse response = clusterManagerClient.listNodePools(parent);
-   * }
-   * }
- * - * @param parent The parent (project, location, cluster id) where the node pools will be listed. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListNodePoolsResponse listNodePools(String parent) { - ListNodePoolsRequest request = ListNodePoolsRequest.newBuilder().setParent(parent).build(); - return listNodePools(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the node pools for a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   String clusterId = "clusterId561939637";
-   *   ListNodePoolsResponse response =
-   *       clusterManagerClient.listNodePools(projectId, zone, clusterId);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). This field has been - * deprecated and replaced by the parent field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. - * This field has been deprecated and replaced by the parent field. - * @param clusterId Deprecated. The name of the cluster. This field has been deprecated and - * replaced by the parent field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListNodePoolsResponse listNodePools( - String projectId, String zone, String clusterId) { - ListNodePoolsRequest request = - ListNodePoolsRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .build(); - return listNodePools(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the node pools for a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   ListNodePoolsRequest request =
-   *       ListNodePoolsRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setParent("parent-995424086")
-   *           .build();
-   *   ListNodePoolsResponse response = clusterManagerClient.listNodePools(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListNodePoolsResponse listNodePools(ListNodePoolsRequest request) { - return listNodePoolsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the node pools for a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   ListNodePoolsRequest request =
-   *       ListNodePoolsRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setParent("parent-995424086")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.listNodePoolsCallable().futureCall(request);
-   *   // Do something.
-   *   ListNodePoolsResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable listNodePoolsCallable() { - return stub.listNodePoolsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves the requested node pool. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String name = "name3373707";
-   *   NodePool response = clusterManagerClient.getNodePool(name);
-   * }
-   * }
- * - * @param name The name (project, location, cluster, node pool id) of the node pool to get. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final NodePool getNodePool(String name) { - GetNodePoolRequest request = GetNodePoolRequest.newBuilder().setName(name).build(); - return getNodePool(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves the requested node pool. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   String clusterId = "clusterId561939637";
-   *   String nodePoolId = "nodePoolId1121557241";
-   *   NodePool response = clusterManagerClient.getNodePool(projectId, zone, clusterId, nodePoolId);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). This field has been - * deprecated and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. - * This field has been deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster. This field has been deprecated and - * replaced by the name field. - * @param nodePoolId Deprecated. The name of the node pool. This field has been deprecated and - * replaced by the name field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final NodePool getNodePool( - String projectId, String zone, String clusterId, String nodePoolId) { - GetNodePoolRequest request = - GetNodePoolRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setNodePoolId(nodePoolId) - .build(); - return getNodePool(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves the requested node pool. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   GetNodePoolRequest request =
-   *       GetNodePoolRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setNodePoolId("nodePoolId1121557241")
-   *           .setName("name3373707")
-   *           .build();
-   *   NodePool response = clusterManagerClient.getNodePool(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final NodePool getNodePool(GetNodePoolRequest request) { - return getNodePoolCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves the requested node pool. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   GetNodePoolRequest request =
-   *       GetNodePoolRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setNodePoolId("nodePoolId1121557241")
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future = clusterManagerClient.getNodePoolCallable().futureCall(request);
-   *   // Do something.
-   *   NodePool response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getNodePoolCallable() { - return stub.getNodePoolCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a node pool for a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String parent = "parent-995424086";
-   *   NodePool nodePool = NodePool.newBuilder().build();
-   *   Operation response = clusterManagerClient.createNodePool(parent, nodePool);
-   * }
-   * }
- * - * @param parent The parent (project, location, cluster id) where the node pool will be created. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @param nodePool Required. The node pool to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation createNodePool(String parent, NodePool nodePool) { - CreateNodePoolRequest request = - CreateNodePoolRequest.newBuilder().setParent(parent).setNodePool(nodePool).build(); - return createNodePool(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a node pool for a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   String clusterId = "clusterId561939637";
-   *   NodePool nodePool = NodePool.newBuilder().build();
-   *   Operation response =
-   *       clusterManagerClient.createNodePool(projectId, zone, clusterId, nodePool);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). This field has been - * deprecated and replaced by the parent field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. - * This field has been deprecated and replaced by the parent field. - * @param clusterId Deprecated. The name of the cluster. This field has been deprecated and - * replaced by the parent field. - * @param nodePool Required. The node pool to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation createNodePool( - String projectId, String zone, String clusterId, NodePool nodePool) { - CreateNodePoolRequest request = - CreateNodePoolRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setNodePool(nodePool) - .build(); - return createNodePool(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a node pool for a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   CreateNodePoolRequest request =
-   *       CreateNodePoolRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setNodePool(NodePool.newBuilder().build())
-   *           .setParent("parent-995424086")
-   *           .build();
-   *   Operation response = clusterManagerClient.createNodePool(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation createNodePool(CreateNodePoolRequest request) { - return createNodePoolCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a node pool for a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   CreateNodePoolRequest request =
-   *       CreateNodePoolRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setNodePool(NodePool.newBuilder().build())
-   *           .setParent("parent-995424086")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.createNodePoolCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createNodePoolCallable() { - return stub.createNodePoolCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a node pool from a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String name = "name3373707";
-   *   Operation response = clusterManagerClient.deleteNodePool(name);
-   * }
-   * }
- * - * @param name The name (project, location, cluster, node pool id) of the node pool to delete. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation deleteNodePool(String name) { - DeleteNodePoolRequest request = DeleteNodePoolRequest.newBuilder().setName(name).build(); - return deleteNodePool(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a node pool from a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   String clusterId = "clusterId561939637";
-   *   String nodePoolId = "nodePoolId1121557241";
-   *   Operation response =
-   *       clusterManagerClient.deleteNodePool(projectId, zone, clusterId, nodePoolId);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). This field has been - * deprecated and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. - * This field has been deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster. This field has been deprecated and - * replaced by the name field. - * @param nodePoolId Deprecated. The name of the node pool to delete. This field has been - * deprecated and replaced by the name field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation deleteNodePool( - String projectId, String zone, String clusterId, String nodePoolId) { - DeleteNodePoolRequest request = - DeleteNodePoolRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setNodePoolId(nodePoolId) - .build(); - return deleteNodePool(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a node pool from a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   DeleteNodePoolRequest request =
-   *       DeleteNodePoolRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setNodePoolId("nodePoolId1121557241")
-   *           .setName("name3373707")
-   *           .build();
-   *   Operation response = clusterManagerClient.deleteNodePool(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation deleteNodePool(DeleteNodePoolRequest request) { - return deleteNodePoolCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a node pool from a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   DeleteNodePoolRequest request =
-   *       DeleteNodePoolRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setNodePoolId("nodePoolId1121557241")
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.deleteNodePoolCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteNodePoolCallable() { - return stub.deleteNodePoolCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last - * upgrade successfully completed. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String name = "name3373707";
-   *   Operation response = clusterManagerClient.rollbackNodePoolUpgrade(name);
-   * }
-   * }
- * - * @param name The name (project, location, cluster, node pool id) of the node poll to rollback - * upgrade. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation rollbackNodePoolUpgrade(String name) { - RollbackNodePoolUpgradeRequest request = - RollbackNodePoolUpgradeRequest.newBuilder().setName(name).build(); - return rollbackNodePoolUpgrade(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last - * upgrade successfully completed. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   String clusterId = "clusterId561939637";
-   *   String nodePoolId = "nodePoolId1121557241";
-   *   Operation response =
-   *       clusterManagerClient.rollbackNodePoolUpgrade(projectId, zone, clusterId, nodePoolId);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated - * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. - * This field has been deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster to rollback. This field has been - * deprecated and replaced by the name field. - * @param nodePoolId Deprecated. The name of the node pool to rollback. This field has been - * deprecated and replaced by the name field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation rollbackNodePoolUpgrade( - String projectId, String zone, String clusterId, String nodePoolId) { - RollbackNodePoolUpgradeRequest request = - RollbackNodePoolUpgradeRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setNodePoolId(nodePoolId) - .build(); - return rollbackNodePoolUpgrade(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last - * upgrade successfully completed. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   RollbackNodePoolUpgradeRequest request =
-   *       RollbackNodePoolUpgradeRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setNodePoolId("nodePoolId1121557241")
-   *           .setName("name3373707")
-   *           .build();
-   *   Operation response = clusterManagerClient.rollbackNodePoolUpgrade(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation rollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest request) { - return rollbackNodePoolUpgradeCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last - * upgrade successfully completed. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   RollbackNodePoolUpgradeRequest request =
-   *       RollbackNodePoolUpgradeRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setNodePoolId("nodePoolId1121557241")
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.rollbackNodePoolUpgradeCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - rollbackNodePoolUpgradeCallable() { - return stub.rollbackNodePoolUpgradeCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the NodeManagement options for a node pool. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetNodePoolManagementRequest request =
-   *       SetNodePoolManagementRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setNodePoolId("nodePoolId1121557241")
-   *           .setManagement(NodeManagement.newBuilder().build())
-   *           .setName("name3373707")
-   *           .build();
-   *   Operation response = clusterManagerClient.setNodePoolManagement(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setNodePoolManagement(SetNodePoolManagementRequest request) { - return setNodePoolManagementCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the NodeManagement options for a node pool. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetNodePoolManagementRequest request =
-   *       SetNodePoolManagementRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setNodePoolId("nodePoolId1121557241")
-   *           .setManagement(NodeManagement.newBuilder().build())
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.setNodePoolManagementCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - setNodePoolManagementCallable() { - return stub.setNodePoolManagementCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets labels on a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetLabelsRequest request =
-   *       SetLabelsRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .putAllResourceLabels(new HashMap())
-   *           .setLabelFingerprint("labelFingerprint379449680")
-   *           .setName("name3373707")
-   *           .build();
-   *   Operation response = clusterManagerClient.setLabels(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setLabels(SetLabelsRequest request) { - return setLabelsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets labels on a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetLabelsRequest request =
-   *       SetLabelsRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .putAllResourceLabels(new HashMap())
-   *           .setLabelFingerprint("labelFingerprint379449680")
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future = clusterManagerClient.setLabelsCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable setLabelsCallable() { - return stub.setLabelsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Enables or disables the ABAC authorization mechanism on a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String name = "name3373707";
-   *   boolean enabled = true;
-   *   Operation response = clusterManagerClient.setLegacyAbac(name, enabled);
-   * }
-   * }
- * - * @param name The name (project, location, cluster id) of the cluster to set legacy abac. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @param enabled Required. Whether ABAC authorization will be enabled in the cluster. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setLegacyAbac(String name, boolean enabled) { - SetLegacyAbacRequest request = - SetLegacyAbacRequest.newBuilder().setName(name).setEnabled(enabled).build(); - return setLegacyAbac(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Enables or disables the ABAC authorization mechanism on a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   String clusterId = "clusterId561939637";
-   *   boolean enabled = true;
-   *   Operation response = clusterManagerClient.setLegacyAbac(projectId, zone, clusterId, enabled);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated - * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. - * This field has been deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster to update. This field has been deprecated - * and replaced by the name field. - * @param enabled Required. Whether ABAC authorization will be enabled in the cluster. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setLegacyAbac( - String projectId, String zone, String clusterId, boolean enabled) { - SetLegacyAbacRequest request = - SetLegacyAbacRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setEnabled(enabled) - .build(); - return setLegacyAbac(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Enables or disables the ABAC authorization mechanism on a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetLegacyAbacRequest request =
-   *       SetLegacyAbacRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setEnabled(true)
-   *           .setName("name3373707")
-   *           .build();
-   *   Operation response = clusterManagerClient.setLegacyAbac(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setLegacyAbac(SetLegacyAbacRequest request) { - return setLegacyAbacCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Enables or disables the ABAC authorization mechanism on a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetLegacyAbacRequest request =
-   *       SetLegacyAbacRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setEnabled(true)
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.setLegacyAbacCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable setLegacyAbacCallable() { - return stub.setLegacyAbacCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Starts master IP rotation. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String name = "name3373707";
-   *   Operation response = clusterManagerClient.startIPRotation(name);
-   * }
-   * }
- * - * @param name The name (project, location, cluster id) of the cluster to start IP rotation. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation startIPRotation(String name) { - StartIPRotationRequest request = StartIPRotationRequest.newBuilder().setName(name).build(); - return startIPRotation(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Starts master IP rotation. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   String clusterId = "clusterId561939637";
-   *   Operation response = clusterManagerClient.startIPRotation(projectId, zone, clusterId);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). This field has been - * deprecated and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. - * This field has been deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster. This field has been deprecated and - * replaced by the name field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation startIPRotation(String projectId, String zone, String clusterId) { - StartIPRotationRequest request = - StartIPRotationRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .build(); - return startIPRotation(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Starts master IP rotation. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   StartIPRotationRequest request =
-   *       StartIPRotationRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setName("name3373707")
-   *           .setRotateCredentials(true)
-   *           .build();
-   *   Operation response = clusterManagerClient.startIPRotation(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation startIPRotation(StartIPRotationRequest request) { - return startIPRotationCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Starts master IP rotation. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   StartIPRotationRequest request =
-   *       StartIPRotationRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setName("name3373707")
-   *           .setRotateCredentials(true)
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.startIPRotationCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable startIPRotationCallable() { - return stub.startIPRotationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Completes master IP rotation. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String name = "name3373707";
-   *   Operation response = clusterManagerClient.completeIPRotation(name);
-   * }
-   * }
- * - * @param name The name (project, location, cluster id) of the cluster to complete IP rotation. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation completeIPRotation(String name) { - CompleteIPRotationRequest request = - CompleteIPRotationRequest.newBuilder().setName(name).build(); - return completeIPRotation(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Completes master IP rotation. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   String clusterId = "clusterId561939637";
-   *   Operation response = clusterManagerClient.completeIPRotation(projectId, zone, clusterId);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). This field has been - * deprecated and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. - * This field has been deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster. This field has been deprecated and - * replaced by the name field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation completeIPRotation(String projectId, String zone, String clusterId) { - CompleteIPRotationRequest request = - CompleteIPRotationRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .build(); - return completeIPRotation(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Completes master IP rotation. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   CompleteIPRotationRequest request =
-   *       CompleteIPRotationRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setName("name3373707")
-   *           .build();
-   *   Operation response = clusterManagerClient.completeIPRotation(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation completeIPRotation(CompleteIPRotationRequest request) { - return completeIPRotationCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Completes master IP rotation. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   CompleteIPRotationRequest request =
-   *       CompleteIPRotationRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.completeIPRotationCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable completeIPRotationCallable() { - return stub.completeIPRotationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the size for a specific node pool. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetNodePoolSizeRequest request =
-   *       SetNodePoolSizeRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setNodePoolId("nodePoolId1121557241")
-   *           .setNodeCount(1539922066)
-   *           .setName("name3373707")
-   *           .build();
-   *   Operation response = clusterManagerClient.setNodePoolSize(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setNodePoolSize(SetNodePoolSizeRequest request) { - return setNodePoolSizeCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the size for a specific node pool. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetNodePoolSizeRequest request =
-   *       SetNodePoolSizeRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setNodePoolId("nodePoolId1121557241")
-   *           .setNodeCount(1539922066)
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.setNodePoolSizeCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable setNodePoolSizeCallable() { - return stub.setNodePoolSizeCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Enables or disables Network Policy for a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String name = "name3373707";
-   *   NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build();
-   *   Operation response = clusterManagerClient.setNetworkPolicy(name, networkPolicy);
-   * }
-   * }
- * - * @param name The name (project, location, cluster id) of the cluster to set networking policy. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @param networkPolicy Required. Configuration options for the NetworkPolicy feature. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setNetworkPolicy(String name, NetworkPolicy networkPolicy) { - SetNetworkPolicyRequest request = - SetNetworkPolicyRequest.newBuilder().setName(name).setNetworkPolicy(networkPolicy).build(); - return setNetworkPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Enables or disables Network Policy for a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   String clusterId = "clusterId561939637";
-   *   NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build();
-   *   Operation response =
-   *       clusterManagerClient.setNetworkPolicy(projectId, zone, clusterId, networkPolicy);
-   * }
-   * }
- * - * @param projectId Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). This field has been - * deprecated and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. - * This field has been deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster. This field has been deprecated and - * replaced by the name field. - * @param networkPolicy Required. Configuration options for the NetworkPolicy feature. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setNetworkPolicy( - String projectId, String zone, String clusterId, NetworkPolicy networkPolicy) { - SetNetworkPolicyRequest request = - SetNetworkPolicyRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setNetworkPolicy(networkPolicy) - .build(); - return setNetworkPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Enables or disables Network Policy for a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetNetworkPolicyRequest request =
-   *       SetNetworkPolicyRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setNetworkPolicy(NetworkPolicy.newBuilder().build())
-   *           .setName("name3373707")
-   *           .build();
-   *   Operation response = clusterManagerClient.setNetworkPolicy(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setNetworkPolicy(SetNetworkPolicyRequest request) { - return setNetworkPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Enables or disables Network Policy for a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetNetworkPolicyRequest request =
-   *       SetNetworkPolicyRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setNetworkPolicy(NetworkPolicy.newBuilder().build())
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.setNetworkPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable setNetworkPolicyCallable() { - return stub.setNetworkPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the maintenance policy for a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String name = "name3373707";
-   *   MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build();
-   *   Operation response = clusterManagerClient.setMaintenancePolicy(name, maintenancePolicy);
-   * }
-   * }
- * - * @param name The name (project, location, cluster id) of the cluster to set maintenance policy. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @param maintenancePolicy Required. The maintenance policy to be set for the cluster. An empty - * field clears the existing maintenance policy. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setMaintenancePolicy(String name, MaintenancePolicy maintenancePolicy) { - SetMaintenancePolicyRequest request = - SetMaintenancePolicyRequest.newBuilder() - .setName(name) - .setMaintenancePolicy(maintenancePolicy) - .build(); - return setMaintenancePolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the maintenance policy for a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   String projectId = "projectId-894832108";
-   *   String zone = "zone3744684";
-   *   String clusterId = "clusterId561939637";
-   *   MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build();
-   *   Operation response =
-   *       clusterManagerClient.setMaintenancePolicy(projectId, zone, clusterId, maintenancePolicy);
-   * }
-   * }
- * - * @param projectId Required. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * @param zone Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. - * @param clusterId Required. The name of the cluster to update. - * @param maintenancePolicy Required. The maintenance policy to be set for the cluster. An empty - * field clears the existing maintenance policy. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setMaintenancePolicy( - String projectId, String zone, String clusterId, MaintenancePolicy maintenancePolicy) { - SetMaintenancePolicyRequest request = - SetMaintenancePolicyRequest.newBuilder() - .setProjectId(projectId) - .setZone(zone) - .setClusterId(clusterId) - .setMaintenancePolicy(maintenancePolicy) - .build(); - return setMaintenancePolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the maintenance policy for a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetMaintenancePolicyRequest request =
-   *       SetMaintenancePolicyRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setMaintenancePolicy(MaintenancePolicy.newBuilder().build())
-   *           .setName("name3373707")
-   *           .build();
-   *   Operation response = clusterManagerClient.setMaintenancePolicy(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Operation setMaintenancePolicy(SetMaintenancePolicyRequest request) { - return setMaintenancePolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the maintenance policy for a cluster. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   SetMaintenancePolicyRequest request =
-   *       SetMaintenancePolicyRequest.newBuilder()
-   *           .setProjectId("projectId-894832108")
-   *           .setZone("zone3744684")
-   *           .setClusterId("clusterId561939637")
-   *           .setMaintenancePolicy(MaintenancePolicy.newBuilder().build())
-   *           .setName("name3373707")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.setMaintenancePolicyCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - setMaintenancePolicyCallable() { - return stub.setMaintenancePolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists subnetworks that are usable for creating clusters in a project. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   ListUsableSubnetworksRequest request =
-   *       ListUsableSubnetworksRequest.newBuilder()
-   *           .setParent("parent-995424086")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (UsableSubnetwork element :
-   *       clusterManagerClient.listUsableSubnetworks(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 ListUsableSubnetworksPagedResponse listUsableSubnetworks( - ListUsableSubnetworksRequest request) { - return listUsableSubnetworksPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists subnetworks that are usable for creating clusters in a project. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   ListUsableSubnetworksRequest request =
-   *       ListUsableSubnetworksRequest.newBuilder()
-   *           .setParent("parent-995424086")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       clusterManagerClient.listUsableSubnetworksPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (UsableSubnetwork element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listUsableSubnetworksPagedCallable() { - return stub.listUsableSubnetworksPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists subnetworks that are usable for creating clusters in a project. - * - *

Sample code: - * - *

{@code
-   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
-   *   while (true) {
-   *     ListUsableSubnetworksResponse response =
-   *         clusterManagerClient.listUsableSubnetworksCallable().call(request);
-   *     for (UsableSubnetwork element : response.getResponsesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listUsableSubnetworksCallable() { - return stub.listUsableSubnetworksCallable(); - } - - @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 ListUsableSubnetworksPagedResponse - extends AbstractPagedListResponse< - ListUsableSubnetworksRequest, - ListUsableSubnetworksResponse, - UsableSubnetwork, - ListUsableSubnetworksPage, - ListUsableSubnetworksFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListUsableSubnetworksPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListUsableSubnetworksPagedResponse apply(ListUsableSubnetworksPage input) { - return new ListUsableSubnetworksPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); - } - - private ListUsableSubnetworksPagedResponse(ListUsableSubnetworksPage page) { - super(page, ListUsableSubnetworksFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListUsableSubnetworksPage - extends AbstractPage< - ListUsableSubnetworksRequest, - ListUsableSubnetworksResponse, - UsableSubnetwork, - ListUsableSubnetworksPage> { - - private ListUsableSubnetworksPage( - PageContext - context, - ListUsableSubnetworksResponse response) { - super(context, response); - } - - private static ListUsableSubnetworksPage createEmptyPage() { - return new ListUsableSubnetworksPage(null, null); - } - - @Override - protected ListUsableSubnetworksPage createPage( - PageContext - context, - ListUsableSubnetworksResponse response) { - return new ListUsableSubnetworksPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListUsableSubnetworksFixedSizeCollection - extends AbstractFixedSizeCollection< - ListUsableSubnetworksRequest, - ListUsableSubnetworksResponse, - UsableSubnetwork, - ListUsableSubnetworksPage, - ListUsableSubnetworksFixedSizeCollection> { - - private ListUsableSubnetworksFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListUsableSubnetworksFixedSizeCollection createEmptyCollection() { - return new ListUsableSubnetworksFixedSizeCollection(null, 0); - } - - @Override - protected ListUsableSubnetworksFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListUsableSubnetworksFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java deleted file mode 100644 index cd0a5145..00000000 --- a/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java +++ /dev/null @@ -1,561 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.container.v1; - -import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; - -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.container.v1.stub.ClusterManagerStubSettings; -import com.google.container.v1.CancelOperationRequest; -import com.google.container.v1.Cluster; -import com.google.container.v1.CompleteIPRotationRequest; -import com.google.container.v1.CreateClusterRequest; -import com.google.container.v1.CreateNodePoolRequest; -import com.google.container.v1.DeleteClusterRequest; -import com.google.container.v1.DeleteNodePoolRequest; -import com.google.container.v1.GetClusterRequest; -import com.google.container.v1.GetJSONWebKeysRequest; -import com.google.container.v1.GetJSONWebKeysResponse; -import com.google.container.v1.GetNodePoolRequest; -import com.google.container.v1.GetOperationRequest; -import com.google.container.v1.GetServerConfigRequest; -import com.google.container.v1.ListClustersRequest; -import com.google.container.v1.ListClustersResponse; -import com.google.container.v1.ListNodePoolsRequest; -import com.google.container.v1.ListNodePoolsResponse; -import com.google.container.v1.ListOperationsRequest; -import com.google.container.v1.ListOperationsResponse; -import com.google.container.v1.ListUsableSubnetworksRequest; -import com.google.container.v1.ListUsableSubnetworksResponse; -import com.google.container.v1.NodePool; -import com.google.container.v1.Operation; -import com.google.container.v1.RollbackNodePoolUpgradeRequest; -import com.google.container.v1.ServerConfig; -import com.google.container.v1.SetAddonsConfigRequest; -import com.google.container.v1.SetLabelsRequest; -import com.google.container.v1.SetLegacyAbacRequest; -import com.google.container.v1.SetLocationsRequest; -import com.google.container.v1.SetLoggingServiceRequest; -import com.google.container.v1.SetMaintenancePolicyRequest; -import com.google.container.v1.SetMasterAuthRequest; -import com.google.container.v1.SetMonitoringServiceRequest; -import com.google.container.v1.SetNetworkPolicyRequest; -import com.google.container.v1.SetNodePoolAutoscalingRequest; -import com.google.container.v1.SetNodePoolManagementRequest; -import com.google.container.v1.SetNodePoolSizeRequest; -import com.google.container.v1.StartIPRotationRequest; -import com.google.container.v1.UpdateClusterRequest; -import com.google.container.v1.UpdateMasterRequest; -import com.google.container.v1.UpdateNodePoolRequest; -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 ClusterManagerClient}. - * - *

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

    - *
  • The default service address (container.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 listClusters to 30 seconds: - * - *

{@code
- * ClusterManagerSettings.Builder clusterManagerSettingsBuilder =
- *     ClusterManagerSettings.newBuilder();
- * clusterManagerSettingsBuilder
- *     .listClustersSettings()
- *     .setRetrySettings(
- *         clusterManagerSettingsBuilder
- *             .listClustersSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * ClusterManagerSettings clusterManagerSettings = clusterManagerSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class ClusterManagerSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to listClusters. */ - public UnaryCallSettings listClustersSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).listClustersSettings(); - } - - /** Returns the object with the settings used for calls to getCluster. */ - public UnaryCallSettings getClusterSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).getClusterSettings(); - } - - /** Returns the object with the settings used for calls to createCluster. */ - public UnaryCallSettings createClusterSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).createClusterSettings(); - } - - /** Returns the object with the settings used for calls to updateCluster. */ - public UnaryCallSettings updateClusterSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).updateClusterSettings(); - } - - /** Returns the object with the settings used for calls to updateNodePool. */ - public UnaryCallSettings updateNodePoolSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).updateNodePoolSettings(); - } - - /** Returns the object with the settings used for calls to setNodePoolAutoscaling. */ - public UnaryCallSettings - setNodePoolAutoscalingSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).setNodePoolAutoscalingSettings(); - } - - /** Returns the object with the settings used for calls to setLoggingService. */ - public UnaryCallSettings setLoggingServiceSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).setLoggingServiceSettings(); - } - - /** Returns the object with the settings used for calls to setMonitoringService. */ - public UnaryCallSettings setMonitoringServiceSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).setMonitoringServiceSettings(); - } - - /** Returns the object with the settings used for calls to setAddonsConfig. */ - public UnaryCallSettings setAddonsConfigSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).setAddonsConfigSettings(); - } - - /** Returns the object with the settings used for calls to setLocations. */ - public UnaryCallSettings setLocationsSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).setLocationsSettings(); - } - - /** Returns the object with the settings used for calls to updateMaster. */ - public UnaryCallSettings updateMasterSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).updateMasterSettings(); - } - - /** Returns the object with the settings used for calls to setMasterAuth. */ - public UnaryCallSettings setMasterAuthSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).setMasterAuthSettings(); - } - - /** Returns the object with the settings used for calls to deleteCluster. */ - public UnaryCallSettings deleteClusterSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).deleteClusterSettings(); - } - - /** Returns the object with the settings used for calls to listOperations. */ - public UnaryCallSettings listOperationsSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).listOperationsSettings(); - } - - /** Returns the object with the settings used for calls to get. */ - public UnaryCallSettings getOperationSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).getOperationSettings(); - } - - /** Returns the object with the settings used for calls to cancel. */ - public UnaryCallSettings cancelOperationSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).cancelOperationSettings(); - } - - /** Returns the object with the settings used for calls to getServerConfig. */ - public UnaryCallSettings getServerConfigSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).getServerConfigSettings(); - } - - /** Returns the object with the settings used for calls to getJSONWebKeys. */ - public UnaryCallSettings getJSONWebKeysSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).getJSONWebKeysSettings(); - } - - /** Returns the object with the settings used for calls to listNodePools. */ - public UnaryCallSettings listNodePoolsSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).listNodePoolsSettings(); - } - - /** Returns the object with the settings used for calls to getNodePool. */ - public UnaryCallSettings getNodePoolSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).getNodePoolSettings(); - } - - /** Returns the object with the settings used for calls to createNodePool. */ - public UnaryCallSettings createNodePoolSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).createNodePoolSettings(); - } - - /** Returns the object with the settings used for calls to deleteNodePool. */ - public UnaryCallSettings deleteNodePoolSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).deleteNodePoolSettings(); - } - - /** Returns the object with the settings used for calls to rollbackNodePoolUpgrade. */ - public UnaryCallSettings - rollbackNodePoolUpgradeSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).rollbackNodePoolUpgradeSettings(); - } - - /** Returns the object with the settings used for calls to setNodePoolManagement. */ - public UnaryCallSettings - setNodePoolManagementSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).setNodePoolManagementSettings(); - } - - /** Returns the object with the settings used for calls to setLabels. */ - public UnaryCallSettings setLabelsSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).setLabelsSettings(); - } - - /** Returns the object with the settings used for calls to setLegacyAbac. */ - public UnaryCallSettings setLegacyAbacSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).setLegacyAbacSettings(); - } - - /** Returns the object with the settings used for calls to startIPRotation. */ - public UnaryCallSettings startIPRotationSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).startIPRotationSettings(); - } - - /** Returns the object with the settings used for calls to completeIPRotation. */ - public UnaryCallSettings completeIPRotationSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).completeIPRotationSettings(); - } - - /** Returns the object with the settings used for calls to setNodePoolSize. */ - public UnaryCallSettings setNodePoolSizeSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).setNodePoolSizeSettings(); - } - - /** Returns the object with the settings used for calls to setNetworkPolicy. */ - public UnaryCallSettings setNetworkPolicySettings() { - return ((ClusterManagerStubSettings) getStubSettings()).setNetworkPolicySettings(); - } - - /** Returns the object with the settings used for calls to setMaintenancePolicy. */ - public UnaryCallSettings setMaintenancePolicySettings() { - return ((ClusterManagerStubSettings) getStubSettings()).setMaintenancePolicySettings(); - } - - /** Returns the object with the settings used for calls to listUsableSubnetworks. */ - public PagedCallSettings< - ListUsableSubnetworksRequest, - ListUsableSubnetworksResponse, - ListUsableSubnetworksPagedResponse> - listUsableSubnetworksSettings() { - return ((ClusterManagerStubSettings) getStubSettings()).listUsableSubnetworksSettings(); - } - - public static final ClusterManagerSettings create(ClusterManagerStubSettings stub) - throws IOException { - return new ClusterManagerSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return ClusterManagerStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return ClusterManagerStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return ClusterManagerStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return ClusterManagerStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return ClusterManagerStubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return ClusterManagerStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ClusterManagerStubSettings.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 ClusterManagerSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for ClusterManagerSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(ClusterManagerStubSettings.newBuilder(clientContext)); - } - - protected Builder(ClusterManagerSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(ClusterManagerStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(ClusterManagerStubSettings.newBuilder()); - } - - public ClusterManagerStubSettings.Builder getStubSettingsBuilder() { - return ((ClusterManagerStubSettings.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 { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to listClusters. */ - public UnaryCallSettings.Builder - listClustersSettings() { - return getStubSettingsBuilder().listClustersSettings(); - } - - /** 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 createCluster. */ - public UnaryCallSettings.Builder createClusterSettings() { - return getStubSettingsBuilder().createClusterSettings(); - } - - /** 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 updateNodePool. */ - public UnaryCallSettings.Builder updateNodePoolSettings() { - return getStubSettingsBuilder().updateNodePoolSettings(); - } - - /** Returns the builder for the settings used for calls to setNodePoolAutoscaling. */ - public UnaryCallSettings.Builder - setNodePoolAutoscalingSettings() { - return getStubSettingsBuilder().setNodePoolAutoscalingSettings(); - } - - /** Returns the builder for the settings used for calls to setLoggingService. */ - public UnaryCallSettings.Builder - setLoggingServiceSettings() { - return getStubSettingsBuilder().setLoggingServiceSettings(); - } - - /** Returns the builder for the settings used for calls to setMonitoringService. */ - public UnaryCallSettings.Builder - setMonitoringServiceSettings() { - return getStubSettingsBuilder().setMonitoringServiceSettings(); - } - - /** Returns the builder for the settings used for calls to setAddonsConfig. */ - public UnaryCallSettings.Builder setAddonsConfigSettings() { - return getStubSettingsBuilder().setAddonsConfigSettings(); - } - - /** Returns the builder for the settings used for calls to setLocations. */ - public UnaryCallSettings.Builder setLocationsSettings() { - return getStubSettingsBuilder().setLocationsSettings(); - } - - /** Returns the builder for the settings used for calls to updateMaster. */ - public UnaryCallSettings.Builder updateMasterSettings() { - return getStubSettingsBuilder().updateMasterSettings(); - } - - /** Returns the builder for the settings used for calls to setMasterAuth. */ - public UnaryCallSettings.Builder setMasterAuthSettings() { - return getStubSettingsBuilder().setMasterAuthSettings(); - } - - /** 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 listOperations. */ - public UnaryCallSettings.Builder - listOperationsSettings() { - return getStubSettingsBuilder().listOperationsSettings(); - } - - /** Returns the builder for the settings used for calls to get. */ - public UnaryCallSettings.Builder getOperationSettings() { - return getStubSettingsBuilder().getOperationSettings(); - } - - /** Returns the builder for the settings used for calls to cancel. */ - public UnaryCallSettings.Builder cancelOperationSettings() { - return getStubSettingsBuilder().cancelOperationSettings(); - } - - /** Returns the builder for the settings used for calls to getServerConfig. */ - public UnaryCallSettings.Builder - getServerConfigSettings() { - return getStubSettingsBuilder().getServerConfigSettings(); - } - - /** Returns the builder for the settings used for calls to getJSONWebKeys. */ - public UnaryCallSettings.Builder - getJSONWebKeysSettings() { - return getStubSettingsBuilder().getJSONWebKeysSettings(); - } - - /** Returns the builder for the settings used for calls to listNodePools. */ - public UnaryCallSettings.Builder - listNodePoolsSettings() { - return getStubSettingsBuilder().listNodePoolsSettings(); - } - - /** Returns the builder for the settings used for calls to getNodePool. */ - public UnaryCallSettings.Builder getNodePoolSettings() { - return getStubSettingsBuilder().getNodePoolSettings(); - } - - /** Returns the builder for the settings used for calls to createNodePool. */ - public UnaryCallSettings.Builder createNodePoolSettings() { - return getStubSettingsBuilder().createNodePoolSettings(); - } - - /** Returns the builder for the settings used for calls to deleteNodePool. */ - public UnaryCallSettings.Builder deleteNodePoolSettings() { - return getStubSettingsBuilder().deleteNodePoolSettings(); - } - - /** Returns the builder for the settings used for calls to rollbackNodePoolUpgrade. */ - public UnaryCallSettings.Builder - rollbackNodePoolUpgradeSettings() { - return getStubSettingsBuilder().rollbackNodePoolUpgradeSettings(); - } - - /** Returns the builder for the settings used for calls to setNodePoolManagement. */ - public UnaryCallSettings.Builder - setNodePoolManagementSettings() { - return getStubSettingsBuilder().setNodePoolManagementSettings(); - } - - /** Returns the builder for the settings used for calls to setLabels. */ - public UnaryCallSettings.Builder setLabelsSettings() { - return getStubSettingsBuilder().setLabelsSettings(); - } - - /** Returns the builder for the settings used for calls to setLegacyAbac. */ - public UnaryCallSettings.Builder setLegacyAbacSettings() { - return getStubSettingsBuilder().setLegacyAbacSettings(); - } - - /** Returns the builder for the settings used for calls to startIPRotation. */ - public UnaryCallSettings.Builder startIPRotationSettings() { - return getStubSettingsBuilder().startIPRotationSettings(); - } - - /** Returns the builder for the settings used for calls to completeIPRotation. */ - public UnaryCallSettings.Builder - completeIPRotationSettings() { - return getStubSettingsBuilder().completeIPRotationSettings(); - } - - /** Returns the builder for the settings used for calls to setNodePoolSize. */ - public UnaryCallSettings.Builder setNodePoolSizeSettings() { - return getStubSettingsBuilder().setNodePoolSizeSettings(); - } - - /** Returns the builder for the settings used for calls to setNetworkPolicy. */ - public UnaryCallSettings.Builder - setNetworkPolicySettings() { - return getStubSettingsBuilder().setNetworkPolicySettings(); - } - - /** Returns the builder for the settings used for calls to setMaintenancePolicy. */ - public UnaryCallSettings.Builder - setMaintenancePolicySettings() { - return getStubSettingsBuilder().setMaintenancePolicySettings(); - } - - /** Returns the builder for the settings used for calls to listUsableSubnetworks. */ - public PagedCallSettings.Builder< - ListUsableSubnetworksRequest, - ListUsableSubnetworksResponse, - ListUsableSubnetworksPagedResponse> - listUsableSubnetworksSettings() { - return getStubSettingsBuilder().listUsableSubnetworksSettings(); - } - - @Override - public ClusterManagerSettings build() throws IOException { - return new ClusterManagerSettings(this); - } - } -} diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1/SampleApp.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1/SampleApp.java deleted file mode 100644 index 140736d1..00000000 --- a/google-cloud-container/src/main/java/com/google/cloud/container/v1/SampleApp.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2017, Google LLC All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.container.v1; - -import java.util.logging.Level; -import java.util.logging.Logger; - -@javax.annotation.Generated("by GAPIC") -public class SampleApp { - public static void main(String args[]) { - Logger.getLogger("").setLevel(Level.WARNING); - try { - executeNoCatch(); - System.out.println("OK"); - } catch (Exception e) { - System.err.println("Failed with exception:"); - e.printStackTrace(System.err); - System.exit(1); - } - } - - public static void executeNoCatch() throws Exception { - try (ClusterManagerClient client = ClusterManagerClient.create()) { - // Add your method call here. - } - } -} diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java deleted file mode 100644 index d14021d4..00000000 --- a/google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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. - * - *

======================= ClusterManagerClient ======================= - * - *

Service Description: Google Kubernetes Engine Cluster Manager v1 - * - *

Sample for ClusterManagerClient: - * - *

{@code
- * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
- *   String parent = "parent-995424086";
- *   ListClustersResponse response = clusterManagerClient.listClusters(parent);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.cloud.container.v1; - -import javax.annotation.Generated; diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java deleted file mode 100644 index b594012d..00000000 --- a/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.container.v1.stub; - -import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.container.v1.CancelOperationRequest; -import com.google.container.v1.Cluster; -import com.google.container.v1.CompleteIPRotationRequest; -import com.google.container.v1.CreateClusterRequest; -import com.google.container.v1.CreateNodePoolRequest; -import com.google.container.v1.DeleteClusterRequest; -import com.google.container.v1.DeleteNodePoolRequest; -import com.google.container.v1.GetClusterRequest; -import com.google.container.v1.GetJSONWebKeysRequest; -import com.google.container.v1.GetJSONWebKeysResponse; -import com.google.container.v1.GetNodePoolRequest; -import com.google.container.v1.GetOperationRequest; -import com.google.container.v1.GetServerConfigRequest; -import com.google.container.v1.ListClustersRequest; -import com.google.container.v1.ListClustersResponse; -import com.google.container.v1.ListNodePoolsRequest; -import com.google.container.v1.ListNodePoolsResponse; -import com.google.container.v1.ListOperationsRequest; -import com.google.container.v1.ListOperationsResponse; -import com.google.container.v1.ListUsableSubnetworksRequest; -import com.google.container.v1.ListUsableSubnetworksResponse; -import com.google.container.v1.NodePool; -import com.google.container.v1.Operation; -import com.google.container.v1.RollbackNodePoolUpgradeRequest; -import com.google.container.v1.ServerConfig; -import com.google.container.v1.SetAddonsConfigRequest; -import com.google.container.v1.SetLabelsRequest; -import com.google.container.v1.SetLegacyAbacRequest; -import com.google.container.v1.SetLocationsRequest; -import com.google.container.v1.SetLoggingServiceRequest; -import com.google.container.v1.SetMaintenancePolicyRequest; -import com.google.container.v1.SetMasterAuthRequest; -import com.google.container.v1.SetMonitoringServiceRequest; -import com.google.container.v1.SetNetworkPolicyRequest; -import com.google.container.v1.SetNodePoolAutoscalingRequest; -import com.google.container.v1.SetNodePoolManagementRequest; -import com.google.container.v1.SetNodePoolSizeRequest; -import com.google.container.v1.StartIPRotationRequest; -import com.google.container.v1.UpdateClusterRequest; -import com.google.container.v1.UpdateMasterRequest; -import com.google.container.v1.UpdateNodePoolRequest; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the ClusterManager service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public abstract class ClusterManagerStub implements BackgroundResource { - - public UnaryCallable listClustersCallable() { - throw new UnsupportedOperationException("Not implemented: listClustersCallable()"); - } - - public UnaryCallable getClusterCallable() { - throw new UnsupportedOperationException("Not implemented: getClusterCallable()"); - } - - public UnaryCallable createClusterCallable() { - throw new UnsupportedOperationException("Not implemented: createClusterCallable()"); - } - - public UnaryCallable updateClusterCallable() { - throw new UnsupportedOperationException("Not implemented: updateClusterCallable()"); - } - - public UnaryCallable updateNodePoolCallable() { - throw new UnsupportedOperationException("Not implemented: updateNodePoolCallable()"); - } - - public UnaryCallable setNodePoolAutoscalingCallable() { - throw new UnsupportedOperationException("Not implemented: setNodePoolAutoscalingCallable()"); - } - - public UnaryCallable setLoggingServiceCallable() { - throw new UnsupportedOperationException("Not implemented: setLoggingServiceCallable()"); - } - - public UnaryCallable setMonitoringServiceCallable() { - throw new UnsupportedOperationException("Not implemented: setMonitoringServiceCallable()"); - } - - public UnaryCallable setAddonsConfigCallable() { - throw new UnsupportedOperationException("Not implemented: setAddonsConfigCallable()"); - } - - public UnaryCallable setLocationsCallable() { - throw new UnsupportedOperationException("Not implemented: setLocationsCallable()"); - } - - public UnaryCallable updateMasterCallable() { - throw new UnsupportedOperationException("Not implemented: updateMasterCallable()"); - } - - public UnaryCallable setMasterAuthCallable() { - throw new UnsupportedOperationException("Not implemented: setMasterAuthCallable()"); - } - - public UnaryCallable deleteClusterCallable() { - throw new UnsupportedOperationException("Not implemented: deleteClusterCallable()"); - } - - public UnaryCallable listOperationsCallable() { - throw new UnsupportedOperationException("Not implemented: listOperationsCallable()"); - } - - public UnaryCallable getOperationCallable() { - throw new UnsupportedOperationException("Not implemented: getOperationCallable()"); - } - - public UnaryCallable cancelOperationCallable() { - throw new UnsupportedOperationException("Not implemented: cancelOperationCallable()"); - } - - public UnaryCallable getServerConfigCallable() { - throw new UnsupportedOperationException("Not implemented: getServerConfigCallable()"); - } - - public UnaryCallable getJSONWebKeysCallable() { - throw new UnsupportedOperationException("Not implemented: getJSONWebKeysCallable()"); - } - - public UnaryCallable listNodePoolsCallable() { - throw new UnsupportedOperationException("Not implemented: listNodePoolsCallable()"); - } - - public UnaryCallable getNodePoolCallable() { - throw new UnsupportedOperationException("Not implemented: getNodePoolCallable()"); - } - - public UnaryCallable createNodePoolCallable() { - throw new UnsupportedOperationException("Not implemented: createNodePoolCallable()"); - } - - public UnaryCallable deleteNodePoolCallable() { - throw new UnsupportedOperationException("Not implemented: deleteNodePoolCallable()"); - } - - public UnaryCallable - rollbackNodePoolUpgradeCallable() { - throw new UnsupportedOperationException("Not implemented: rollbackNodePoolUpgradeCallable()"); - } - - public UnaryCallable setNodePoolManagementCallable() { - throw new UnsupportedOperationException("Not implemented: setNodePoolManagementCallable()"); - } - - public UnaryCallable setLabelsCallable() { - throw new UnsupportedOperationException("Not implemented: setLabelsCallable()"); - } - - public UnaryCallable setLegacyAbacCallable() { - throw new UnsupportedOperationException("Not implemented: setLegacyAbacCallable()"); - } - - public UnaryCallable startIPRotationCallable() { - throw new UnsupportedOperationException("Not implemented: startIPRotationCallable()"); - } - - public UnaryCallable completeIPRotationCallable() { - throw new UnsupportedOperationException("Not implemented: completeIPRotationCallable()"); - } - - public UnaryCallable setNodePoolSizeCallable() { - throw new UnsupportedOperationException("Not implemented: setNodePoolSizeCallable()"); - } - - public UnaryCallable setNetworkPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: setNetworkPolicyCallable()"); - } - - public UnaryCallable setMaintenancePolicyCallable() { - throw new UnsupportedOperationException("Not implemented: setMaintenancePolicyCallable()"); - } - - public UnaryCallable - listUsableSubnetworksPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listUsableSubnetworksPagedCallable()"); - } - - public UnaryCallable - listUsableSubnetworksCallable() { - throw new UnsupportedOperationException("Not implemented: listUsableSubnetworksCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java deleted file mode 100644 index d1f97b9d..00000000 --- a/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java +++ /dev/null @@ -1,1140 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.container.v1.stub; - -import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; - -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.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.container.v1.CancelOperationRequest; -import com.google.container.v1.Cluster; -import com.google.container.v1.CompleteIPRotationRequest; -import com.google.container.v1.CreateClusterRequest; -import com.google.container.v1.CreateNodePoolRequest; -import com.google.container.v1.DeleteClusterRequest; -import com.google.container.v1.DeleteNodePoolRequest; -import com.google.container.v1.GetClusterRequest; -import com.google.container.v1.GetJSONWebKeysRequest; -import com.google.container.v1.GetJSONWebKeysResponse; -import com.google.container.v1.GetNodePoolRequest; -import com.google.container.v1.GetOperationRequest; -import com.google.container.v1.GetServerConfigRequest; -import com.google.container.v1.ListClustersRequest; -import com.google.container.v1.ListClustersResponse; -import com.google.container.v1.ListNodePoolsRequest; -import com.google.container.v1.ListNodePoolsResponse; -import com.google.container.v1.ListOperationsRequest; -import com.google.container.v1.ListOperationsResponse; -import com.google.container.v1.ListUsableSubnetworksRequest; -import com.google.container.v1.ListUsableSubnetworksResponse; -import com.google.container.v1.NodePool; -import com.google.container.v1.Operation; -import com.google.container.v1.RollbackNodePoolUpgradeRequest; -import com.google.container.v1.ServerConfig; -import com.google.container.v1.SetAddonsConfigRequest; -import com.google.container.v1.SetLabelsRequest; -import com.google.container.v1.SetLegacyAbacRequest; -import com.google.container.v1.SetLocationsRequest; -import com.google.container.v1.SetLoggingServiceRequest; -import com.google.container.v1.SetMaintenancePolicyRequest; -import com.google.container.v1.SetMasterAuthRequest; -import com.google.container.v1.SetMonitoringServiceRequest; -import com.google.container.v1.SetNetworkPolicyRequest; -import com.google.container.v1.SetNodePoolAutoscalingRequest; -import com.google.container.v1.SetNodePoolManagementRequest; -import com.google.container.v1.SetNodePoolSizeRequest; -import com.google.container.v1.StartIPRotationRequest; -import com.google.container.v1.UpdateClusterRequest; -import com.google.container.v1.UpdateMasterRequest; -import com.google.container.v1.UpdateNodePoolRequest; -import com.google.container.v1.UsableSubnetwork; -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 ClusterManagerStub}. - * - *

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

    - *
  • The default service address (container.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 listClusters to 30 seconds: - * - *

{@code
- * ClusterManagerStubSettings.Builder clusterManagerSettingsBuilder =
- *     ClusterManagerStubSettings.newBuilder();
- * clusterManagerSettingsBuilder
- *     .listClustersSettings()
- *     .setRetrySettings(
- *         clusterManagerSettingsBuilder
- *             .listClustersSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * ClusterManagerStubSettings clusterManagerSettings = clusterManagerSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class ClusterManagerStubSettings 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 listClustersSettings; - private final UnaryCallSettings getClusterSettings; - private final UnaryCallSettings createClusterSettings; - private final UnaryCallSettings updateClusterSettings; - private final UnaryCallSettings updateNodePoolSettings; - private final UnaryCallSettings - setNodePoolAutoscalingSettings; - private final UnaryCallSettings setLoggingServiceSettings; - private final UnaryCallSettings - setMonitoringServiceSettings; - private final UnaryCallSettings setAddonsConfigSettings; - private final UnaryCallSettings setLocationsSettings; - private final UnaryCallSettings updateMasterSettings; - private final UnaryCallSettings setMasterAuthSettings; - private final UnaryCallSettings deleteClusterSettings; - private final UnaryCallSettings - listOperationsSettings; - private final UnaryCallSettings getOperationSettings; - private final UnaryCallSettings cancelOperationSettings; - private final UnaryCallSettings getServerConfigSettings; - private final UnaryCallSettings - getJSONWebKeysSettings; - private final UnaryCallSettings - listNodePoolsSettings; - private final UnaryCallSettings getNodePoolSettings; - private final UnaryCallSettings createNodePoolSettings; - private final UnaryCallSettings deleteNodePoolSettings; - private final UnaryCallSettings - rollbackNodePoolUpgradeSettings; - private final UnaryCallSettings - setNodePoolManagementSettings; - private final UnaryCallSettings setLabelsSettings; - private final UnaryCallSettings setLegacyAbacSettings; - private final UnaryCallSettings startIPRotationSettings; - private final UnaryCallSettings completeIPRotationSettings; - private final UnaryCallSettings setNodePoolSizeSettings; - private final UnaryCallSettings setNetworkPolicySettings; - private final UnaryCallSettings - setMaintenancePolicySettings; - private final PagedCallSettings< - ListUsableSubnetworksRequest, - ListUsableSubnetworksResponse, - ListUsableSubnetworksPagedResponse> - listUsableSubnetworksSettings; - - private static final PagedListDescriptor< - ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, UsableSubnetwork> - LIST_USABLE_SUBNETWORKS_PAGE_STR_DESC = - new PagedListDescriptor< - ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, UsableSubnetwork>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListUsableSubnetworksRequest injectToken( - ListUsableSubnetworksRequest payload, String token) { - return ListUsableSubnetworksRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListUsableSubnetworksRequest injectPageSize( - ListUsableSubnetworksRequest payload, int pageSize) { - return ListUsableSubnetworksRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListUsableSubnetworksRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListUsableSubnetworksResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListUsableSubnetworksResponse payload) { - return payload.getSubnetworksList() == null - ? ImmutableList.of() - : payload.getSubnetworksList(); - } - }; - - private static final PagedListResponseFactory< - ListUsableSubnetworksRequest, - ListUsableSubnetworksResponse, - ListUsableSubnetworksPagedResponse> - LIST_USABLE_SUBNETWORKS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListUsableSubnetworksRequest, - ListUsableSubnetworksResponse, - ListUsableSubnetworksPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListUsableSubnetworksRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, UsableSubnetwork> - pageContext = - PageContext.create( - callable, LIST_USABLE_SUBNETWORKS_PAGE_STR_DESC, request, context); - return ListUsableSubnetworksPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to listClusters. */ - public UnaryCallSettings listClustersSettings() { - return listClustersSettings; - } - - /** 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 createCluster. */ - public UnaryCallSettings createClusterSettings() { - return createClusterSettings; - } - - /** 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 updateNodePool. */ - public UnaryCallSettings updateNodePoolSettings() { - return updateNodePoolSettings; - } - - /** Returns the object with the settings used for calls to setNodePoolAutoscaling. */ - public UnaryCallSettings - setNodePoolAutoscalingSettings() { - return setNodePoolAutoscalingSettings; - } - - /** Returns the object with the settings used for calls to setLoggingService. */ - public UnaryCallSettings setLoggingServiceSettings() { - return setLoggingServiceSettings; - } - - /** Returns the object with the settings used for calls to setMonitoringService. */ - public UnaryCallSettings setMonitoringServiceSettings() { - return setMonitoringServiceSettings; - } - - /** Returns the object with the settings used for calls to setAddonsConfig. */ - public UnaryCallSettings setAddonsConfigSettings() { - return setAddonsConfigSettings; - } - - /** Returns the object with the settings used for calls to setLocations. */ - public UnaryCallSettings setLocationsSettings() { - return setLocationsSettings; - } - - /** Returns the object with the settings used for calls to updateMaster. */ - public UnaryCallSettings updateMasterSettings() { - return updateMasterSettings; - } - - /** Returns the object with the settings used for calls to setMasterAuth. */ - public UnaryCallSettings setMasterAuthSettings() { - return setMasterAuthSettings; - } - - /** 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 listOperations. */ - public UnaryCallSettings listOperationsSettings() { - return listOperationsSettings; - } - - /** Returns the object with the settings used for calls to get. */ - public UnaryCallSettings getOperationSettings() { - return getOperationSettings; - } - - /** Returns the object with the settings used for calls to cancel. */ - public UnaryCallSettings cancelOperationSettings() { - return cancelOperationSettings; - } - - /** Returns the object with the settings used for calls to getServerConfig. */ - public UnaryCallSettings getServerConfigSettings() { - return getServerConfigSettings; - } - - /** Returns the object with the settings used for calls to getJSONWebKeys. */ - public UnaryCallSettings getJSONWebKeysSettings() { - return getJSONWebKeysSettings; - } - - /** Returns the object with the settings used for calls to listNodePools. */ - public UnaryCallSettings listNodePoolsSettings() { - return listNodePoolsSettings; - } - - /** Returns the object with the settings used for calls to getNodePool. */ - public UnaryCallSettings getNodePoolSettings() { - return getNodePoolSettings; - } - - /** Returns the object with the settings used for calls to createNodePool. */ - public UnaryCallSettings createNodePoolSettings() { - return createNodePoolSettings; - } - - /** Returns the object with the settings used for calls to deleteNodePool. */ - public UnaryCallSettings deleteNodePoolSettings() { - return deleteNodePoolSettings; - } - - /** Returns the object with the settings used for calls to rollbackNodePoolUpgrade. */ - public UnaryCallSettings - rollbackNodePoolUpgradeSettings() { - return rollbackNodePoolUpgradeSettings; - } - - /** Returns the object with the settings used for calls to setNodePoolManagement. */ - public UnaryCallSettings - setNodePoolManagementSettings() { - return setNodePoolManagementSettings; - } - - /** Returns the object with the settings used for calls to setLabels. */ - public UnaryCallSettings setLabelsSettings() { - return setLabelsSettings; - } - - /** Returns the object with the settings used for calls to setLegacyAbac. */ - public UnaryCallSettings setLegacyAbacSettings() { - return setLegacyAbacSettings; - } - - /** Returns the object with the settings used for calls to startIPRotation. */ - public UnaryCallSettings startIPRotationSettings() { - return startIPRotationSettings; - } - - /** Returns the object with the settings used for calls to completeIPRotation. */ - public UnaryCallSettings completeIPRotationSettings() { - return completeIPRotationSettings; - } - - /** Returns the object with the settings used for calls to setNodePoolSize. */ - public UnaryCallSettings setNodePoolSizeSettings() { - return setNodePoolSizeSettings; - } - - /** Returns the object with the settings used for calls to setNetworkPolicy. */ - public UnaryCallSettings setNetworkPolicySettings() { - return setNetworkPolicySettings; - } - - /** Returns the object with the settings used for calls to setMaintenancePolicy. */ - public UnaryCallSettings setMaintenancePolicySettings() { - return setMaintenancePolicySettings; - } - - /** Returns the object with the settings used for calls to listUsableSubnetworks. */ - public PagedCallSettings< - ListUsableSubnetworksRequest, - ListUsableSubnetworksResponse, - ListUsableSubnetworksPagedResponse> - listUsableSubnetworksSettings() { - return listUsableSubnetworksSettings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public ClusterManagerStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcClusterManagerStub.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 "container.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(ClusterManagerStubSettings.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 ClusterManagerStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - listClustersSettings = settingsBuilder.listClustersSettings().build(); - getClusterSettings = settingsBuilder.getClusterSettings().build(); - createClusterSettings = settingsBuilder.createClusterSettings().build(); - updateClusterSettings = settingsBuilder.updateClusterSettings().build(); - updateNodePoolSettings = settingsBuilder.updateNodePoolSettings().build(); - setNodePoolAutoscalingSettings = settingsBuilder.setNodePoolAutoscalingSettings().build(); - setLoggingServiceSettings = settingsBuilder.setLoggingServiceSettings().build(); - setMonitoringServiceSettings = settingsBuilder.setMonitoringServiceSettings().build(); - setAddonsConfigSettings = settingsBuilder.setAddonsConfigSettings().build(); - setLocationsSettings = settingsBuilder.setLocationsSettings().build(); - updateMasterSettings = settingsBuilder.updateMasterSettings().build(); - setMasterAuthSettings = settingsBuilder.setMasterAuthSettings().build(); - deleteClusterSettings = settingsBuilder.deleteClusterSettings().build(); - listOperationsSettings = settingsBuilder.listOperationsSettings().build(); - getOperationSettings = settingsBuilder.getOperationSettings().build(); - cancelOperationSettings = settingsBuilder.cancelOperationSettings().build(); - getServerConfigSettings = settingsBuilder.getServerConfigSettings().build(); - getJSONWebKeysSettings = settingsBuilder.getJSONWebKeysSettings().build(); - listNodePoolsSettings = settingsBuilder.listNodePoolsSettings().build(); - getNodePoolSettings = settingsBuilder.getNodePoolSettings().build(); - createNodePoolSettings = settingsBuilder.createNodePoolSettings().build(); - deleteNodePoolSettings = settingsBuilder.deleteNodePoolSettings().build(); - rollbackNodePoolUpgradeSettings = settingsBuilder.rollbackNodePoolUpgradeSettings().build(); - setNodePoolManagementSettings = settingsBuilder.setNodePoolManagementSettings().build(); - setLabelsSettings = settingsBuilder.setLabelsSettings().build(); - setLegacyAbacSettings = settingsBuilder.setLegacyAbacSettings().build(); - startIPRotationSettings = settingsBuilder.startIPRotationSettings().build(); - completeIPRotationSettings = settingsBuilder.completeIPRotationSettings().build(); - setNodePoolSizeSettings = settingsBuilder.setNodePoolSizeSettings().build(); - setNetworkPolicySettings = settingsBuilder.setNetworkPolicySettings().build(); - setMaintenancePolicySettings = settingsBuilder.setMaintenancePolicySettings().build(); - listUsableSubnetworksSettings = settingsBuilder.listUsableSubnetworksSettings().build(); - } - - /** Builder for ClusterManagerStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder - listClustersSettings; - private final UnaryCallSettings.Builder getClusterSettings; - private final UnaryCallSettings.Builder createClusterSettings; - private final UnaryCallSettings.Builder updateClusterSettings; - private final UnaryCallSettings.Builder - updateNodePoolSettings; - private final UnaryCallSettings.Builder - setNodePoolAutoscalingSettings; - private final UnaryCallSettings.Builder - setLoggingServiceSettings; - private final UnaryCallSettings.Builder - setMonitoringServiceSettings; - private final UnaryCallSettings.Builder - setAddonsConfigSettings; - private final UnaryCallSettings.Builder setLocationsSettings; - private final UnaryCallSettings.Builder updateMasterSettings; - private final UnaryCallSettings.Builder setMasterAuthSettings; - private final UnaryCallSettings.Builder deleteClusterSettings; - private final UnaryCallSettings.Builder - listOperationsSettings; - private final UnaryCallSettings.Builder getOperationSettings; - private final UnaryCallSettings.Builder cancelOperationSettings; - private final UnaryCallSettings.Builder - getServerConfigSettings; - private final UnaryCallSettings.Builder - getJSONWebKeysSettings; - private final UnaryCallSettings.Builder - listNodePoolsSettings; - private final UnaryCallSettings.Builder getNodePoolSettings; - private final UnaryCallSettings.Builder - createNodePoolSettings; - private final UnaryCallSettings.Builder - deleteNodePoolSettings; - private final UnaryCallSettings.Builder - rollbackNodePoolUpgradeSettings; - private final UnaryCallSettings.Builder - setNodePoolManagementSettings; - private final UnaryCallSettings.Builder setLabelsSettings; - private final UnaryCallSettings.Builder setLegacyAbacSettings; - private final UnaryCallSettings.Builder - startIPRotationSettings; - private final UnaryCallSettings.Builder - completeIPRotationSettings; - private final UnaryCallSettings.Builder - setNodePoolSizeSettings; - private final UnaryCallSettings.Builder - setNetworkPolicySettings; - private final UnaryCallSettings.Builder - setMaintenancePolicySettings; - private final PagedCallSettings.Builder< - ListUsableSubnetworksRequest, - ListUsableSubnetworksResponse, - ListUsableSubnetworksPagedResponse> - listUsableSubnetworksSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "retry_policy_0_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); - definitions.put( - "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(20000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(20000L)) - .setTotalTimeout(Duration.ofMillis(20000L)) - .build(); - definitions.put("retry_policy_0_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(45000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(45000L)) - .setTotalTimeout(Duration.ofMillis(45000L)) - .build(); - definitions.put("no_retry_1_params", settings); - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - listClustersSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateNodePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setNodePoolAutoscalingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setLoggingServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setMonitoringServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setAddonsConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setLocationsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateMasterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setMasterAuthSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listOperationsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getOperationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - cancelOperationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getServerConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getJSONWebKeysSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listNodePoolsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getNodePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createNodePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteNodePoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - rollbackNodePoolUpgradeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setNodePoolManagementSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setLabelsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setLegacyAbacSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - startIPRotationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - completeIPRotationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setNodePoolSizeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setNetworkPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setMaintenancePolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listUsableSubnetworksSettings = - PagedCallSettings.newBuilder(LIST_USABLE_SUBNETWORKS_PAGE_STR_FACT); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listClustersSettings, - getClusterSettings, - createClusterSettings, - updateClusterSettings, - updateNodePoolSettings, - setNodePoolAutoscalingSettings, - setLoggingServiceSettings, - setMonitoringServiceSettings, - setAddonsConfigSettings, - setLocationsSettings, - updateMasterSettings, - setMasterAuthSettings, - deleteClusterSettings, - listOperationsSettings, - getOperationSettings, - cancelOperationSettings, - getServerConfigSettings, - getJSONWebKeysSettings, - listNodePoolsSettings, - getNodePoolSettings, - createNodePoolSettings, - deleteNodePoolSettings, - rollbackNodePoolUpgradeSettings, - setNodePoolManagementSettings, - setLabelsSettings, - setLegacyAbacSettings, - startIPRotationSettings, - completeIPRotationSettings, - setNodePoolSizeSettings, - setNetworkPolicySettings, - setMaintenancePolicySettings, - listUsableSubnetworksSettings); - initDefaults(this); - } - - protected Builder(ClusterManagerStubSettings settings) { - super(settings); - - listClustersSettings = settings.listClustersSettings.toBuilder(); - getClusterSettings = settings.getClusterSettings.toBuilder(); - createClusterSettings = settings.createClusterSettings.toBuilder(); - updateClusterSettings = settings.updateClusterSettings.toBuilder(); - updateNodePoolSettings = settings.updateNodePoolSettings.toBuilder(); - setNodePoolAutoscalingSettings = settings.setNodePoolAutoscalingSettings.toBuilder(); - setLoggingServiceSettings = settings.setLoggingServiceSettings.toBuilder(); - setMonitoringServiceSettings = settings.setMonitoringServiceSettings.toBuilder(); - setAddonsConfigSettings = settings.setAddonsConfigSettings.toBuilder(); - setLocationsSettings = settings.setLocationsSettings.toBuilder(); - updateMasterSettings = settings.updateMasterSettings.toBuilder(); - setMasterAuthSettings = settings.setMasterAuthSettings.toBuilder(); - deleteClusterSettings = settings.deleteClusterSettings.toBuilder(); - listOperationsSettings = settings.listOperationsSettings.toBuilder(); - getOperationSettings = settings.getOperationSettings.toBuilder(); - cancelOperationSettings = settings.cancelOperationSettings.toBuilder(); - getServerConfigSettings = settings.getServerConfigSettings.toBuilder(); - getJSONWebKeysSettings = settings.getJSONWebKeysSettings.toBuilder(); - listNodePoolsSettings = settings.listNodePoolsSettings.toBuilder(); - getNodePoolSettings = settings.getNodePoolSettings.toBuilder(); - createNodePoolSettings = settings.createNodePoolSettings.toBuilder(); - deleteNodePoolSettings = settings.deleteNodePoolSettings.toBuilder(); - rollbackNodePoolUpgradeSettings = settings.rollbackNodePoolUpgradeSettings.toBuilder(); - setNodePoolManagementSettings = settings.setNodePoolManagementSettings.toBuilder(); - setLabelsSettings = settings.setLabelsSettings.toBuilder(); - setLegacyAbacSettings = settings.setLegacyAbacSettings.toBuilder(); - startIPRotationSettings = settings.startIPRotationSettings.toBuilder(); - completeIPRotationSettings = settings.completeIPRotationSettings.toBuilder(); - setNodePoolSizeSettings = settings.setNodePoolSizeSettings.toBuilder(); - setNetworkPolicySettings = settings.setNetworkPolicySettings.toBuilder(); - setMaintenancePolicySettings = settings.setMaintenancePolicySettings.toBuilder(); - listUsableSubnetworksSettings = settings.listUsableSubnetworksSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listClustersSettings, - getClusterSettings, - createClusterSettings, - updateClusterSettings, - updateNodePoolSettings, - setNodePoolAutoscalingSettings, - setLoggingServiceSettings, - setMonitoringServiceSettings, - setAddonsConfigSettings, - setLocationsSettings, - updateMasterSettings, - setMasterAuthSettings, - deleteClusterSettings, - listOperationsSettings, - getOperationSettings, - cancelOperationSettings, - getServerConfigSettings, - getJSONWebKeysSettings, - listNodePoolsSettings, - getNodePoolSettings, - createNodePoolSettings, - deleteNodePoolSettings, - rollbackNodePoolUpgradeSettings, - setNodePoolManagementSettings, - setLabelsSettings, - setLegacyAbacSettings, - startIPRotationSettings, - completeIPRotationSettings, - setNodePoolSizeSettings, - setNetworkPolicySettings, - setMaintenancePolicySettings, - listUsableSubnetworksSettings); - } - - private static Builder createDefault() { - 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 - .listClustersSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .updateClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .updateNodePoolSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .setNodePoolAutoscalingSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .setLoggingServiceSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .setMonitoringServiceSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .setAddonsConfigSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .setLocationsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .updateMasterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .setMasterAuthSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deleteClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listOperationsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getOperationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .cancelOperationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .getServerConfigSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getJSONWebKeysSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .listNodePoolsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getNodePoolSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createNodePoolSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deleteNodePoolSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .rollbackNodePoolUpgradeSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .setNodePoolManagementSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .setLabelsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .setLegacyAbacSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .startIPRotationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .completeIPRotationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .setNodePoolSizeSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .setNetworkPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .setMaintenancePolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .listUsableSubnetworksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - 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 { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to listClusters. */ - public UnaryCallSettings.Builder - listClustersSettings() { - return listClustersSettings; - } - - /** 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 createCluster. */ - public UnaryCallSettings.Builder createClusterSettings() { - return createClusterSettings; - } - - /** 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 updateNodePool. */ - public UnaryCallSettings.Builder updateNodePoolSettings() { - return updateNodePoolSettings; - } - - /** Returns the builder for the settings used for calls to setNodePoolAutoscaling. */ - public UnaryCallSettings.Builder - setNodePoolAutoscalingSettings() { - return setNodePoolAutoscalingSettings; - } - - /** Returns the builder for the settings used for calls to setLoggingService. */ - public UnaryCallSettings.Builder - setLoggingServiceSettings() { - return setLoggingServiceSettings; - } - - /** Returns the builder for the settings used for calls to setMonitoringService. */ - public UnaryCallSettings.Builder - setMonitoringServiceSettings() { - return setMonitoringServiceSettings; - } - - /** Returns the builder for the settings used for calls to setAddonsConfig. */ - public UnaryCallSettings.Builder setAddonsConfigSettings() { - return setAddonsConfigSettings; - } - - /** Returns the builder for the settings used for calls to setLocations. */ - public UnaryCallSettings.Builder setLocationsSettings() { - return setLocationsSettings; - } - - /** Returns the builder for the settings used for calls to updateMaster. */ - public UnaryCallSettings.Builder updateMasterSettings() { - return updateMasterSettings; - } - - /** Returns the builder for the settings used for calls to setMasterAuth. */ - public UnaryCallSettings.Builder setMasterAuthSettings() { - return setMasterAuthSettings; - } - - /** 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 listOperations. */ - public UnaryCallSettings.Builder - listOperationsSettings() { - return listOperationsSettings; - } - - /** Returns the builder for the settings used for calls to get. */ - public UnaryCallSettings.Builder getOperationSettings() { - return getOperationSettings; - } - - /** Returns the builder for the settings used for calls to cancel. */ - public UnaryCallSettings.Builder cancelOperationSettings() { - return cancelOperationSettings; - } - - /** Returns the builder for the settings used for calls to getServerConfig. */ - public UnaryCallSettings.Builder - getServerConfigSettings() { - return getServerConfigSettings; - } - - /** Returns the builder for the settings used for calls to getJSONWebKeys. */ - public UnaryCallSettings.Builder - getJSONWebKeysSettings() { - return getJSONWebKeysSettings; - } - - /** Returns the builder for the settings used for calls to listNodePools. */ - public UnaryCallSettings.Builder - listNodePoolsSettings() { - return listNodePoolsSettings; - } - - /** Returns the builder for the settings used for calls to getNodePool. */ - public UnaryCallSettings.Builder getNodePoolSettings() { - return getNodePoolSettings; - } - - /** Returns the builder for the settings used for calls to createNodePool. */ - public UnaryCallSettings.Builder createNodePoolSettings() { - return createNodePoolSettings; - } - - /** Returns the builder for the settings used for calls to deleteNodePool. */ - public UnaryCallSettings.Builder deleteNodePoolSettings() { - return deleteNodePoolSettings; - } - - /** Returns the builder for the settings used for calls to rollbackNodePoolUpgrade. */ - public UnaryCallSettings.Builder - rollbackNodePoolUpgradeSettings() { - return rollbackNodePoolUpgradeSettings; - } - - /** Returns the builder for the settings used for calls to setNodePoolManagement. */ - public UnaryCallSettings.Builder - setNodePoolManagementSettings() { - return setNodePoolManagementSettings; - } - - /** Returns the builder for the settings used for calls to setLabels. */ - public UnaryCallSettings.Builder setLabelsSettings() { - return setLabelsSettings; - } - - /** Returns the builder for the settings used for calls to setLegacyAbac. */ - public UnaryCallSettings.Builder setLegacyAbacSettings() { - return setLegacyAbacSettings; - } - - /** Returns the builder for the settings used for calls to startIPRotation. */ - public UnaryCallSettings.Builder startIPRotationSettings() { - return startIPRotationSettings; - } - - /** Returns the builder for the settings used for calls to completeIPRotation. */ - public UnaryCallSettings.Builder - completeIPRotationSettings() { - return completeIPRotationSettings; - } - - /** Returns the builder for the settings used for calls to setNodePoolSize. */ - public UnaryCallSettings.Builder setNodePoolSizeSettings() { - return setNodePoolSizeSettings; - } - - /** Returns the builder for the settings used for calls to setNetworkPolicy. */ - public UnaryCallSettings.Builder - setNetworkPolicySettings() { - return setNetworkPolicySettings; - } - - /** Returns the builder for the settings used for calls to setMaintenancePolicy. */ - public UnaryCallSettings.Builder - setMaintenancePolicySettings() { - return setMaintenancePolicySettings; - } - - /** Returns the builder for the settings used for calls to listUsableSubnetworks. */ - public PagedCallSettings.Builder< - ListUsableSubnetworksRequest, - ListUsableSubnetworksResponse, - ListUsableSubnetworksPagedResponse> - listUsableSubnetworksSettings() { - return listUsableSubnetworksSettings; - } - - @Override - public ClusterManagerStubSettings build() throws IOException { - return new ClusterManagerStubSettings(this); - } - } -} diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerCallableFactory.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerCallableFactory.java deleted file mode 100644 index d6154e3e..00000000 --- a/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerCallableFactory.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.container.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 ClusterManager service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -public class GrpcClusterManagerCallableFactory 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-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java deleted file mode 100644 index 4e3168e9..00000000 --- a/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java +++ /dev/null @@ -1,1292 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.container.v1.stub; - -import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; - -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.RequestParamsExtractor; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.common.collect.ImmutableMap; -import com.google.container.v1.CancelOperationRequest; -import com.google.container.v1.Cluster; -import com.google.container.v1.CompleteIPRotationRequest; -import com.google.container.v1.CreateClusterRequest; -import com.google.container.v1.CreateNodePoolRequest; -import com.google.container.v1.DeleteClusterRequest; -import com.google.container.v1.DeleteNodePoolRequest; -import com.google.container.v1.GetClusterRequest; -import com.google.container.v1.GetJSONWebKeysRequest; -import com.google.container.v1.GetJSONWebKeysResponse; -import com.google.container.v1.GetNodePoolRequest; -import com.google.container.v1.GetOperationRequest; -import com.google.container.v1.GetServerConfigRequest; -import com.google.container.v1.ListClustersRequest; -import com.google.container.v1.ListClustersResponse; -import com.google.container.v1.ListNodePoolsRequest; -import com.google.container.v1.ListNodePoolsResponse; -import com.google.container.v1.ListOperationsRequest; -import com.google.container.v1.ListOperationsResponse; -import com.google.container.v1.ListUsableSubnetworksRequest; -import com.google.container.v1.ListUsableSubnetworksResponse; -import com.google.container.v1.NodePool; -import com.google.container.v1.Operation; -import com.google.container.v1.RollbackNodePoolUpgradeRequest; -import com.google.container.v1.ServerConfig; -import com.google.container.v1.SetAddonsConfigRequest; -import com.google.container.v1.SetLabelsRequest; -import com.google.container.v1.SetLegacyAbacRequest; -import com.google.container.v1.SetLocationsRequest; -import com.google.container.v1.SetLoggingServiceRequest; -import com.google.container.v1.SetMaintenancePolicyRequest; -import com.google.container.v1.SetMasterAuthRequest; -import com.google.container.v1.SetMonitoringServiceRequest; -import com.google.container.v1.SetNetworkPolicyRequest; -import com.google.container.v1.SetNodePoolAutoscalingRequest; -import com.google.container.v1.SetNodePoolManagementRequest; -import com.google.container.v1.SetNodePoolSizeRequest; -import com.google.container.v1.StartIPRotationRequest; -import com.google.container.v1.UpdateClusterRequest; -import com.google.container.v1.UpdateMasterRequest; -import com.google.container.v1.UpdateNodePoolRequest; -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. -/** - * gRPC stub implementation for the ClusterManager service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public class GrpcClusterManagerStub extends ClusterManagerStub { - private static final MethodDescriptor - listClustersMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/ListClusters") - .setRequestMarshaller(ProtoUtils.marshaller(ListClustersRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListClustersResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getClusterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/GetCluster") - .setRequestMarshaller(ProtoUtils.marshaller(GetClusterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Cluster.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createClusterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/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.container.v1.ClusterManager/UpdateCluster") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateClusterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateNodePoolMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/UpdateNodePool") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateNodePoolRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - setNodePoolAutoscalingMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetNodePoolAutoscaling") - .setRequestMarshaller( - ProtoUtils.marshaller(SetNodePoolAutoscalingRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - setLoggingServiceMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetLoggingService") - .setRequestMarshaller( - ProtoUtils.marshaller(SetLoggingServiceRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - setMonitoringServiceMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetMonitoringService") - .setRequestMarshaller( - ProtoUtils.marshaller(SetMonitoringServiceRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - setAddonsConfigMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetAddonsConfig") - .setRequestMarshaller( - ProtoUtils.marshaller(SetAddonsConfigRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - setLocationsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetLocations") - .setRequestMarshaller(ProtoUtils.marshaller(SetLocationsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateMasterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/UpdateMaster") - .setRequestMarshaller(ProtoUtils.marshaller(UpdateMasterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - setMasterAuthMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetMasterAuth") - .setRequestMarshaller( - ProtoUtils.marshaller(SetMasterAuthRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteClusterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/DeleteCluster") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteClusterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listOperationsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/ListOperations") - .setRequestMarshaller( - ProtoUtils.marshaller(ListOperationsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListOperationsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getOperationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/GetOperation") - .setRequestMarshaller(ProtoUtils.marshaller(GetOperationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - cancelOperationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/CancelOperation") - .setRequestMarshaller( - ProtoUtils.marshaller(CancelOperationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getServerConfigMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/GetServerConfig") - .setRequestMarshaller( - ProtoUtils.marshaller(GetServerConfigRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ServerConfig.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getJSONWebKeysMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/GetJSONWebKeys") - .setRequestMarshaller( - ProtoUtils.marshaller(GetJSONWebKeysRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(GetJSONWebKeysResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listNodePoolsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/ListNodePools") - .setRequestMarshaller( - ProtoUtils.marshaller(ListNodePoolsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListNodePoolsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getNodePoolMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/GetNodePool") - .setRequestMarshaller(ProtoUtils.marshaller(GetNodePoolRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(NodePool.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createNodePoolMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/CreateNodePool") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateNodePoolRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteNodePoolMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/DeleteNodePool") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteNodePoolRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - rollbackNodePoolUpgradeMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/RollbackNodePoolUpgrade") - .setRequestMarshaller( - ProtoUtils.marshaller(RollbackNodePoolUpgradeRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - setNodePoolManagementMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetNodePoolManagement") - .setRequestMarshaller( - ProtoUtils.marshaller(SetNodePoolManagementRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor setLabelsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetLabels") - .setRequestMarshaller(ProtoUtils.marshaller(SetLabelsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - setLegacyAbacMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetLegacyAbac") - .setRequestMarshaller( - ProtoUtils.marshaller(SetLegacyAbacRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - startIPRotationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/StartIPRotation") - .setRequestMarshaller( - ProtoUtils.marshaller(StartIPRotationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - completeIPRotationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/CompleteIPRotation") - .setRequestMarshaller( - ProtoUtils.marshaller(CompleteIPRotationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - setNodePoolSizeMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetNodePoolSize") - .setRequestMarshaller( - ProtoUtils.marshaller(SetNodePoolSizeRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - setNetworkPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetNetworkPolicy") - .setRequestMarshaller( - ProtoUtils.marshaller(SetNetworkPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - setMaintenancePolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/SetMaintenancePolicy") - .setRequestMarshaller( - ProtoUtils.marshaller(SetMaintenancePolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listUsableSubnetworksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.container.v1.ClusterManager/ListUsableSubnetworks") - .setRequestMarshaller( - ProtoUtils.marshaller(ListUsableSubnetworksRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListUsableSubnetworksResponse.getDefaultInstance())) - .build(); - - private final UnaryCallable listClustersCallable; - private final UnaryCallable getClusterCallable; - private final UnaryCallable createClusterCallable; - private final UnaryCallable updateClusterCallable; - private final UnaryCallable updateNodePoolCallable; - private final UnaryCallable - setNodePoolAutoscalingCallable; - private final UnaryCallable setLoggingServiceCallable; - private final UnaryCallable setMonitoringServiceCallable; - private final UnaryCallable setAddonsConfigCallable; - private final UnaryCallable setLocationsCallable; - private final UnaryCallable updateMasterCallable; - private final UnaryCallable setMasterAuthCallable; - private final UnaryCallable deleteClusterCallable; - private final UnaryCallable listOperationsCallable; - private final UnaryCallable getOperationCallable; - private final UnaryCallable cancelOperationCallable; - private final UnaryCallable getServerConfigCallable; - private final UnaryCallable getJSONWebKeysCallable; - private final UnaryCallable listNodePoolsCallable; - private final UnaryCallable getNodePoolCallable; - private final UnaryCallable createNodePoolCallable; - private final UnaryCallable deleteNodePoolCallable; - private final UnaryCallable - rollbackNodePoolUpgradeCallable; - private final UnaryCallable - setNodePoolManagementCallable; - private final UnaryCallable setLabelsCallable; - private final UnaryCallable setLegacyAbacCallable; - private final UnaryCallable startIPRotationCallable; - private final UnaryCallable completeIPRotationCallable; - private final UnaryCallable setNodePoolSizeCallable; - private final UnaryCallable setNetworkPolicyCallable; - private final UnaryCallable setMaintenancePolicyCallable; - private final UnaryCallable - listUsableSubnetworksCallable; - private final UnaryCallable - listUsableSubnetworksPagedCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcClusterManagerStub create(ClusterManagerStubSettings settings) - throws IOException { - return new GrpcClusterManagerStub(settings, ClientContext.create(settings)); - } - - public static final GrpcClusterManagerStub create(ClientContext clientContext) - throws IOException { - return new GrpcClusterManagerStub( - ClusterManagerStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcClusterManagerStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcClusterManagerStub( - ClusterManagerStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcClusterManagerStub, 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 GrpcClusterManagerStub(ClusterManagerStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcClusterManagerCallableFactory()); - } - - /** - * Constructs an instance of GrpcClusterManagerStub, 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 GrpcClusterManagerStub( - ClusterManagerStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings listClustersTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listClustersMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListClustersRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - 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_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings createClusterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createClusterMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateClusterRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - 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_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings updateNodePoolTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateNodePoolMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateNodePoolRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("node_pool_id", String.valueOf(request.getNodePoolId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - setNodePoolAutoscalingTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setNodePoolAutoscalingMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetNodePoolAutoscalingRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("node_pool_id", String.valueOf(request.getNodePoolId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings setLoggingServiceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setLoggingServiceMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetLoggingServiceRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings setMonitoringServiceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setMonitoringServiceMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetMonitoringServiceRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings setAddonsConfigTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setAddonsConfigMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetAddonsConfigRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings setLocationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setLocationsMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetLocationsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings updateMasterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateMasterMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateMasterRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings setMasterAuthTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setMasterAuthMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetMasterAuthRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - 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_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - listOperationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listOperationsMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListOperationsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings getOperationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getOperationMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetOperationRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - params.put("operation_id", String.valueOf(request.getOperationId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings cancelOperationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(cancelOperationMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CancelOperationRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - params.put("operation_id", String.valueOf(request.getOperationId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings getServerConfigTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getServerConfigMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetServerConfigRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - getJSONWebKeysTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getJSONWebKeysMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetJSONWebKeysRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - GrpcCallSettings listNodePoolsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listNodePoolsMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListNodePoolsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("parent", String.valueOf(request.getParent())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings getNodePoolTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getNodePoolMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetNodePoolRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("node_pool_id", String.valueOf(request.getNodePoolId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings createNodePoolTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createNodePoolMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateNodePoolRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("parent", String.valueOf(request.getParent())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings deleteNodePoolTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteNodePoolMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteNodePoolRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("node_pool_id", String.valueOf(request.getNodePoolId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - rollbackNodePoolUpgradeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(rollbackNodePoolUpgradeMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(RollbackNodePoolUpgradeRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("node_pool_id", String.valueOf(request.getNodePoolId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - setNodePoolManagementTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setNodePoolManagementMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetNodePoolManagementRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("node_pool_id", String.valueOf(request.getNodePoolId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings setLabelsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setLabelsMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetLabelsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings setLegacyAbacTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setLegacyAbacMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetLegacyAbacRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings startIPRotationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(startIPRotationMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(StartIPRotationRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings completeIPRotationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(completeIPRotationMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CompleteIPRotationRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings setNodePoolSizeTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setNodePoolSizeMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetNodePoolSizeRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("node_pool_id", String.valueOf(request.getNodePoolId())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings setNetworkPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setNetworkPolicyMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetNetworkPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings setMaintenancePolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setMaintenancePolicyMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetMaintenancePolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("cluster_id", String.valueOf(request.getClusterId())); - params.put("name", String.valueOf(request.getName())); - params.put("project_id", String.valueOf(request.getProjectId())); - params.put("zone", String.valueOf(request.getZone())); - return params.build(); - } - }) - .build(); - GrpcCallSettings - listUsableSubnetworksTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listUsableSubnetworksMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListUsableSubnetworksRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); - - this.listClustersCallable = - callableFactory.createUnaryCallable( - listClustersTransportSettings, settings.listClustersSettings(), clientContext); - this.getClusterCallable = - callableFactory.createUnaryCallable( - getClusterTransportSettings, settings.getClusterSettings(), clientContext); - this.createClusterCallable = - callableFactory.createUnaryCallable( - createClusterTransportSettings, settings.createClusterSettings(), clientContext); - this.updateClusterCallable = - callableFactory.createUnaryCallable( - updateClusterTransportSettings, settings.updateClusterSettings(), clientContext); - this.updateNodePoolCallable = - callableFactory.createUnaryCallable( - updateNodePoolTransportSettings, settings.updateNodePoolSettings(), clientContext); - this.setNodePoolAutoscalingCallable = - callableFactory.createUnaryCallable( - setNodePoolAutoscalingTransportSettings, - settings.setNodePoolAutoscalingSettings(), - clientContext); - this.setLoggingServiceCallable = - callableFactory.createUnaryCallable( - setLoggingServiceTransportSettings, - settings.setLoggingServiceSettings(), - clientContext); - this.setMonitoringServiceCallable = - callableFactory.createUnaryCallable( - setMonitoringServiceTransportSettings, - settings.setMonitoringServiceSettings(), - clientContext); - this.setAddonsConfigCallable = - callableFactory.createUnaryCallable( - setAddonsConfigTransportSettings, settings.setAddonsConfigSettings(), clientContext); - this.setLocationsCallable = - callableFactory.createUnaryCallable( - setLocationsTransportSettings, settings.setLocationsSettings(), clientContext); - this.updateMasterCallable = - callableFactory.createUnaryCallable( - updateMasterTransportSettings, settings.updateMasterSettings(), clientContext); - this.setMasterAuthCallable = - callableFactory.createUnaryCallable( - setMasterAuthTransportSettings, settings.setMasterAuthSettings(), clientContext); - this.deleteClusterCallable = - callableFactory.createUnaryCallable( - deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); - this.listOperationsCallable = - callableFactory.createUnaryCallable( - listOperationsTransportSettings, settings.listOperationsSettings(), clientContext); - this.getOperationCallable = - callableFactory.createUnaryCallable( - getOperationTransportSettings, settings.getOperationSettings(), clientContext); - this.cancelOperationCallable = - callableFactory.createUnaryCallable( - cancelOperationTransportSettings, settings.cancelOperationSettings(), clientContext); - this.getServerConfigCallable = - callableFactory.createUnaryCallable( - getServerConfigTransportSettings, settings.getServerConfigSettings(), clientContext); - this.getJSONWebKeysCallable = - callableFactory.createUnaryCallable( - getJSONWebKeysTransportSettings, settings.getJSONWebKeysSettings(), clientContext); - this.listNodePoolsCallable = - callableFactory.createUnaryCallable( - listNodePoolsTransportSettings, settings.listNodePoolsSettings(), clientContext); - this.getNodePoolCallable = - callableFactory.createUnaryCallable( - getNodePoolTransportSettings, settings.getNodePoolSettings(), clientContext); - this.createNodePoolCallable = - callableFactory.createUnaryCallable( - createNodePoolTransportSettings, settings.createNodePoolSettings(), clientContext); - this.deleteNodePoolCallable = - callableFactory.createUnaryCallable( - deleteNodePoolTransportSettings, settings.deleteNodePoolSettings(), clientContext); - this.rollbackNodePoolUpgradeCallable = - callableFactory.createUnaryCallable( - rollbackNodePoolUpgradeTransportSettings, - settings.rollbackNodePoolUpgradeSettings(), - clientContext); - this.setNodePoolManagementCallable = - callableFactory.createUnaryCallable( - setNodePoolManagementTransportSettings, - settings.setNodePoolManagementSettings(), - clientContext); - this.setLabelsCallable = - callableFactory.createUnaryCallable( - setLabelsTransportSettings, settings.setLabelsSettings(), clientContext); - this.setLegacyAbacCallable = - callableFactory.createUnaryCallable( - setLegacyAbacTransportSettings, settings.setLegacyAbacSettings(), clientContext); - this.startIPRotationCallable = - callableFactory.createUnaryCallable( - startIPRotationTransportSettings, settings.startIPRotationSettings(), clientContext); - this.completeIPRotationCallable = - callableFactory.createUnaryCallable( - completeIPRotationTransportSettings, - settings.completeIPRotationSettings(), - clientContext); - this.setNodePoolSizeCallable = - callableFactory.createUnaryCallable( - setNodePoolSizeTransportSettings, settings.setNodePoolSizeSettings(), clientContext); - this.setNetworkPolicyCallable = - callableFactory.createUnaryCallable( - setNetworkPolicyTransportSettings, settings.setNetworkPolicySettings(), clientContext); - this.setMaintenancePolicyCallable = - callableFactory.createUnaryCallable( - setMaintenancePolicyTransportSettings, - settings.setMaintenancePolicySettings(), - clientContext); - this.listUsableSubnetworksCallable = - callableFactory.createUnaryCallable( - listUsableSubnetworksTransportSettings, - settings.listUsableSubnetworksSettings(), - clientContext); - this.listUsableSubnetworksPagedCallable = - callableFactory.createPagedCallable( - listUsableSubnetworksTransportSettings, - settings.listUsableSubnetworksSettings(), - clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - public UnaryCallable listClustersCallable() { - return listClustersCallable; - } - - public UnaryCallable getClusterCallable() { - return getClusterCallable; - } - - public UnaryCallable createClusterCallable() { - return createClusterCallable; - } - - public UnaryCallable updateClusterCallable() { - return updateClusterCallable; - } - - public UnaryCallable updateNodePoolCallable() { - return updateNodePoolCallable; - } - - public UnaryCallable setNodePoolAutoscalingCallable() { - return setNodePoolAutoscalingCallable; - } - - public UnaryCallable setLoggingServiceCallable() { - return setLoggingServiceCallable; - } - - public UnaryCallable setMonitoringServiceCallable() { - return setMonitoringServiceCallable; - } - - public UnaryCallable setAddonsConfigCallable() { - return setAddonsConfigCallable; - } - - public UnaryCallable setLocationsCallable() { - return setLocationsCallable; - } - - public UnaryCallable updateMasterCallable() { - return updateMasterCallable; - } - - public UnaryCallable setMasterAuthCallable() { - return setMasterAuthCallable; - } - - public UnaryCallable deleteClusterCallable() { - return deleteClusterCallable; - } - - public UnaryCallable listOperationsCallable() { - return listOperationsCallable; - } - - public UnaryCallable getOperationCallable() { - return getOperationCallable; - } - - public UnaryCallable cancelOperationCallable() { - return cancelOperationCallable; - } - - public UnaryCallable getServerConfigCallable() { - return getServerConfigCallable; - } - - public UnaryCallable getJSONWebKeysCallable() { - return getJSONWebKeysCallable; - } - - public UnaryCallable listNodePoolsCallable() { - return listNodePoolsCallable; - } - - public UnaryCallable getNodePoolCallable() { - return getNodePoolCallable; - } - - public UnaryCallable createNodePoolCallable() { - return createNodePoolCallable; - } - - public UnaryCallable deleteNodePoolCallable() { - return deleteNodePoolCallable; - } - - public UnaryCallable - rollbackNodePoolUpgradeCallable() { - return rollbackNodePoolUpgradeCallable; - } - - public UnaryCallable setNodePoolManagementCallable() { - return setNodePoolManagementCallable; - } - - public UnaryCallable setLabelsCallable() { - return setLabelsCallable; - } - - public UnaryCallable setLegacyAbacCallable() { - return setLegacyAbacCallable; - } - - public UnaryCallable startIPRotationCallable() { - return startIPRotationCallable; - } - - public UnaryCallable completeIPRotationCallable() { - return completeIPRotationCallable; - } - - public UnaryCallable setNodePoolSizeCallable() { - return setNodePoolSizeCallable; - } - - public UnaryCallable setNetworkPolicyCallable() { - return setNetworkPolicyCallable; - } - - public UnaryCallable setMaintenancePolicyCallable() { - return setMaintenancePolicyCallable; - } - - public UnaryCallable - listUsableSubnetworksCallable() { - return listUsableSubnetworksCallable; - } - - public UnaryCallable - listUsableSubnetworksPagedCallable() { - return listUsableSubnetworksPagedCallable; - } - - @Override - public final void close() { - shutdown(); - } - - @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-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java b/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java deleted file mode 100644 index 4d464b4f..00000000 --- a/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java +++ /dev/null @@ -1,3184 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.container.v1; - -import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; - -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.container.v1.AddonsConfig; -import com.google.container.v1.AuthenticatorGroupsConfig; -import com.google.container.v1.BinaryAuthorization; -import com.google.container.v1.CancelOperationRequest; -import com.google.container.v1.Cluster; -import com.google.container.v1.ClusterAutoscaling; -import com.google.container.v1.ClusterUpdate; -import com.google.container.v1.CompleteIPRotationRequest; -import com.google.container.v1.CreateClusterRequest; -import com.google.container.v1.CreateNodePoolRequest; -import com.google.container.v1.DatabaseEncryption; -import com.google.container.v1.DeleteClusterRequest; -import com.google.container.v1.DeleteNodePoolRequest; -import com.google.container.v1.GetClusterRequest; -import com.google.container.v1.GetJSONWebKeysRequest; -import com.google.container.v1.GetJSONWebKeysResponse; -import com.google.container.v1.GetNodePoolRequest; -import com.google.container.v1.GetOperationRequest; -import com.google.container.v1.GetServerConfigRequest; -import com.google.container.v1.IPAllocationPolicy; -import com.google.container.v1.Jwk; -import com.google.container.v1.LegacyAbac; -import com.google.container.v1.ListClustersRequest; -import com.google.container.v1.ListClustersResponse; -import com.google.container.v1.ListNodePoolsRequest; -import com.google.container.v1.ListNodePoolsResponse; -import com.google.container.v1.ListOperationsRequest; -import com.google.container.v1.ListOperationsResponse; -import com.google.container.v1.ListUsableSubnetworksRequest; -import com.google.container.v1.ListUsableSubnetworksResponse; -import com.google.container.v1.MaintenancePolicy; -import com.google.container.v1.MasterAuth; -import com.google.container.v1.MasterAuthorizedNetworksConfig; -import com.google.container.v1.MaxPodsConstraint; -import com.google.container.v1.NetworkConfig; -import com.google.container.v1.NetworkPolicy; -import com.google.container.v1.NodeConfig; -import com.google.container.v1.NodeManagement; -import com.google.container.v1.NodePool; -import com.google.container.v1.NodePoolAutoscaling; -import com.google.container.v1.Operation; -import com.google.container.v1.OperationProgress; -import com.google.container.v1.PrivateClusterConfig; -import com.google.container.v1.ReleaseChannel; -import com.google.container.v1.ResourceUsageExportConfig; -import com.google.container.v1.RollbackNodePoolUpgradeRequest; -import com.google.container.v1.ServerConfig; -import com.google.container.v1.SetAddonsConfigRequest; -import com.google.container.v1.SetLabelsRequest; -import com.google.container.v1.SetLegacyAbacRequest; -import com.google.container.v1.SetLocationsRequest; -import com.google.container.v1.SetLoggingServiceRequest; -import com.google.container.v1.SetMaintenancePolicyRequest; -import com.google.container.v1.SetMasterAuthRequest; -import com.google.container.v1.SetMonitoringServiceRequest; -import com.google.container.v1.SetNetworkPolicyRequest; -import com.google.container.v1.SetNodePoolAutoscalingRequest; -import com.google.container.v1.SetNodePoolManagementRequest; -import com.google.container.v1.SetNodePoolSizeRequest; -import com.google.container.v1.ShieldedNodes; -import com.google.container.v1.StartIPRotationRequest; -import com.google.container.v1.StatusCondition; -import com.google.container.v1.UpdateClusterRequest; -import com.google.container.v1.UpdateMasterRequest; -import com.google.container.v1.UpdateNodePoolRequest; -import com.google.container.v1.UsableSubnetwork; -import com.google.container.v1.VerticalPodAutoscaling; -import com.google.container.v1.WorkloadIdentityConfig; -import com.google.container.v1.WorkloadMetadataConfig; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class ClusterManagerClientTest { - private static MockServiceHelper mockServiceHelper; - private ClusterManagerClient client; - private static MockClusterManager mockClusterManager; - private LocalChannelProvider channelProvider; - - @BeforeClass - public static void startStaticServer() { - mockClusterManager = new MockClusterManager(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockClusterManager)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - ClusterManagerSettings settings = - ClusterManagerSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = ClusterManagerClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void listClustersTest() throws Exception { - ListClustersResponse expectedResponse = - ListClustersResponse.newBuilder() - .addAllClusters(new ArrayList()) - .addAllMissingZones(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListClustersResponse actualResponse = client.listClusters(parent); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListClustersRequest actualRequest = ((ListClustersRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listClustersExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String parent = "parent-995424086"; - client.listClusters(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listClustersTest2() throws Exception { - ListClustersResponse expectedResponse = - ListClustersResponse.newBuilder() - .addAllClusters(new ArrayList()) - .addAllMissingZones(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - - ListClustersResponse actualResponse = client.listClusters(projectId, zone); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListClustersRequest actualRequest = ((ListClustersRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listClustersExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - client.listClusters(projectId, zone); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getClusterTest() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setName("name3373707") - .setDescription("description-1724546052") - .setInitialNodeCount(1682564205) - .setNodeConfig(NodeConfig.newBuilder().build()) - .setMasterAuth(MasterAuth.newBuilder().build()) - .setLoggingService("loggingService1098570326") - .setMonitoringService("monitoringService-1431578291") - .setNetwork("network1843485230") - .setClusterIpv4Cidr("clusterIpv4Cidr-277423341") - .setAddonsConfig(AddonsConfig.newBuilder().build()) - .setSubnetwork("subnetwork-1302785042") - .addAllNodePools(new ArrayList()) - .addAllLocations(new ArrayList()) - .setEnableKubernetesAlpha(true) - .putAllResourceLabels(new HashMap()) - .setLabelFingerprint("labelFingerprint379449680") - .setLegacyAbac(LegacyAbac.newBuilder().build()) - .setNetworkPolicy(NetworkPolicy.newBuilder().build()) - .setIpAllocationPolicy(IPAllocationPolicy.newBuilder().build()) - .setMasterAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig.newBuilder().build()) - .setMaintenancePolicy(MaintenancePolicy.newBuilder().build()) - .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) - .setAutoscaling(ClusterAutoscaling.newBuilder().build()) - .setNetworkConfig(NetworkConfig.newBuilder().build()) - .setDefaultMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) - .setResourceUsageExportConfig(ResourceUsageExportConfig.newBuilder().build()) - .setAuthenticatorGroupsConfig(AuthenticatorGroupsConfig.newBuilder().build()) - .setPrivateClusterConfig(PrivateClusterConfig.newBuilder().build()) - .setDatabaseEncryption(DatabaseEncryption.newBuilder().build()) - .setVerticalPodAutoscaling(VerticalPodAutoscaling.newBuilder().build()) - .setShieldedNodes(ShieldedNodes.newBuilder().build()) - .setReleaseChannel(ReleaseChannel.newBuilder().build()) - .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) - .setSelfLink("selfLink1191800166") - .setZone("zone3744684") - .setEndpoint("endpoint1741102485") - .setInitialClusterVersion("initialClusterVersion-1547734558") - .setCurrentMasterVersion("currentMasterVersion1871927069") - .setCurrentNodeVersion("currentNodeVersion373921085") - .setCreateTime("createTime1369213417") - .setStatusMessage("statusMessage-958704715") - .setNodeIpv4CidrSize(1181176815) - .setServicesIpv4Cidr("servicesIpv4Cidr-1785842313") - .addAllInstanceGroupUrls(new ArrayList()) - .setCurrentNodeCount(178977560) - .setExpireTime("expireTime-834724724") - .setLocation("location1901043637") - .setEnableTpu(true) - .setTpuIpv4CidrBlock("tpuIpv4CidrBlock997172251") - .addAllConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String name = "name3373707"; - - Cluster actualResponse = client.getCluster(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetClusterRequest actualRequest = ((GetClusterRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String name = "name3373707"; - client.getCluster(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getClusterTest2() throws Exception { - Cluster expectedResponse = - Cluster.newBuilder() - .setName("name3373707") - .setDescription("description-1724546052") - .setInitialNodeCount(1682564205) - .setNodeConfig(NodeConfig.newBuilder().build()) - .setMasterAuth(MasterAuth.newBuilder().build()) - .setLoggingService("loggingService1098570326") - .setMonitoringService("monitoringService-1431578291") - .setNetwork("network1843485230") - .setClusterIpv4Cidr("clusterIpv4Cidr-277423341") - .setAddonsConfig(AddonsConfig.newBuilder().build()) - .setSubnetwork("subnetwork-1302785042") - .addAllNodePools(new ArrayList()) - .addAllLocations(new ArrayList()) - .setEnableKubernetesAlpha(true) - .putAllResourceLabels(new HashMap()) - .setLabelFingerprint("labelFingerprint379449680") - .setLegacyAbac(LegacyAbac.newBuilder().build()) - .setNetworkPolicy(NetworkPolicy.newBuilder().build()) - .setIpAllocationPolicy(IPAllocationPolicy.newBuilder().build()) - .setMasterAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig.newBuilder().build()) - .setMaintenancePolicy(MaintenancePolicy.newBuilder().build()) - .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) - .setAutoscaling(ClusterAutoscaling.newBuilder().build()) - .setNetworkConfig(NetworkConfig.newBuilder().build()) - .setDefaultMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) - .setResourceUsageExportConfig(ResourceUsageExportConfig.newBuilder().build()) - .setAuthenticatorGroupsConfig(AuthenticatorGroupsConfig.newBuilder().build()) - .setPrivateClusterConfig(PrivateClusterConfig.newBuilder().build()) - .setDatabaseEncryption(DatabaseEncryption.newBuilder().build()) - .setVerticalPodAutoscaling(VerticalPodAutoscaling.newBuilder().build()) - .setShieldedNodes(ShieldedNodes.newBuilder().build()) - .setReleaseChannel(ReleaseChannel.newBuilder().build()) - .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) - .setSelfLink("selfLink1191800166") - .setZone("zone3744684") - .setEndpoint("endpoint1741102485") - .setInitialClusterVersion("initialClusterVersion-1547734558") - .setCurrentMasterVersion("currentMasterVersion1871927069") - .setCurrentNodeVersion("currentNodeVersion373921085") - .setCreateTime("createTime1369213417") - .setStatusMessage("statusMessage-958704715") - .setNodeIpv4CidrSize(1181176815) - .setServicesIpv4Cidr("servicesIpv4Cidr-1785842313") - .addAllInstanceGroupUrls(new ArrayList()) - .setCurrentNodeCount(178977560) - .setExpireTime("expireTime-834724724") - .setLocation("location1901043637") - .setEnableTpu(true) - .setTpuIpv4CidrBlock("tpuIpv4CidrBlock997172251") - .addAllConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - - Cluster actualResponse = client.getCluster(projectId, zone, clusterId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetClusterRequest actualRequest = ((GetClusterRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getClusterExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - client.getCluster(projectId, zone, clusterId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createClusterTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Cluster cluster = Cluster.newBuilder().build(); - - Operation actualResponse = client.createCluster(parent, cluster); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateClusterRequest actualRequest = ((CreateClusterRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - 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); - mockClusterManager.addException(exception); - - try { - String parent = "parent-995424086"; - Cluster cluster = Cluster.newBuilder().build(); - client.createCluster(parent, cluster); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createClusterTest2() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - Cluster cluster = Cluster.newBuilder().build(); - - Operation actualResponse = client.createCluster(projectId, zone, cluster); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateClusterRequest actualRequest = ((CreateClusterRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(cluster, actualRequest.getCluster()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createClusterExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - Cluster cluster = Cluster.newBuilder().build(); - client.createCluster(projectId, zone, cluster); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateClusterTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String name = "name3373707"; - ClusterUpdate update = ClusterUpdate.newBuilder().build(); - - Operation actualResponse = client.updateCluster(name, update); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateClusterRequest actualRequest = ((UpdateClusterRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(update, actualRequest.getUpdate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String name = "name3373707"; - ClusterUpdate update = ClusterUpdate.newBuilder().build(); - client.updateCluster(name, update); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateClusterTest2() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - ClusterUpdate update = ClusterUpdate.newBuilder().build(); - - Operation actualResponse = client.updateCluster(projectId, zone, clusterId, update); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateClusterRequest actualRequest = ((UpdateClusterRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(update, actualRequest.getUpdate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateClusterExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - ClusterUpdate update = ClusterUpdate.newBuilder().build(); - client.updateCluster(projectId, zone, clusterId, update); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateNodePoolTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - UpdateNodePoolRequest request = - UpdateNodePoolRequest.newBuilder() - .setProjectId("projectId-894832108") - .setZone("zone3744684") - .setClusterId("clusterId561939637") - .setNodePoolId("nodePoolId1121557241") - .setNodeVersion("nodeVersion1155309686") - .setImageType("imageType-878147787") - .setName("name3373707") - .addAllLocations(new ArrayList()) - .setWorkloadMetadataConfig(WorkloadMetadataConfig.newBuilder().build()) - .setUpgradeSettings(NodePool.UpgradeSettings.newBuilder().build()) - .build(); - - Operation actualResponse = client.updateNodePool(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateNodePoolRequest actualRequest = ((UpdateNodePoolRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); - Assert.assertEquals(request.getZone(), actualRequest.getZone()); - Assert.assertEquals(request.getClusterId(), actualRequest.getClusterId()); - Assert.assertEquals(request.getNodePoolId(), actualRequest.getNodePoolId()); - Assert.assertEquals(request.getNodeVersion(), actualRequest.getNodeVersion()); - Assert.assertEquals(request.getImageType(), actualRequest.getImageType()); - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getLocationsList(), actualRequest.getLocationsList()); - Assert.assertEquals( - request.getWorkloadMetadataConfig(), actualRequest.getWorkloadMetadataConfig()); - Assert.assertEquals(request.getUpgradeSettings(), actualRequest.getUpgradeSettings()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateNodePoolExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - UpdateNodePoolRequest request = - UpdateNodePoolRequest.newBuilder() - .setProjectId("projectId-894832108") - .setZone("zone3744684") - .setClusterId("clusterId561939637") - .setNodePoolId("nodePoolId1121557241") - .setNodeVersion("nodeVersion1155309686") - .setImageType("imageType-878147787") - .setName("name3373707") - .addAllLocations(new ArrayList()) - .setWorkloadMetadataConfig(WorkloadMetadataConfig.newBuilder().build()) - .setUpgradeSettings(NodePool.UpgradeSettings.newBuilder().build()) - .build(); - client.updateNodePool(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setNodePoolAutoscalingTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - SetNodePoolAutoscalingRequest request = - SetNodePoolAutoscalingRequest.newBuilder() - .setProjectId("projectId-894832108") - .setZone("zone3744684") - .setClusterId("clusterId561939637") - .setNodePoolId("nodePoolId1121557241") - .setAutoscaling(NodePoolAutoscaling.newBuilder().build()) - .setName("name3373707") - .build(); - - Operation actualResponse = client.setNodePoolAutoscaling(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetNodePoolAutoscalingRequest actualRequest = - ((SetNodePoolAutoscalingRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); - Assert.assertEquals(request.getZone(), actualRequest.getZone()); - Assert.assertEquals(request.getClusterId(), actualRequest.getClusterId()); - Assert.assertEquals(request.getNodePoolId(), actualRequest.getNodePoolId()); - Assert.assertEquals(request.getAutoscaling(), actualRequest.getAutoscaling()); - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setNodePoolAutoscalingExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - SetNodePoolAutoscalingRequest request = - SetNodePoolAutoscalingRequest.newBuilder() - .setProjectId("projectId-894832108") - .setZone("zone3744684") - .setClusterId("clusterId561939637") - .setNodePoolId("nodePoolId1121557241") - .setAutoscaling(NodePoolAutoscaling.newBuilder().build()) - .setName("name3373707") - .build(); - client.setNodePoolAutoscaling(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setLoggingServiceTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String name = "name3373707"; - String loggingService = "loggingService1098570326"; - - Operation actualResponse = client.setLoggingService(name, loggingService); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetLoggingServiceRequest actualRequest = ((SetLoggingServiceRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(loggingService, actualRequest.getLoggingService()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setLoggingServiceExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String name = "name3373707"; - String loggingService = "loggingService1098570326"; - client.setLoggingService(name, loggingService); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setLoggingServiceTest2() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - String loggingService = "loggingService1098570326"; - - Operation actualResponse = client.setLoggingService(projectId, zone, clusterId, loggingService); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetLoggingServiceRequest actualRequest = ((SetLoggingServiceRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(loggingService, actualRequest.getLoggingService()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setLoggingServiceExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - String loggingService = "loggingService1098570326"; - client.setLoggingService(projectId, zone, clusterId, loggingService); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setMonitoringServiceTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String name = "name3373707"; - String monitoringService = "monitoringService-1431578291"; - - Operation actualResponse = client.setMonitoringService(name, monitoringService); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetMonitoringServiceRequest actualRequest = - ((SetMonitoringServiceRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(monitoringService, actualRequest.getMonitoringService()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setMonitoringServiceExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String name = "name3373707"; - String monitoringService = "monitoringService-1431578291"; - client.setMonitoringService(name, monitoringService); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setMonitoringServiceTest2() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - String monitoringService = "monitoringService-1431578291"; - - Operation actualResponse = - client.setMonitoringService(projectId, zone, clusterId, monitoringService); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetMonitoringServiceRequest actualRequest = - ((SetMonitoringServiceRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(monitoringService, actualRequest.getMonitoringService()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setMonitoringServiceExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - String monitoringService = "monitoringService-1431578291"; - client.setMonitoringService(projectId, zone, clusterId, monitoringService); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setAddonsConfigTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String name = "name3373707"; - AddonsConfig addonsConfig = AddonsConfig.newBuilder().build(); - - Operation actualResponse = client.setAddonsConfig(name, addonsConfig); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetAddonsConfigRequest actualRequest = ((SetAddonsConfigRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(addonsConfig, actualRequest.getAddonsConfig()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setAddonsConfigExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String name = "name3373707"; - AddonsConfig addonsConfig = AddonsConfig.newBuilder().build(); - client.setAddonsConfig(name, addonsConfig); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setAddonsConfigTest2() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - AddonsConfig addonsConfig = AddonsConfig.newBuilder().build(); - - Operation actualResponse = client.setAddonsConfig(projectId, zone, clusterId, addonsConfig); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetAddonsConfigRequest actualRequest = ((SetAddonsConfigRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(addonsConfig, actualRequest.getAddonsConfig()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setAddonsConfigExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - AddonsConfig addonsConfig = AddonsConfig.newBuilder().build(); - client.setAddonsConfig(projectId, zone, clusterId, addonsConfig); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setLocationsTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String name = "name3373707"; - List locations = new ArrayList<>(); - - Operation actualResponse = client.setLocations(name, locations); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetLocationsRequest actualRequest = ((SetLocationsRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(locations, actualRequest.getLocationsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setLocationsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String name = "name3373707"; - List locations = new ArrayList<>(); - client.setLocations(name, locations); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setLocationsTest2() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - List locations = new ArrayList<>(); - - Operation actualResponse = client.setLocations(projectId, zone, clusterId, locations); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetLocationsRequest actualRequest = ((SetLocationsRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(locations, actualRequest.getLocationsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setLocationsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - List locations = new ArrayList<>(); - client.setLocations(projectId, zone, clusterId, locations); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateMasterTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String name = "name3373707"; - String masterVersion = "masterVersion1167095830"; - - Operation actualResponse = client.updateMaster(name, masterVersion); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateMasterRequest actualRequest = ((UpdateMasterRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(masterVersion, actualRequest.getMasterVersion()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateMasterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String name = "name3373707"; - String masterVersion = "masterVersion1167095830"; - client.updateMaster(name, masterVersion); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateMasterTest2() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - String masterVersion = "masterVersion1167095830"; - - Operation actualResponse = client.updateMaster(projectId, zone, clusterId, masterVersion); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateMasterRequest actualRequest = ((UpdateMasterRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(masterVersion, actualRequest.getMasterVersion()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateMasterExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - String masterVersion = "masterVersion1167095830"; - client.updateMaster(projectId, zone, clusterId, masterVersion); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setMasterAuthTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - SetMasterAuthRequest request = - SetMasterAuthRequest.newBuilder() - .setProjectId("projectId-894832108") - .setZone("zone3744684") - .setClusterId("clusterId561939637") - .setUpdate(MasterAuth.newBuilder().build()) - .setName("name3373707") - .build(); - - Operation actualResponse = client.setMasterAuth(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetMasterAuthRequest actualRequest = ((SetMasterAuthRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); - Assert.assertEquals(request.getZone(), actualRequest.getZone()); - Assert.assertEquals(request.getClusterId(), actualRequest.getClusterId()); - Assert.assertEquals(request.getAction(), actualRequest.getAction()); - Assert.assertEquals(request.getUpdate(), actualRequest.getUpdate()); - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setMasterAuthExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - SetMasterAuthRequest request = - SetMasterAuthRequest.newBuilder() - .setProjectId("projectId-894832108") - .setZone("zone3744684") - .setClusterId("clusterId561939637") - .setUpdate(MasterAuth.newBuilder().build()) - .setName("name3373707") - .build(); - client.setMasterAuth(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteClusterTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String name = "name3373707"; - - Operation actualResponse = client.deleteCluster(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteClusterRequest actualRequest = ((DeleteClusterRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteClusterExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String name = "name3373707"; - client.deleteCluster(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteClusterTest2() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - - Operation actualResponse = client.deleteCluster(projectId, zone, clusterId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteClusterRequest actualRequest = ((DeleteClusterRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteClusterExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - client.deleteCluster(projectId, zone, clusterId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listOperationsTest() throws Exception { - ListOperationsResponse expectedResponse = - ListOperationsResponse.newBuilder() - .addAllOperations(new ArrayList()) - .addAllMissingZones(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - - ListOperationsResponse actualResponse = client.listOperations(projectId, zone); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListOperationsRequest actualRequest = ((ListOperationsRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listOperationsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - client.listOperations(projectId, zone); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getOperationTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String name = "name3373707"; - - Operation actualResponse = client.getOperation(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetOperationRequest actualRequest = ((GetOperationRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getOperationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String name = "name3373707"; - client.getOperation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getOperationTest2() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String operationId = "operationId129704162"; - - Operation actualResponse = client.getOperation(projectId, zone, operationId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetOperationRequest actualRequest = ((GetOperationRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(operationId, actualRequest.getOperationId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getOperationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String operationId = "operationId129704162"; - client.getOperation(projectId, zone, operationId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void cancelOperationTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockClusterManager.addResponse(expectedResponse); - - String name = "name3373707"; - - client.cancelOperation(name); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CancelOperationRequest actualRequest = ((CancelOperationRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void cancelOperationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String name = "name3373707"; - client.cancelOperation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void cancelOperationTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String operationId = "operationId129704162"; - - client.cancelOperation(projectId, zone, operationId); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CancelOperationRequest actualRequest = ((CancelOperationRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(operationId, actualRequest.getOperationId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void cancelOperationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String operationId = "operationId129704162"; - client.cancelOperation(projectId, zone, operationId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getServerConfigTest() throws Exception { - ServerConfig expectedResponse = - ServerConfig.newBuilder() - .setDefaultClusterVersion("defaultClusterVersion-2007666145") - .addAllValidNodeVersions(new ArrayList()) - .setDefaultImageType("defaultImageType933054964") - .addAllValidImageTypes(new ArrayList()) - .addAllValidMasterVersions(new ArrayList()) - .addAllChannels(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String name = "name3373707"; - - ServerConfig actualResponse = client.getServerConfig(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetServerConfigRequest actualRequest = ((GetServerConfigRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getServerConfigExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String name = "name3373707"; - client.getServerConfig(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getServerConfigTest2() throws Exception { - ServerConfig expectedResponse = - ServerConfig.newBuilder() - .setDefaultClusterVersion("defaultClusterVersion-2007666145") - .addAllValidNodeVersions(new ArrayList()) - .setDefaultImageType("defaultImageType933054964") - .addAllValidImageTypes(new ArrayList()) - .addAllValidMasterVersions(new ArrayList()) - .addAllChannels(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - - ServerConfig actualResponse = client.getServerConfig(projectId, zone); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetServerConfigRequest actualRequest = ((GetServerConfigRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getServerConfigExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - client.getServerConfig(projectId, zone); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getJSONWebKeysTest() throws Exception { - GetJSONWebKeysResponse expectedResponse = - GetJSONWebKeysResponse.newBuilder().addAllKeys(new ArrayList()).build(); - mockClusterManager.addResponse(expectedResponse); - - GetJSONWebKeysRequest request = - GetJSONWebKeysRequest.newBuilder().setParent("parent-995424086").build(); - - GetJSONWebKeysResponse actualResponse = client.getJSONWebKeys(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetJSONWebKeysRequest actualRequest = ((GetJSONWebKeysRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getJSONWebKeysExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - GetJSONWebKeysRequest request = - GetJSONWebKeysRequest.newBuilder().setParent("parent-995424086").build(); - client.getJSONWebKeys(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listNodePoolsTest() throws Exception { - ListNodePoolsResponse expectedResponse = - ListNodePoolsResponse.newBuilder().addAllNodePools(new ArrayList()).build(); - mockClusterManager.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListNodePoolsResponse actualResponse = client.listNodePools(parent); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListNodePoolsRequest actualRequest = ((ListNodePoolsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listNodePoolsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String parent = "parent-995424086"; - client.listNodePools(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listNodePoolsTest2() throws Exception { - ListNodePoolsResponse expectedResponse = - ListNodePoolsResponse.newBuilder().addAllNodePools(new ArrayList()).build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - - ListNodePoolsResponse actualResponse = client.listNodePools(projectId, zone, clusterId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListNodePoolsRequest actualRequest = ((ListNodePoolsRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listNodePoolsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - client.listNodePools(projectId, zone, clusterId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getNodePoolTest() throws Exception { - NodePool expectedResponse = - NodePool.newBuilder() - .setName("name3373707") - .setConfig(NodeConfig.newBuilder().build()) - .setInitialNodeCount(1682564205) - .addAllLocations(new ArrayList()) - .setSelfLink("selfLink1191800166") - .setVersion("version351608024") - .addAllInstanceGroupUrls(new ArrayList()) - .setStatusMessage("statusMessage-958704715") - .setAutoscaling(NodePoolAutoscaling.newBuilder().build()) - .setManagement(NodeManagement.newBuilder().build()) - .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) - .addAllConditions(new ArrayList()) - .setPodIpv4CidrSize(1098768716) - .setUpgradeSettings(NodePool.UpgradeSettings.newBuilder().build()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String name = "name3373707"; - - NodePool actualResponse = client.getNodePool(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetNodePoolRequest actualRequest = ((GetNodePoolRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getNodePoolExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String name = "name3373707"; - client.getNodePool(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getNodePoolTest2() throws Exception { - NodePool expectedResponse = - NodePool.newBuilder() - .setName("name3373707") - .setConfig(NodeConfig.newBuilder().build()) - .setInitialNodeCount(1682564205) - .addAllLocations(new ArrayList()) - .setSelfLink("selfLink1191800166") - .setVersion("version351608024") - .addAllInstanceGroupUrls(new ArrayList()) - .setStatusMessage("statusMessage-958704715") - .setAutoscaling(NodePoolAutoscaling.newBuilder().build()) - .setManagement(NodeManagement.newBuilder().build()) - .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) - .addAllConditions(new ArrayList()) - .setPodIpv4CidrSize(1098768716) - .setUpgradeSettings(NodePool.UpgradeSettings.newBuilder().build()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - String nodePoolId = "nodePoolId1121557241"; - - NodePool actualResponse = client.getNodePool(projectId, zone, clusterId, nodePoolId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetNodePoolRequest actualRequest = ((GetNodePoolRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(nodePoolId, actualRequest.getNodePoolId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getNodePoolExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - String nodePoolId = "nodePoolId1121557241"; - client.getNodePool(projectId, zone, clusterId, nodePoolId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createNodePoolTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String parent = "parent-995424086"; - NodePool nodePool = NodePool.newBuilder().build(); - - Operation actualResponse = client.createNodePool(parent, nodePool); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateNodePoolRequest actualRequest = ((CreateNodePoolRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(nodePool, actualRequest.getNodePool()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createNodePoolExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String parent = "parent-995424086"; - NodePool nodePool = NodePool.newBuilder().build(); - client.createNodePool(parent, nodePool); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createNodePoolTest2() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - NodePool nodePool = NodePool.newBuilder().build(); - - Operation actualResponse = client.createNodePool(projectId, zone, clusterId, nodePool); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateNodePoolRequest actualRequest = ((CreateNodePoolRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(nodePool, actualRequest.getNodePool()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createNodePoolExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - NodePool nodePool = NodePool.newBuilder().build(); - client.createNodePool(projectId, zone, clusterId, nodePool); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteNodePoolTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String name = "name3373707"; - - Operation actualResponse = client.deleteNodePool(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteNodePoolRequest actualRequest = ((DeleteNodePoolRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteNodePoolExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String name = "name3373707"; - client.deleteNodePool(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteNodePoolTest2() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - String nodePoolId = "nodePoolId1121557241"; - - Operation actualResponse = client.deleteNodePool(projectId, zone, clusterId, nodePoolId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteNodePoolRequest actualRequest = ((DeleteNodePoolRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(nodePoolId, actualRequest.getNodePoolId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteNodePoolExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - String nodePoolId = "nodePoolId1121557241"; - client.deleteNodePool(projectId, zone, clusterId, nodePoolId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void rollbackNodePoolUpgradeTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String name = "name3373707"; - - Operation actualResponse = client.rollbackNodePoolUpgrade(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RollbackNodePoolUpgradeRequest actualRequest = - ((RollbackNodePoolUpgradeRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void rollbackNodePoolUpgradeExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String name = "name3373707"; - client.rollbackNodePoolUpgrade(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void rollbackNodePoolUpgradeTest2() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - String nodePoolId = "nodePoolId1121557241"; - - Operation actualResponse = - client.rollbackNodePoolUpgrade(projectId, zone, clusterId, nodePoolId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RollbackNodePoolUpgradeRequest actualRequest = - ((RollbackNodePoolUpgradeRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(nodePoolId, actualRequest.getNodePoolId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void rollbackNodePoolUpgradeExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - String nodePoolId = "nodePoolId1121557241"; - client.rollbackNodePoolUpgrade(projectId, zone, clusterId, nodePoolId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setNodePoolManagementTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - SetNodePoolManagementRequest request = - SetNodePoolManagementRequest.newBuilder() - .setProjectId("projectId-894832108") - .setZone("zone3744684") - .setClusterId("clusterId561939637") - .setNodePoolId("nodePoolId1121557241") - .setManagement(NodeManagement.newBuilder().build()) - .setName("name3373707") - .build(); - - Operation actualResponse = client.setNodePoolManagement(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetNodePoolManagementRequest actualRequest = - ((SetNodePoolManagementRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); - Assert.assertEquals(request.getZone(), actualRequest.getZone()); - Assert.assertEquals(request.getClusterId(), actualRequest.getClusterId()); - Assert.assertEquals(request.getNodePoolId(), actualRequest.getNodePoolId()); - Assert.assertEquals(request.getManagement(), actualRequest.getManagement()); - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setNodePoolManagementExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - SetNodePoolManagementRequest request = - SetNodePoolManagementRequest.newBuilder() - .setProjectId("projectId-894832108") - .setZone("zone3744684") - .setClusterId("clusterId561939637") - .setNodePoolId("nodePoolId1121557241") - .setManagement(NodeManagement.newBuilder().build()) - .setName("name3373707") - .build(); - client.setNodePoolManagement(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setLabelsTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - SetLabelsRequest request = - SetLabelsRequest.newBuilder() - .setProjectId("projectId-894832108") - .setZone("zone3744684") - .setClusterId("clusterId561939637") - .putAllResourceLabels(new HashMap()) - .setLabelFingerprint("labelFingerprint379449680") - .setName("name3373707") - .build(); - - Operation actualResponse = client.setLabels(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetLabelsRequest actualRequest = ((SetLabelsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); - Assert.assertEquals(request.getZone(), actualRequest.getZone()); - Assert.assertEquals(request.getClusterId(), actualRequest.getClusterId()); - Assert.assertEquals(request.getResourceLabelsMap(), actualRequest.getResourceLabelsMap()); - Assert.assertEquals(request.getLabelFingerprint(), actualRequest.getLabelFingerprint()); - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setLabelsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - SetLabelsRequest request = - SetLabelsRequest.newBuilder() - .setProjectId("projectId-894832108") - .setZone("zone3744684") - .setClusterId("clusterId561939637") - .putAllResourceLabels(new HashMap()) - .setLabelFingerprint("labelFingerprint379449680") - .setName("name3373707") - .build(); - client.setLabels(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setLegacyAbacTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String name = "name3373707"; - boolean enabled = true; - - Operation actualResponse = client.setLegacyAbac(name, enabled); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetLegacyAbacRequest actualRequest = ((SetLegacyAbacRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(enabled, actualRequest.getEnabled()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setLegacyAbacExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String name = "name3373707"; - boolean enabled = true; - client.setLegacyAbac(name, enabled); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setLegacyAbacTest2() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - boolean enabled = true; - - Operation actualResponse = client.setLegacyAbac(projectId, zone, clusterId, enabled); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetLegacyAbacRequest actualRequest = ((SetLegacyAbacRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(enabled, actualRequest.getEnabled()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setLegacyAbacExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - boolean enabled = true; - client.setLegacyAbac(projectId, zone, clusterId, enabled); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void startIPRotationTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String name = "name3373707"; - - Operation actualResponse = client.startIPRotation(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - StartIPRotationRequest actualRequest = ((StartIPRotationRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void startIPRotationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String name = "name3373707"; - client.startIPRotation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void startIPRotationTest2() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - - Operation actualResponse = client.startIPRotation(projectId, zone, clusterId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - StartIPRotationRequest actualRequest = ((StartIPRotationRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void startIPRotationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - client.startIPRotation(projectId, zone, clusterId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void completeIPRotationTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String name = "name3373707"; - - Operation actualResponse = client.completeIPRotation(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CompleteIPRotationRequest actualRequest = ((CompleteIPRotationRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void completeIPRotationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String name = "name3373707"; - client.completeIPRotation(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void completeIPRotationTest2() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - - Operation actualResponse = client.completeIPRotation(projectId, zone, clusterId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CompleteIPRotationRequest actualRequest = ((CompleteIPRotationRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void completeIPRotationExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - client.completeIPRotation(projectId, zone, clusterId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setNodePoolSizeTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - SetNodePoolSizeRequest request = - SetNodePoolSizeRequest.newBuilder() - .setProjectId("projectId-894832108") - .setZone("zone3744684") - .setClusterId("clusterId561939637") - .setNodePoolId("nodePoolId1121557241") - .setNodeCount(1539922066) - .setName("name3373707") - .build(); - - Operation actualResponse = client.setNodePoolSize(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetNodePoolSizeRequest actualRequest = ((SetNodePoolSizeRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); - Assert.assertEquals(request.getZone(), actualRequest.getZone()); - Assert.assertEquals(request.getClusterId(), actualRequest.getClusterId()); - Assert.assertEquals(request.getNodePoolId(), actualRequest.getNodePoolId()); - Assert.assertEquals(request.getNodeCount(), actualRequest.getNodeCount()); - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setNodePoolSizeExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - SetNodePoolSizeRequest request = - SetNodePoolSizeRequest.newBuilder() - .setProjectId("projectId-894832108") - .setZone("zone3744684") - .setClusterId("clusterId561939637") - .setNodePoolId("nodePoolId1121557241") - .setNodeCount(1539922066) - .setName("name3373707") - .build(); - client.setNodePoolSize(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setNetworkPolicyTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String name = "name3373707"; - NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); - - Operation actualResponse = client.setNetworkPolicy(name, networkPolicy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetNetworkPolicyRequest actualRequest = ((SetNetworkPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(networkPolicy, actualRequest.getNetworkPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setNetworkPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String name = "name3373707"; - NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); - client.setNetworkPolicy(name, networkPolicy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setNetworkPolicyTest2() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); - - Operation actualResponse = client.setNetworkPolicy(projectId, zone, clusterId, networkPolicy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetNetworkPolicyRequest actualRequest = ((SetNetworkPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(networkPolicy, actualRequest.getNetworkPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setNetworkPolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); - client.setNetworkPolicy(projectId, zone, clusterId, networkPolicy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setMaintenancePolicyTest() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String name = "name3373707"; - MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build(); - - Operation actualResponse = client.setMaintenancePolicy(name, maintenancePolicy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetMaintenancePolicyRequest actualRequest = - ((SetMaintenancePolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(maintenancePolicy, actualRequest.getMaintenancePolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setMaintenancePolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String name = "name3373707"; - MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build(); - client.setMaintenancePolicy(name, maintenancePolicy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setMaintenancePolicyTest2() throws Exception { - Operation expectedResponse = - Operation.newBuilder() - .setName("name3373707") - .setZone("zone3744684") - .setDetail("detail-1335224239") - .setStatusMessage("statusMessage-958704715") - .setSelfLink("selfLink1191800166") - .setTargetLink("targetLink486368555") - .setLocation("location1901043637") - .setStartTime("startTime-2129294769") - .setEndTime("endTime-1607243192") - .setProgress(OperationProgress.newBuilder().build()) - .addAllClusterConditions(new ArrayList()) - .addAllNodepoolConditions(new ArrayList()) - .build(); - mockClusterManager.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build(); - - Operation actualResponse = - client.setMaintenancePolicy(projectId, zone, clusterId, maintenancePolicy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetMaintenancePolicyRequest actualRequest = - ((SetMaintenancePolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(zone, actualRequest.getZone()); - Assert.assertEquals(clusterId, actualRequest.getClusterId()); - Assert.assertEquals(maintenancePolicy, actualRequest.getMaintenancePolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setMaintenancePolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - String projectId = "projectId-894832108"; - String zone = "zone3744684"; - String clusterId = "clusterId561939637"; - MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build(); - client.setMaintenancePolicy(projectId, zone, clusterId, maintenancePolicy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listUsableSubnetworksTest() throws Exception { - UsableSubnetwork responsesElement = UsableSubnetwork.newBuilder().build(); - ListUsableSubnetworksResponse expectedResponse = - ListUsableSubnetworksResponse.newBuilder() - .setNextPageToken("") - .addAllSubnetworks(Arrays.asList(responsesElement)) - .build(); - mockClusterManager.addResponse(expectedResponse); - - ListUsableSubnetworksRequest request = - ListUsableSubnetworksRequest.newBuilder() - .setParent("parent-995424086") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - ListUsableSubnetworksPagedResponse pagedListResponse = client.listUsableSubnetworks(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getSubnetworksList().get(0), resources.get(0)); - - List actualRequests = mockClusterManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListUsableSubnetworksRequest actualRequest = - ((ListUsableSubnetworksRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listUsableSubnetworksExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockClusterManager.addException(exception); - - try { - ListUsableSubnetworksRequest request = - ListUsableSubnetworksRequest.newBuilder() - .setParent("parent-995424086") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listUsableSubnetworks(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManager.java b/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManager.java deleted file mode 100644 index 28c80e51..00000000 --- a/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManager.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.container.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 MockClusterManager implements MockGrpcService { - private final MockClusterManagerImpl serviceImpl; - - public MockClusterManager() { - serviceImpl = new MockClusterManagerImpl(); - } - - @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-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java b/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java deleted file mode 100644 index 5d1dd1f2..00000000 --- a/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.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. - */ - -package com.google.cloud.container.v1; - -import com.google.api.core.BetaApi; -import com.google.container.v1.CancelOperationRequest; -import com.google.container.v1.Cluster; -import com.google.container.v1.ClusterManagerGrpc.ClusterManagerImplBase; -import com.google.container.v1.CompleteIPRotationRequest; -import com.google.container.v1.CreateClusterRequest; -import com.google.container.v1.CreateNodePoolRequest; -import com.google.container.v1.DeleteClusterRequest; -import com.google.container.v1.DeleteNodePoolRequest; -import com.google.container.v1.GetClusterRequest; -import com.google.container.v1.GetJSONWebKeysRequest; -import com.google.container.v1.GetJSONWebKeysResponse; -import com.google.container.v1.GetNodePoolRequest; -import com.google.container.v1.GetOperationRequest; -import com.google.container.v1.GetServerConfigRequest; -import com.google.container.v1.ListClustersRequest; -import com.google.container.v1.ListClustersResponse; -import com.google.container.v1.ListNodePoolsRequest; -import com.google.container.v1.ListNodePoolsResponse; -import com.google.container.v1.ListOperationsRequest; -import com.google.container.v1.ListOperationsResponse; -import com.google.container.v1.ListUsableSubnetworksRequest; -import com.google.container.v1.ListUsableSubnetworksResponse; -import com.google.container.v1.NodePool; -import com.google.container.v1.Operation; -import com.google.container.v1.RollbackNodePoolUpgradeRequest; -import com.google.container.v1.ServerConfig; -import com.google.container.v1.SetAddonsConfigRequest; -import com.google.container.v1.SetLabelsRequest; -import com.google.container.v1.SetLegacyAbacRequest; -import com.google.container.v1.SetLocationsRequest; -import com.google.container.v1.SetLoggingServiceRequest; -import com.google.container.v1.SetMaintenancePolicyRequest; -import com.google.container.v1.SetMasterAuthRequest; -import com.google.container.v1.SetMonitoringServiceRequest; -import com.google.container.v1.SetNetworkPolicyRequest; -import com.google.container.v1.SetNodePoolAutoscalingRequest; -import com.google.container.v1.SetNodePoolManagementRequest; -import com.google.container.v1.SetNodePoolSizeRequest; -import com.google.container.v1.StartIPRotationRequest; -import com.google.container.v1.UpdateClusterRequest; -import com.google.container.v1.UpdateMasterRequest; -import com.google.container.v1.UpdateNodePoolRequest; -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 MockClusterManagerImpl extends ClusterManagerImplBase { - private List requests; - private Queue responses; - - public MockClusterManagerImpl() { - 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 listClusters( - ListClustersRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void getCluster(GetClusterRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void createCluster( - CreateClusterRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void updateCluster( - UpdateClusterRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void updateNodePool( - UpdateNodePoolRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void setNodePoolAutoscaling( - SetNodePoolAutoscalingRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void setLoggingService( - SetLoggingServiceRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void setMonitoringService( - SetMonitoringServiceRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void setAddonsConfig( - SetAddonsConfigRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void setLocations( - SetLocationsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void updateMaster( - UpdateMasterRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void setMasterAuth( - SetMasterAuthRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void deleteCluster( - DeleteClusterRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void listOperations( - ListOperationsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof ListOperationsResponse) { - requests.add(request); - responseObserver.onNext(((ListOperationsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void getOperation( - GetOperationRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void cancelOperation( - CancelOperationRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void getServerConfig( - GetServerConfigRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof ServerConfig) { - requests.add(request); - responseObserver.onNext(((ServerConfig) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void getJSONWebKeys( - GetJSONWebKeysRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof GetJSONWebKeysResponse) { - requests.add(request); - responseObserver.onNext(((GetJSONWebKeysResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void listNodePools( - ListNodePoolsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof ListNodePoolsResponse) { - requests.add(request); - responseObserver.onNext(((ListNodePoolsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void getNodePool(GetNodePoolRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof NodePool) { - requests.add(request); - responseObserver.onNext(((NodePool) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } - - @Override - public void createNodePool( - CreateNodePoolRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void deleteNodePool( - DeleteNodePoolRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void rollbackNodePoolUpgrade( - RollbackNodePoolUpgradeRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void setNodePoolManagement( - SetNodePoolManagementRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void setLabels(SetLabelsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void setLegacyAbac( - SetLegacyAbacRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void startIPRotation( - StartIPRotationRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void completeIPRotation( - CompleteIPRotationRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void setNodePoolSize( - SetNodePoolSizeRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void setNetworkPolicy( - SetNetworkPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void setMaintenancePolicy( - SetMaintenancePolicyRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - 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("Unrecognized response type")); - } - } - - @Override - public void listUsableSubnetworks( - ListUsableSubnetworksRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof ListUsableSubnetworksResponse) { - requests.add(request); - responseObserver.onNext(((ListUsableSubnetworksResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); - } - } -} diff --git a/google-cloud-container/src/test/java/com/google/cloud/container/v1/it/ITSystemTest.java b/google-cloud-container/src/test/java/com/google/cloud/container/v1/it/ITSystemTest.java deleted file mode 100644 index 84e1a8ab..00000000 --- a/google-cloud-container/src/test/java/com/google/cloud/container/v1/it/ITSystemTest.java +++ /dev/null @@ -1,173 +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.container.v1.it; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; - -import com.google.cloud.ServiceOptions; -import com.google.cloud.container.v1.ClusterManagerClient; -import com.google.container.v1.Cluster; -import com.google.container.v1.ListClustersResponse; -import com.google.container.v1.ListNodePoolsResponse; -import com.google.container.v1.ListOperationsResponse; -import com.google.container.v1.NodePool; -import com.google.container.v1.Operation; -import com.google.container.v1.ServerConfig; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.TimeUnit; -import java.util.logging.Logger; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class ITSystemTest { - - private static ClusterManagerClient client; - private static Operation operation; - - private static final Logger LOG = Logger.getLogger(ITSystemTest.class.getName()); - private static final String PROJECT_ID = ServiceOptions.getDefaultProjectId(); - private static final String ZONE = "us-central1-a"; - private static final String CLUSTER_NAME = - "test-cluster-" + UUID.randomUUID().toString().substring(0, 8); - private static final String NODE_POOL_NAME = - "test-node-pool-" + UUID.randomUUID().toString().substring(0, 8); - private static final String DETAIL = "test-detail"; - private static final String STATUS_MESSAGE = "test-status-message"; - private static final String SELF_LINK = - "https://container.googleapis.com/v1/projects/" - + PROJECT_ID - + "/zones/us-central1-a/clusters/" - + CLUSTER_NAME; - private static final String NODE_POOL_SEL_LINK = SELF_LINK + "/nodePools/" + NODE_POOL_NAME; - private static final String NETWORK = "default"; - private static final int INITIAL_NODE_COUNT = 1; - - @BeforeClass - public static void beforeClass() throws Exception { - client = ClusterManagerClient.create(); - - /** create node pool* */ - NodePool nodePool = - NodePool.newBuilder() - .setInitialNodeCount(INITIAL_NODE_COUNT) - .setName(NODE_POOL_NAME) - .setSelfLink(NODE_POOL_SEL_LINK) - .setStatusMessage(STATUS_MESSAGE) - .build(); - - /** create cluster */ - Cluster cluster = - Cluster.newBuilder() - .setName(CLUSTER_NAME) - .setLocation("us-central1") - .setDescription(DETAIL) - .setSelfLink(SELF_LINK) - .addNodePools(nodePool) - .setStatusMessage(STATUS_MESSAGE) - .setNetwork(NETWORK) - .build(); - operation = client.createCluster(PROJECT_ID, ZONE, cluster); - LOG.info(String.format("%s cluster created successfully.", CLUSTER_NAME)); - LOG.info(String.format("%s node pool created successfully.", NODE_POOL_NAME)); - } - - @AfterClass - public static void afterClass() throws Exception { - Thread.sleep(TimeUnit.MINUTES.toMillis(5)); - client.deleteCluster(PROJECT_ID, ZONE, CLUSTER_NAME); - LOG.info(String.format("%s cluster deleted successfully.", CLUSTER_NAME)); - client.close(); - } - - @Test - public void getClusterTest() { - Cluster cluster = client.getCluster(PROJECT_ID, ZONE, CLUSTER_NAME); - NodePool nodePool = client.getNodePool(PROJECT_ID, ZONE, CLUSTER_NAME, NODE_POOL_NAME); - assertEquals(CLUSTER_NAME, cluster.getName()); - assertEquals(DETAIL, cluster.getDescription()); - assertEquals(ZONE, cluster.getLocation()); - assertEquals(SELF_LINK, cluster.getSelfLink()); - assertEquals(NETWORK, cluster.getNetwork()); - assertEquals(INITIAL_NODE_COUNT, nodePool.getInitialNodeCount()); - } - - @Test - public void listClusterTest() { - ListClustersResponse clustersResponse = client.listClusters(PROJECT_ID, ZONE); - List clusters = clustersResponse.getClustersList(); - NodePool nodePool = client.getNodePool(PROJECT_ID, ZONE, CLUSTER_NAME, NODE_POOL_NAME); - for (Cluster cluster : clusters) { - if (CLUSTER_NAME.equals(cluster.getName())) { - assertEquals(CLUSTER_NAME, cluster.getName()); - assertEquals(DETAIL, cluster.getDescription()); - assertEquals(ZONE, cluster.getLocation()); - assertEquals(SELF_LINK, cluster.getSelfLink()); - assertEquals(NETWORK, cluster.getNetwork()); - assertEquals(INITIAL_NODE_COUNT, nodePool.getInitialNodeCount()); - } - } - } - - @Test - public void getOperationTest() { - Operation response = client.getOperation(PROJECT_ID, ZONE, operation.getName()); - assertEquals(operation.getName(), response.getName()); - assertEquals(ZONE, response.getZone()); - } - - @Test - public void listOperationsTest() { - ListOperationsResponse listOperations = client.listOperations(PROJECT_ID, ZONE); - List operations = listOperations.getOperationsList(); - for (Operation actualOperation : operations) { - if (actualOperation.getName().equals(operation.getName())) { - assertEquals(operation.getName(), actualOperation.getName()); - assertEquals(ZONE, actualOperation.getZone()); - } - } - } - - @Test - public void getServerConfigTest() { - ServerConfig config = client.getServerConfig(PROJECT_ID, ZONE); - assertNotNull(config); - assertEquals("COS", config.getDefaultImageType()); - } - - @Test - public void getNodePoolTest() { - NodePool nodePool = client.getNodePool(PROJECT_ID, ZONE, CLUSTER_NAME, NODE_POOL_NAME); - assertEquals(NODE_POOL_NAME, nodePool.getName()); - assertEquals(INITIAL_NODE_COUNT, nodePool.getInitialNodeCount()); - assertEquals(NODE_POOL_SEL_LINK, nodePool.getSelfLink()); - } - - @Test - public void listNodePoolsTest() { - ListNodePoolsResponse response = client.listNodePools(PROJECT_ID, ZONE, CLUSTER_NAME); - List nodePools = response.getNodePoolsList(); - for (NodePool nodePool : nodePools) { - if (NODE_POOL_NAME.equals(nodePool.getName())) { - assertEquals(NODE_POOL_NAME, nodePool.getName()); - assertEquals(INITIAL_NODE_COUNT, nodePool.getInitialNodeCount()); - assertEquals(NODE_POOL_SEL_LINK, nodePool.getSelfLink()); - } - } - } -} diff --git a/grpc-google-cloud-container-v1/clirr-ignored-differences.xml b/grpc-google-cloud-container-v1/clirr-ignored-differences.xml deleted file mode 100644 index 0848667c..00000000 --- a/grpc-google-cloud-container-v1/clirr-ignored-differences.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - 6001 - com/google/container/v1/*Grpc - METHOD_* - - \ No newline at end of file diff --git a/grpc-google-cloud-container-v1/pom.xml b/grpc-google-cloud-container-v1/pom.xml deleted file mode 100644 index 7db8b66b..00000000 --- a/grpc-google-cloud-container-v1/pom.xml +++ /dev/null @@ -1,65 +0,0 @@ - - 4.0.0 - com.google.api.grpc - grpc-google-cloud-container-v1 - 1.2.4 - grpc-google-cloud-container-v1 - GRPC library for grpc-google-cloud-container-v1 - - com.google.cloud - google-cloud-container-parent - 1.2.4 - - - - io.grpc - grpc-api - - - io.grpc - grpc-stub - - - io.grpc - grpc-protobuf - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-cloud-container-v1 - - - com.google.guava - guava - - - - - - 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-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java b/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java deleted file mode 100644 index 2085f646..00000000 --- a/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java +++ /dev/null @@ -1,3909 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.container.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; - -/** - * - * - *
- * Google Kubernetes Engine Cluster Manager v1
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/container/v1/cluster_service.proto") -public final class ClusterManagerGrpc { - - private ClusterManagerGrpc() {} - - public static final String SERVICE_NAME = "google.container.v1.ClusterManager"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.ListClustersRequest, com.google.container.v1.ListClustersResponse> - getListClustersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListClusters", - requestType = com.google.container.v1.ListClustersRequest.class, - responseType = com.google.container.v1.ListClustersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.ListClustersRequest, com.google.container.v1.ListClustersResponse> - getListClustersMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.ListClustersRequest, - com.google.container.v1.ListClustersResponse> - getListClustersMethod; - if ((getListClustersMethod = ClusterManagerGrpc.getListClustersMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getListClustersMethod = ClusterManagerGrpc.getListClustersMethod) == null) { - ClusterManagerGrpc.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.container.v1.ListClustersRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.ListClustersResponse.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("ListClusters")) - .build(); - } - } - } - return getListClustersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.GetClusterRequest, com.google.container.v1.Cluster> - getGetClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCluster", - requestType = com.google.container.v1.GetClusterRequest.class, - responseType = com.google.container.v1.Cluster.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.GetClusterRequest, com.google.container.v1.Cluster> - getGetClusterMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.GetClusterRequest, com.google.container.v1.Cluster> - getGetClusterMethod; - if ((getGetClusterMethod = ClusterManagerGrpc.getGetClusterMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getGetClusterMethod = ClusterManagerGrpc.getGetClusterMethod) == null) { - ClusterManagerGrpc.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.container.v1.GetClusterRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Cluster.getDefaultInstance())) - .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("GetCluster")) - .build(); - } - } - } - return getGetClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.CreateClusterRequest, com.google.container.v1.Operation> - getCreateClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCluster", - requestType = com.google.container.v1.CreateClusterRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.CreateClusterRequest, com.google.container.v1.Operation> - getCreateClusterMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.CreateClusterRequest, com.google.container.v1.Operation> - getCreateClusterMethod; - if ((getCreateClusterMethod = ClusterManagerGrpc.getCreateClusterMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getCreateClusterMethod = ClusterManagerGrpc.getCreateClusterMethod) == null) { - ClusterManagerGrpc.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.container.v1.CreateClusterRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("CreateCluster")) - .build(); - } - } - } - return getCreateClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.UpdateClusterRequest, com.google.container.v1.Operation> - getUpdateClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCluster", - requestType = com.google.container.v1.UpdateClusterRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.UpdateClusterRequest, com.google.container.v1.Operation> - getUpdateClusterMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.UpdateClusterRequest, com.google.container.v1.Operation> - getUpdateClusterMethod; - if ((getUpdateClusterMethod = ClusterManagerGrpc.getUpdateClusterMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getUpdateClusterMethod = ClusterManagerGrpc.getUpdateClusterMethod) == null) { - ClusterManagerGrpc.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.container.v1.UpdateClusterRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("UpdateCluster")) - .build(); - } - } - } - return getUpdateClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.UpdateNodePoolRequest, com.google.container.v1.Operation> - getUpdateNodePoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateNodePool", - requestType = com.google.container.v1.UpdateNodePoolRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.UpdateNodePoolRequest, com.google.container.v1.Operation> - getUpdateNodePoolMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.UpdateNodePoolRequest, com.google.container.v1.Operation> - getUpdateNodePoolMethod; - if ((getUpdateNodePoolMethod = ClusterManagerGrpc.getUpdateNodePoolMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getUpdateNodePoolMethod = ClusterManagerGrpc.getUpdateNodePoolMethod) == null) { - ClusterManagerGrpc.getUpdateNodePoolMethod = - getUpdateNodePoolMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateNodePool")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.UpdateNodePoolRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("UpdateNodePool")) - .build(); - } - } - } - return getUpdateNodePoolMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetNodePoolAutoscalingRequest, com.google.container.v1.Operation> - getSetNodePoolAutoscalingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetNodePoolAutoscaling", - requestType = com.google.container.v1.SetNodePoolAutoscalingRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetNodePoolAutoscalingRequest, com.google.container.v1.Operation> - getSetNodePoolAutoscalingMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetNodePoolAutoscalingRequest, - com.google.container.v1.Operation> - getSetNodePoolAutoscalingMethod; - if ((getSetNodePoolAutoscalingMethod = ClusterManagerGrpc.getSetNodePoolAutoscalingMethod) - == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getSetNodePoolAutoscalingMethod = ClusterManagerGrpc.getSetNodePoolAutoscalingMethod) - == null) { - ClusterManagerGrpc.getSetNodePoolAutoscalingMethod = - getSetNodePoolAutoscalingMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "SetNodePoolAutoscaling")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.SetNodePoolAutoscalingRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetNodePoolAutoscaling")) - .build(); - } - } - } - return getSetNodePoolAutoscalingMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetLoggingServiceRequest, com.google.container.v1.Operation> - getSetLoggingServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetLoggingService", - requestType = com.google.container.v1.SetLoggingServiceRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetLoggingServiceRequest, com.google.container.v1.Operation> - getSetLoggingServiceMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetLoggingServiceRequest, com.google.container.v1.Operation> - getSetLoggingServiceMethod; - if ((getSetLoggingServiceMethod = ClusterManagerGrpc.getSetLoggingServiceMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getSetLoggingServiceMethod = ClusterManagerGrpc.getSetLoggingServiceMethod) == null) { - ClusterManagerGrpc.getSetLoggingServiceMethod = - getSetLoggingServiceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetLoggingService")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.SetLoggingServiceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetLoggingService")) - .build(); - } - } - } - return getSetLoggingServiceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetMonitoringServiceRequest, com.google.container.v1.Operation> - getSetMonitoringServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetMonitoringService", - requestType = com.google.container.v1.SetMonitoringServiceRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetMonitoringServiceRequest, com.google.container.v1.Operation> - getSetMonitoringServiceMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetMonitoringServiceRequest, com.google.container.v1.Operation> - getSetMonitoringServiceMethod; - if ((getSetMonitoringServiceMethod = ClusterManagerGrpc.getSetMonitoringServiceMethod) - == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getSetMonitoringServiceMethod = ClusterManagerGrpc.getSetMonitoringServiceMethod) - == null) { - ClusterManagerGrpc.getSetMonitoringServiceMethod = - getSetMonitoringServiceMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "SetMonitoringService")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.SetMonitoringServiceRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetMonitoringService")) - .build(); - } - } - } - return getSetMonitoringServiceMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetAddonsConfigRequest, com.google.container.v1.Operation> - getSetAddonsConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetAddonsConfig", - requestType = com.google.container.v1.SetAddonsConfigRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetAddonsConfigRequest, com.google.container.v1.Operation> - getSetAddonsConfigMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetAddonsConfigRequest, com.google.container.v1.Operation> - getSetAddonsConfigMethod; - if ((getSetAddonsConfigMethod = ClusterManagerGrpc.getSetAddonsConfigMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getSetAddonsConfigMethod = ClusterManagerGrpc.getSetAddonsConfigMethod) == null) { - ClusterManagerGrpc.getSetAddonsConfigMethod = - getSetAddonsConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetAddonsConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.SetAddonsConfigRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetAddonsConfig")) - .build(); - } - } - } - return getSetAddonsConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetLocationsRequest, com.google.container.v1.Operation> - getSetLocationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetLocations", - requestType = com.google.container.v1.SetLocationsRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetLocationsRequest, com.google.container.v1.Operation> - getSetLocationsMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetLocationsRequest, com.google.container.v1.Operation> - getSetLocationsMethod; - if ((getSetLocationsMethod = ClusterManagerGrpc.getSetLocationsMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getSetLocationsMethod = ClusterManagerGrpc.getSetLocationsMethod) == null) { - ClusterManagerGrpc.getSetLocationsMethod = - getSetLocationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetLocations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.SetLocationsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetLocations")) - .build(); - } - } - } - return getSetLocationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.UpdateMasterRequest, com.google.container.v1.Operation> - getUpdateMasterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateMaster", - requestType = com.google.container.v1.UpdateMasterRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.UpdateMasterRequest, com.google.container.v1.Operation> - getUpdateMasterMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.UpdateMasterRequest, com.google.container.v1.Operation> - getUpdateMasterMethod; - if ((getUpdateMasterMethod = ClusterManagerGrpc.getUpdateMasterMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getUpdateMasterMethod = ClusterManagerGrpc.getUpdateMasterMethod) == null) { - ClusterManagerGrpc.getUpdateMasterMethod = - getUpdateMasterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMaster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.UpdateMasterRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("UpdateMaster")) - .build(); - } - } - } - return getUpdateMasterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetMasterAuthRequest, com.google.container.v1.Operation> - getSetMasterAuthMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetMasterAuth", - requestType = com.google.container.v1.SetMasterAuthRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetMasterAuthRequest, com.google.container.v1.Operation> - getSetMasterAuthMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetMasterAuthRequest, com.google.container.v1.Operation> - getSetMasterAuthMethod; - if ((getSetMasterAuthMethod = ClusterManagerGrpc.getSetMasterAuthMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getSetMasterAuthMethod = ClusterManagerGrpc.getSetMasterAuthMethod) == null) { - ClusterManagerGrpc.getSetMasterAuthMethod = - getSetMasterAuthMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetMasterAuth")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.SetMasterAuthRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetMasterAuth")) - .build(); - } - } - } - return getSetMasterAuthMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.DeleteClusterRequest, com.google.container.v1.Operation> - getDeleteClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCluster", - requestType = com.google.container.v1.DeleteClusterRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.DeleteClusterRequest, com.google.container.v1.Operation> - getDeleteClusterMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.DeleteClusterRequest, com.google.container.v1.Operation> - getDeleteClusterMethod; - if ((getDeleteClusterMethod = ClusterManagerGrpc.getDeleteClusterMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getDeleteClusterMethod = ClusterManagerGrpc.getDeleteClusterMethod) == null) { - ClusterManagerGrpc.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.container.v1.DeleteClusterRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("DeleteCluster")) - .build(); - } - } - } - return getDeleteClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.ListOperationsRequest, - com.google.container.v1.ListOperationsResponse> - getListOperationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListOperations", - requestType = com.google.container.v1.ListOperationsRequest.class, - responseType = com.google.container.v1.ListOperationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.ListOperationsRequest, - com.google.container.v1.ListOperationsResponse> - getListOperationsMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.ListOperationsRequest, - com.google.container.v1.ListOperationsResponse> - getListOperationsMethod; - if ((getListOperationsMethod = ClusterManagerGrpc.getListOperationsMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getListOperationsMethod = ClusterManagerGrpc.getListOperationsMethod) == null) { - ClusterManagerGrpc.getListOperationsMethod = - getListOperationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOperations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.ListOperationsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.ListOperationsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("ListOperations")) - .build(); - } - } - } - return getListOperationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.GetOperationRequest, com.google.container.v1.Operation> - getGetOperationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetOperation", - requestType = com.google.container.v1.GetOperationRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.GetOperationRequest, com.google.container.v1.Operation> - getGetOperationMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.GetOperationRequest, com.google.container.v1.Operation> - getGetOperationMethod; - if ((getGetOperationMethod = ClusterManagerGrpc.getGetOperationMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getGetOperationMethod = ClusterManagerGrpc.getGetOperationMethod) == null) { - ClusterManagerGrpc.getGetOperationMethod = - getGetOperationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOperation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.GetOperationRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("GetOperation")) - .build(); - } - } - } - return getGetOperationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.CancelOperationRequest, com.google.protobuf.Empty> - getCancelOperationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CancelOperation", - requestType = com.google.container.v1.CancelOperationRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.CancelOperationRequest, com.google.protobuf.Empty> - getCancelOperationMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.CancelOperationRequest, com.google.protobuf.Empty> - getCancelOperationMethod; - if ((getCancelOperationMethod = ClusterManagerGrpc.getCancelOperationMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getCancelOperationMethod = ClusterManagerGrpc.getCancelOperationMethod) == null) { - ClusterManagerGrpc.getCancelOperationMethod = - getCancelOperationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelOperation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.CancelOperationRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("CancelOperation")) - .build(); - } - } - } - return getCancelOperationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.GetServerConfigRequest, com.google.container.v1.ServerConfig> - getGetServerConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetServerConfig", - requestType = com.google.container.v1.GetServerConfigRequest.class, - responseType = com.google.container.v1.ServerConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.GetServerConfigRequest, com.google.container.v1.ServerConfig> - getGetServerConfigMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.GetServerConfigRequest, com.google.container.v1.ServerConfig> - getGetServerConfigMethod; - if ((getGetServerConfigMethod = ClusterManagerGrpc.getGetServerConfigMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getGetServerConfigMethod = ClusterManagerGrpc.getGetServerConfigMethod) == null) { - ClusterManagerGrpc.getGetServerConfigMethod = - getGetServerConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServerConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.GetServerConfigRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.ServerConfig.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("GetServerConfig")) - .build(); - } - } - } - return getGetServerConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.GetJSONWebKeysRequest, - com.google.container.v1.GetJSONWebKeysResponse> - getGetJSONWebKeysMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetJSONWebKeys", - requestType = com.google.container.v1.GetJSONWebKeysRequest.class, - responseType = com.google.container.v1.GetJSONWebKeysResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.GetJSONWebKeysRequest, - com.google.container.v1.GetJSONWebKeysResponse> - getGetJSONWebKeysMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.GetJSONWebKeysRequest, - com.google.container.v1.GetJSONWebKeysResponse> - getGetJSONWebKeysMethod; - if ((getGetJSONWebKeysMethod = ClusterManagerGrpc.getGetJSONWebKeysMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getGetJSONWebKeysMethod = ClusterManagerGrpc.getGetJSONWebKeysMethod) == null) { - ClusterManagerGrpc.getGetJSONWebKeysMethod = - getGetJSONWebKeysMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetJSONWebKeys")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.GetJSONWebKeysRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.GetJSONWebKeysResponse.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("GetJSONWebKeys")) - .build(); - } - } - } - return getGetJSONWebKeysMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.ListNodePoolsRequest, - com.google.container.v1.ListNodePoolsResponse> - getListNodePoolsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNodePools", - requestType = com.google.container.v1.ListNodePoolsRequest.class, - responseType = com.google.container.v1.ListNodePoolsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.ListNodePoolsRequest, - com.google.container.v1.ListNodePoolsResponse> - getListNodePoolsMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.ListNodePoolsRequest, - com.google.container.v1.ListNodePoolsResponse> - getListNodePoolsMethod; - if ((getListNodePoolsMethod = ClusterManagerGrpc.getListNodePoolsMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getListNodePoolsMethod = ClusterManagerGrpc.getListNodePoolsMethod) == null) { - ClusterManagerGrpc.getListNodePoolsMethod = - getListNodePoolsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNodePools")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.ListNodePoolsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.ListNodePoolsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("ListNodePools")) - .build(); - } - } - } - return getListNodePoolsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.GetNodePoolRequest, com.google.container.v1.NodePool> - getGetNodePoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNodePool", - requestType = com.google.container.v1.GetNodePoolRequest.class, - responseType = com.google.container.v1.NodePool.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.GetNodePoolRequest, com.google.container.v1.NodePool> - getGetNodePoolMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.GetNodePoolRequest, com.google.container.v1.NodePool> - getGetNodePoolMethod; - if ((getGetNodePoolMethod = ClusterManagerGrpc.getGetNodePoolMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getGetNodePoolMethod = ClusterManagerGrpc.getGetNodePoolMethod) == null) { - ClusterManagerGrpc.getGetNodePoolMethod = - getGetNodePoolMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNodePool")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.GetNodePoolRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.NodePool.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("GetNodePool")) - .build(); - } - } - } - return getGetNodePoolMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.CreateNodePoolRequest, com.google.container.v1.Operation> - getCreateNodePoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateNodePool", - requestType = com.google.container.v1.CreateNodePoolRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.CreateNodePoolRequest, com.google.container.v1.Operation> - getCreateNodePoolMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.CreateNodePoolRequest, com.google.container.v1.Operation> - getCreateNodePoolMethod; - if ((getCreateNodePoolMethod = ClusterManagerGrpc.getCreateNodePoolMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getCreateNodePoolMethod = ClusterManagerGrpc.getCreateNodePoolMethod) == null) { - ClusterManagerGrpc.getCreateNodePoolMethod = - getCreateNodePoolMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNodePool")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.CreateNodePoolRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("CreateNodePool")) - .build(); - } - } - } - return getCreateNodePoolMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.DeleteNodePoolRequest, com.google.container.v1.Operation> - getDeleteNodePoolMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteNodePool", - requestType = com.google.container.v1.DeleteNodePoolRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.DeleteNodePoolRequest, com.google.container.v1.Operation> - getDeleteNodePoolMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.DeleteNodePoolRequest, com.google.container.v1.Operation> - getDeleteNodePoolMethod; - if ((getDeleteNodePoolMethod = ClusterManagerGrpc.getDeleteNodePoolMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getDeleteNodePoolMethod = ClusterManagerGrpc.getDeleteNodePoolMethod) == null) { - ClusterManagerGrpc.getDeleteNodePoolMethod = - getDeleteNodePoolMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNodePool")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.DeleteNodePoolRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("DeleteNodePool")) - .build(); - } - } - } - return getDeleteNodePoolMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.RollbackNodePoolUpgradeRequest, com.google.container.v1.Operation> - getRollbackNodePoolUpgradeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RollbackNodePoolUpgrade", - requestType = com.google.container.v1.RollbackNodePoolUpgradeRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.RollbackNodePoolUpgradeRequest, com.google.container.v1.Operation> - getRollbackNodePoolUpgradeMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.RollbackNodePoolUpgradeRequest, - com.google.container.v1.Operation> - getRollbackNodePoolUpgradeMethod; - if ((getRollbackNodePoolUpgradeMethod = ClusterManagerGrpc.getRollbackNodePoolUpgradeMethod) - == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getRollbackNodePoolUpgradeMethod = ClusterManagerGrpc.getRollbackNodePoolUpgradeMethod) - == null) { - ClusterManagerGrpc.getRollbackNodePoolUpgradeMethod = - getRollbackNodePoolUpgradeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "RollbackNodePoolUpgrade")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.RollbackNodePoolUpgradeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("RollbackNodePoolUpgrade")) - .build(); - } - } - } - return getRollbackNodePoolUpgradeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetNodePoolManagementRequest, com.google.container.v1.Operation> - getSetNodePoolManagementMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetNodePoolManagement", - requestType = com.google.container.v1.SetNodePoolManagementRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetNodePoolManagementRequest, com.google.container.v1.Operation> - getSetNodePoolManagementMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetNodePoolManagementRequest, com.google.container.v1.Operation> - getSetNodePoolManagementMethod; - if ((getSetNodePoolManagementMethod = ClusterManagerGrpc.getSetNodePoolManagementMethod) - == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getSetNodePoolManagementMethod = ClusterManagerGrpc.getSetNodePoolManagementMethod) - == null) { - ClusterManagerGrpc.getSetNodePoolManagementMethod = - getSetNodePoolManagementMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "SetNodePoolManagement")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.SetNodePoolManagementRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetNodePoolManagement")) - .build(); - } - } - } - return getSetNodePoolManagementMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetLabelsRequest, com.google.container.v1.Operation> - getSetLabelsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetLabels", - requestType = com.google.container.v1.SetLabelsRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetLabelsRequest, com.google.container.v1.Operation> - getSetLabelsMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetLabelsRequest, com.google.container.v1.Operation> - getSetLabelsMethod; - if ((getSetLabelsMethod = ClusterManagerGrpc.getSetLabelsMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getSetLabelsMethod = ClusterManagerGrpc.getSetLabelsMethod) == null) { - ClusterManagerGrpc.getSetLabelsMethod = - getSetLabelsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetLabels")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.SetLabelsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ClusterManagerMethodDescriptorSupplier("SetLabels")) - .build(); - } - } - } - return getSetLabelsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetLegacyAbacRequest, com.google.container.v1.Operation> - getSetLegacyAbacMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetLegacyAbac", - requestType = com.google.container.v1.SetLegacyAbacRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetLegacyAbacRequest, com.google.container.v1.Operation> - getSetLegacyAbacMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetLegacyAbacRequest, com.google.container.v1.Operation> - getSetLegacyAbacMethod; - if ((getSetLegacyAbacMethod = ClusterManagerGrpc.getSetLegacyAbacMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getSetLegacyAbacMethod = ClusterManagerGrpc.getSetLegacyAbacMethod) == null) { - ClusterManagerGrpc.getSetLegacyAbacMethod = - getSetLegacyAbacMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetLegacyAbac")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.SetLegacyAbacRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetLegacyAbac")) - .build(); - } - } - } - return getSetLegacyAbacMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.StartIPRotationRequest, com.google.container.v1.Operation> - getStartIPRotationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartIPRotation", - requestType = com.google.container.v1.StartIPRotationRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.StartIPRotationRequest, com.google.container.v1.Operation> - getStartIPRotationMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.StartIPRotationRequest, com.google.container.v1.Operation> - getStartIPRotationMethod; - if ((getStartIPRotationMethod = ClusterManagerGrpc.getStartIPRotationMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getStartIPRotationMethod = ClusterManagerGrpc.getStartIPRotationMethod) == null) { - ClusterManagerGrpc.getStartIPRotationMethod = - getStartIPRotationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartIPRotation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.StartIPRotationRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("StartIPRotation")) - .build(); - } - } - } - return getStartIPRotationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.CompleteIPRotationRequest, com.google.container.v1.Operation> - getCompleteIPRotationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CompleteIPRotation", - requestType = com.google.container.v1.CompleteIPRotationRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.CompleteIPRotationRequest, com.google.container.v1.Operation> - getCompleteIPRotationMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.CompleteIPRotationRequest, com.google.container.v1.Operation> - getCompleteIPRotationMethod; - if ((getCompleteIPRotationMethod = ClusterManagerGrpc.getCompleteIPRotationMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getCompleteIPRotationMethod = ClusterManagerGrpc.getCompleteIPRotationMethod) - == null) { - ClusterManagerGrpc.getCompleteIPRotationMethod = - getCompleteIPRotationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CompleteIPRotation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.CompleteIPRotationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("CompleteIPRotation")) - .build(); - } - } - } - return getCompleteIPRotationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetNodePoolSizeRequest, com.google.container.v1.Operation> - getSetNodePoolSizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetNodePoolSize", - requestType = com.google.container.v1.SetNodePoolSizeRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetNodePoolSizeRequest, com.google.container.v1.Operation> - getSetNodePoolSizeMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetNodePoolSizeRequest, com.google.container.v1.Operation> - getSetNodePoolSizeMethod; - if ((getSetNodePoolSizeMethod = ClusterManagerGrpc.getSetNodePoolSizeMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getSetNodePoolSizeMethod = ClusterManagerGrpc.getSetNodePoolSizeMethod) == null) { - ClusterManagerGrpc.getSetNodePoolSizeMethod = - getSetNodePoolSizeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetNodePoolSize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.SetNodePoolSizeRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetNodePoolSize")) - .build(); - } - } - } - return getSetNodePoolSizeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetNetworkPolicyRequest, com.google.container.v1.Operation> - getSetNetworkPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetNetworkPolicy", - requestType = com.google.container.v1.SetNetworkPolicyRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetNetworkPolicyRequest, com.google.container.v1.Operation> - getSetNetworkPolicyMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetNetworkPolicyRequest, com.google.container.v1.Operation> - getSetNetworkPolicyMethod; - if ((getSetNetworkPolicyMethod = ClusterManagerGrpc.getSetNetworkPolicyMethod) == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getSetNetworkPolicyMethod = ClusterManagerGrpc.getSetNetworkPolicyMethod) == null) { - ClusterManagerGrpc.getSetNetworkPolicyMethod = - getSetNetworkPolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetNetworkPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.SetNetworkPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetNetworkPolicy")) - .build(); - } - } - } - return getSetNetworkPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.SetMaintenancePolicyRequest, com.google.container.v1.Operation> - getSetMaintenancePolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetMaintenancePolicy", - requestType = com.google.container.v1.SetMaintenancePolicyRequest.class, - responseType = com.google.container.v1.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.SetMaintenancePolicyRequest, com.google.container.v1.Operation> - getSetMaintenancePolicyMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.SetMaintenancePolicyRequest, com.google.container.v1.Operation> - getSetMaintenancePolicyMethod; - if ((getSetMaintenancePolicyMethod = ClusterManagerGrpc.getSetMaintenancePolicyMethod) - == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getSetMaintenancePolicyMethod = ClusterManagerGrpc.getSetMaintenancePolicyMethod) - == null) { - ClusterManagerGrpc.getSetMaintenancePolicyMethod = - getSetMaintenancePolicyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "SetMaintenancePolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.SetMaintenancePolicyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("SetMaintenancePolicy")) - .build(); - } - } - } - return getSetMaintenancePolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.container.v1.ListUsableSubnetworksRequest, - com.google.container.v1.ListUsableSubnetworksResponse> - getListUsableSubnetworksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUsableSubnetworks", - requestType = com.google.container.v1.ListUsableSubnetworksRequest.class, - responseType = com.google.container.v1.ListUsableSubnetworksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.container.v1.ListUsableSubnetworksRequest, - com.google.container.v1.ListUsableSubnetworksResponse> - getListUsableSubnetworksMethod() { - io.grpc.MethodDescriptor< - com.google.container.v1.ListUsableSubnetworksRequest, - com.google.container.v1.ListUsableSubnetworksResponse> - getListUsableSubnetworksMethod; - if ((getListUsableSubnetworksMethod = ClusterManagerGrpc.getListUsableSubnetworksMethod) - == null) { - synchronized (ClusterManagerGrpc.class) { - if ((getListUsableSubnetworksMethod = ClusterManagerGrpc.getListUsableSubnetworksMethod) - == null) { - ClusterManagerGrpc.getListUsableSubnetworksMethod = - getListUsableSubnetworksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListUsableSubnetworks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.ListUsableSubnetworksRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.container.v1.ListUsableSubnetworksResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ClusterManagerMethodDescriptorSupplier("ListUsableSubnetworks")) - .build(); - } - } - } - return getListUsableSubnetworksMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ClusterManagerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ClusterManagerStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterManagerStub(channel, callOptions); - } - }; - return ClusterManagerStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ClusterManagerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ClusterManagerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterManagerBlockingStub(channel, callOptions); - } - }; - return ClusterManagerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ClusterManagerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ClusterManagerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterManagerFutureStub(channel, callOptions); - } - }; - return ClusterManagerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Google Kubernetes Engine Cluster Manager v1
-   * 
- */ - public abstract static class ClusterManagerImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists all clusters owned by a project in either the specified zone or all
-     * zones.
-     * 
- */ - public void listClusters( - com.google.container.v1.ListClustersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnimplementedUnaryCall(getListClustersMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the details of a specific cluster.
-     * 
- */ - public void getCluster( - com.google.container.v1.GetClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a cluster, consisting of the specified number and type of Google
-     * Compute Engine instances.
-     * By default, the cluster is created in the project's
-     * [default
-     * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
-     * One firewall is added for the cluster. After cluster creation,
-     * the Kubelet creates routes for each node to allow the containers
-     * on that node to communicate with all other instances in the
-     * cluster.
-     * Finally, an entry is added to the project's global metadata indicating
-     * which CIDR range the cluster is using.
-     * 
- */ - public void createCluster( - com.google.container.v1.CreateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the settings of a specific cluster.
-     * 
- */ - public void updateCluster( - com.google.container.v1.UpdateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the version and/or image type for the specified node pool.
-     * 
- */ - public void updateNodePool( - com.google.container.v1.UpdateNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateNodePoolMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the autoscaling settings for the specified node pool.
-     * 
- */ - public void setNodePoolAutoscaling( - com.google.container.v1.SetNodePoolAutoscalingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetNodePoolAutoscalingMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the logging service for a specific cluster.
-     * 
- */ - public void setLoggingService( - com.google.container.v1.SetLoggingServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetLoggingServiceMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the monitoring service for a specific cluster.
-     * 
- */ - public void setMonitoringService( - com.google.container.v1.SetMonitoringServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetMonitoringServiceMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the addons for a specific cluster.
-     * 
- */ - public void setAddonsConfig( - com.google.container.v1.SetAddonsConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetAddonsConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the locations for a specific cluster.
-     * Deprecated. Use
-     * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
-     * instead.
-     * 
- */ - @java.lang.Deprecated - public void setLocations( - com.google.container.v1.SetLocationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetLocationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the master for a specific cluster.
-     * 
- */ - public void updateMaster( - com.google.container.v1.UpdateMasterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateMasterMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets master auth materials. Currently supports changing the admin password
-     * or a specific cluster, either via password generation or explicitly setting
-     * the password.
-     * 
- */ - public void setMasterAuth( - com.google.container.v1.SetMasterAuthRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetMasterAuthMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the cluster, including the Kubernetes endpoint and all worker
-     * nodes.
-     * Firewalls and routes that were configured during cluster creation
-     * are also deleted.
-     * Other Google Compute Engine resources that might be in use by the cluster,
-     * such as load balancer resources, are not deleted if they weren't present
-     * when the cluster was initially created.
-     * 
- */ - public void deleteCluster( - com.google.container.v1.DeleteClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all operations in a project in a specific zone or all zones.
-     * 
- */ - public void listOperations( - com.google.container.v1.ListOperationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnimplementedUnaryCall(getListOperationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the specified operation.
-     * 
- */ - public void getOperation( - com.google.container.v1.GetOperationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetOperationMethod(), responseObserver); - } - - /** - * - * - *
-     * Cancels the specified operation.
-     * 
- */ - public void cancelOperation( - com.google.container.v1.CancelOperationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCancelOperationMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns configuration info about the Google Kubernetes Engine service.
-     * 
- */ - public void getServerConfig( - com.google.container.v1.GetServerConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetServerConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the public component of the cluster signing keys in
-     * JSON Web Key format.
-     * This API is not yet intended for general use, and is not available for all
-     * clusters.
-     * 
- */ - public void getJSONWebKeys( - com.google.container.v1.GetJSONWebKeysRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnimplementedUnaryCall(getGetJSONWebKeysMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the node pools for a cluster.
-     * 
- */ - public void listNodePools( - com.google.container.v1.ListNodePoolsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnimplementedUnaryCall(getListNodePoolsMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the requested node pool.
-     * 
- */ - public void getNodePool( - com.google.container.v1.GetNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetNodePoolMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a node pool for a cluster.
-     * 
- */ - public void createNodePool( - com.google.container.v1.CreateNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateNodePoolMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a node pool from a cluster.
-     * 
- */ - public void deleteNodePool( - com.google.container.v1.DeleteNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteNodePoolMethod(), responseObserver); - } - - /** - * - * - *
-     * Rolls back a previously Aborted or Failed NodePool upgrade.
-     * This makes no changes if the last upgrade successfully completed.
-     * 
- */ - public void rollbackNodePoolUpgrade( - com.google.container.v1.RollbackNodePoolUpgradeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getRollbackNodePoolUpgradeMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the NodeManagement options for a node pool.
-     * 
- */ - public void setNodePoolManagement( - com.google.container.v1.SetNodePoolManagementRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetNodePoolManagementMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets labels on a cluster.
-     * 
- */ - public void setLabels( - com.google.container.v1.SetLabelsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetLabelsMethod(), responseObserver); - } - - /** - * - * - *
-     * Enables or disables the ABAC authorization mechanism on a cluster.
-     * 
- */ - public void setLegacyAbac( - com.google.container.v1.SetLegacyAbacRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetLegacyAbacMethod(), responseObserver); - } - - /** - * - * - *
-     * Starts master IP rotation.
-     * 
- */ - public void startIPRotation( - com.google.container.v1.StartIPRotationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getStartIPRotationMethod(), responseObserver); - } - - /** - * - * - *
-     * Completes master IP rotation.
-     * 
- */ - public void completeIPRotation( - com.google.container.v1.CompleteIPRotationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCompleteIPRotationMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the size for a specific node pool.
-     * 
- */ - public void setNodePoolSize( - com.google.container.v1.SetNodePoolSizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetNodePoolSizeMethod(), responseObserver); - } - - /** - * - * - *
-     * Enables or disables Network Policy for a cluster.
-     * 
- */ - public void setNetworkPolicy( - com.google.container.v1.SetNetworkPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetNetworkPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the maintenance policy for a cluster.
-     * 
- */ - public void setMaintenancePolicy( - com.google.container.v1.SetMaintenancePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetMaintenancePolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists subnetworks that are usable for creating clusters in a project.
-     * 
- */ - public void listUsableSubnetworks( - com.google.container.v1.ListUsableSubnetworksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnimplementedUnaryCall(getListUsableSubnetworksMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListClustersMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.ListClustersRequest, - com.google.container.v1.ListClustersResponse>(this, METHODID_LIST_CLUSTERS))) - .addMethod( - getGetClusterMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.GetClusterRequest, com.google.container.v1.Cluster>( - this, METHODID_GET_CLUSTER))) - .addMethod( - getCreateClusterMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.CreateClusterRequest, - com.google.container.v1.Operation>(this, METHODID_CREATE_CLUSTER))) - .addMethod( - getUpdateClusterMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.UpdateClusterRequest, - com.google.container.v1.Operation>(this, METHODID_UPDATE_CLUSTER))) - .addMethod( - getUpdateNodePoolMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.UpdateNodePoolRequest, - com.google.container.v1.Operation>(this, METHODID_UPDATE_NODE_POOL))) - .addMethod( - getSetNodePoolAutoscalingMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetNodePoolAutoscalingRequest, - com.google.container.v1.Operation>(this, METHODID_SET_NODE_POOL_AUTOSCALING))) - .addMethod( - getSetLoggingServiceMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetLoggingServiceRequest, - com.google.container.v1.Operation>(this, METHODID_SET_LOGGING_SERVICE))) - .addMethod( - getSetMonitoringServiceMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetMonitoringServiceRequest, - com.google.container.v1.Operation>(this, METHODID_SET_MONITORING_SERVICE))) - .addMethod( - getSetAddonsConfigMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetAddonsConfigRequest, - com.google.container.v1.Operation>(this, METHODID_SET_ADDONS_CONFIG))) - .addMethod( - getSetLocationsMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetLocationsRequest, - com.google.container.v1.Operation>(this, METHODID_SET_LOCATIONS))) - .addMethod( - getUpdateMasterMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.UpdateMasterRequest, - com.google.container.v1.Operation>(this, METHODID_UPDATE_MASTER))) - .addMethod( - getSetMasterAuthMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetMasterAuthRequest, - com.google.container.v1.Operation>(this, METHODID_SET_MASTER_AUTH))) - .addMethod( - getDeleteClusterMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.DeleteClusterRequest, - com.google.container.v1.Operation>(this, METHODID_DELETE_CLUSTER))) - .addMethod( - getListOperationsMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.ListOperationsRequest, - com.google.container.v1.ListOperationsResponse>( - this, METHODID_LIST_OPERATIONS))) - .addMethod( - getGetOperationMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.GetOperationRequest, - com.google.container.v1.Operation>(this, METHODID_GET_OPERATION))) - .addMethod( - getCancelOperationMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.CancelOperationRequest, com.google.protobuf.Empty>( - this, METHODID_CANCEL_OPERATION))) - .addMethod( - getGetServerConfigMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.GetServerConfigRequest, - com.google.container.v1.ServerConfig>(this, METHODID_GET_SERVER_CONFIG))) - .addMethod( - getGetJSONWebKeysMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.GetJSONWebKeysRequest, - com.google.container.v1.GetJSONWebKeysResponse>( - this, METHODID_GET_JSONWEB_KEYS))) - .addMethod( - getListNodePoolsMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.ListNodePoolsRequest, - com.google.container.v1.ListNodePoolsResponse>( - this, METHODID_LIST_NODE_POOLS))) - .addMethod( - getGetNodePoolMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.GetNodePoolRequest, com.google.container.v1.NodePool>( - this, METHODID_GET_NODE_POOL))) - .addMethod( - getCreateNodePoolMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.CreateNodePoolRequest, - com.google.container.v1.Operation>(this, METHODID_CREATE_NODE_POOL))) - .addMethod( - getDeleteNodePoolMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.DeleteNodePoolRequest, - com.google.container.v1.Operation>(this, METHODID_DELETE_NODE_POOL))) - .addMethod( - getRollbackNodePoolUpgradeMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.RollbackNodePoolUpgradeRequest, - com.google.container.v1.Operation>( - this, METHODID_ROLLBACK_NODE_POOL_UPGRADE))) - .addMethod( - getSetNodePoolManagementMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetNodePoolManagementRequest, - com.google.container.v1.Operation>(this, METHODID_SET_NODE_POOL_MANAGEMENT))) - .addMethod( - getSetLabelsMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetLabelsRequest, com.google.container.v1.Operation>( - this, METHODID_SET_LABELS))) - .addMethod( - getSetLegacyAbacMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetLegacyAbacRequest, - com.google.container.v1.Operation>(this, METHODID_SET_LEGACY_ABAC))) - .addMethod( - getStartIPRotationMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.StartIPRotationRequest, - com.google.container.v1.Operation>(this, METHODID_START_IPROTATION))) - .addMethod( - getCompleteIPRotationMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.CompleteIPRotationRequest, - com.google.container.v1.Operation>(this, METHODID_COMPLETE_IPROTATION))) - .addMethod( - getSetNodePoolSizeMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetNodePoolSizeRequest, - com.google.container.v1.Operation>(this, METHODID_SET_NODE_POOL_SIZE))) - .addMethod( - getSetNetworkPolicyMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetNetworkPolicyRequest, - com.google.container.v1.Operation>(this, METHODID_SET_NETWORK_POLICY))) - .addMethod( - getSetMaintenancePolicyMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.SetMaintenancePolicyRequest, - com.google.container.v1.Operation>(this, METHODID_SET_MAINTENANCE_POLICY))) - .addMethod( - getListUsableSubnetworksMethod(), - asyncUnaryCall( - new MethodHandlers< - com.google.container.v1.ListUsableSubnetworksRequest, - com.google.container.v1.ListUsableSubnetworksResponse>( - this, METHODID_LIST_USABLE_SUBNETWORKS))) - .build(); - } - } - - /** - * - * - *
-   * Google Kubernetes Engine Cluster Manager v1
-   * 
- */ - public static final class ClusterManagerStub - extends io.grpc.stub.AbstractAsyncStub { - private ClusterManagerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ClusterManagerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterManagerStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists all clusters owned by a project in either the specified zone or all
-     * zones.
-     * 
- */ - public void listClusters( - com.google.container.v1.ListClustersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getListClustersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the details of a specific cluster.
-     * 
- */ - public void getCluster( - com.google.container.v1.GetClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a cluster, consisting of the specified number and type of Google
-     * Compute Engine instances.
-     * By default, the cluster is created in the project's
-     * [default
-     * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
-     * One firewall is added for the cluster. After cluster creation,
-     * the Kubelet creates routes for each node to allow the containers
-     * on that node to communicate with all other instances in the
-     * cluster.
-     * Finally, an entry is added to the project's global metadata indicating
-     * which CIDR range the cluster is using.
-     * 
- */ - public void createCluster( - com.google.container.v1.CreateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the settings of a specific cluster.
-     * 
- */ - public void updateCluster( - com.google.container.v1.UpdateClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the version and/or image type for the specified node pool.
-     * 
- */ - public void updateNodePool( - com.google.container.v1.UpdateNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpdateNodePoolMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the autoscaling settings for the specified node pool.
-     * 
- */ - public void setNodePoolAutoscaling( - com.google.container.v1.SetNodePoolAutoscalingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSetNodePoolAutoscalingMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the logging service for a specific cluster.
-     * 
- */ - public void setLoggingService( - com.google.container.v1.SetLoggingServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSetLoggingServiceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the monitoring service for a specific cluster.
-     * 
- */ - public void setMonitoringService( - com.google.container.v1.SetMonitoringServiceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSetMonitoringServiceMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the addons for a specific cluster.
-     * 
- */ - public void setAddonsConfig( - com.google.container.v1.SetAddonsConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSetAddonsConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the locations for a specific cluster.
-     * Deprecated. Use
-     * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
-     * instead.
-     * 
- */ - @java.lang.Deprecated - public void setLocations( - com.google.container.v1.SetLocationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSetLocationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the master for a specific cluster.
-     * 
- */ - public void updateMaster( - com.google.container.v1.UpdateMasterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getUpdateMasterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets master auth materials. Currently supports changing the admin password
-     * or a specific cluster, either via password generation or explicitly setting
-     * the password.
-     * 
- */ - public void setMasterAuth( - com.google.container.v1.SetMasterAuthRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSetMasterAuthMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the cluster, including the Kubernetes endpoint and all worker
-     * nodes.
-     * Firewalls and routes that were configured during cluster creation
-     * are also deleted.
-     * Other Google Compute Engine resources that might be in use by the cluster,
-     * such as load balancer resources, are not deleted if they weren't present
-     * when the cluster was initially created.
-     * 
- */ - public void deleteCluster( - com.google.container.v1.DeleteClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all operations in a project in a specific zone or all zones.
-     * 
- */ - public void listOperations( - com.google.container.v1.ListOperationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getListOperationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the specified operation.
-     * 
- */ - public void getOperation( - com.google.container.v1.GetOperationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetOperationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Cancels the specified operation.
-     * 
- */ - public void cancelOperation( - com.google.container.v1.CancelOperationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCancelOperationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns configuration info about the Google Kubernetes Engine service.
-     * 
- */ - public void getServerConfig( - com.google.container.v1.GetServerConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetServerConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the public component of the cluster signing keys in
-     * JSON Web Key format.
-     * This API is not yet intended for general use, and is not available for all
-     * clusters.
-     * 
- */ - public void getJSONWebKeys( - com.google.container.v1.GetJSONWebKeysRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetJSONWebKeysMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists the node pools for a cluster.
-     * 
- */ - public void listNodePools( - com.google.container.v1.ListNodePoolsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getListNodePoolsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves the requested node pool.
-     * 
- */ - public void getNodePool( - com.google.container.v1.GetNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getGetNodePoolMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a node pool for a cluster.
-     * 
- */ - public void createNodePool( - com.google.container.v1.CreateNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCreateNodePoolMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a node pool from a cluster.
-     * 
- */ - public void deleteNodePool( - com.google.container.v1.DeleteNodePoolRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getDeleteNodePoolMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Rolls back a previously Aborted or Failed NodePool upgrade.
-     * This makes no changes if the last upgrade successfully completed.
-     * 
- */ - public void rollbackNodePoolUpgrade( - com.google.container.v1.RollbackNodePoolUpgradeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getRollbackNodePoolUpgradeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the NodeManagement options for a node pool.
-     * 
- */ - public void setNodePoolManagement( - com.google.container.v1.SetNodePoolManagementRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSetNodePoolManagementMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets labels on a cluster.
-     * 
- */ - public void setLabels( - com.google.container.v1.SetLabelsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSetLabelsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Enables or disables the ABAC authorization mechanism on a cluster.
-     * 
- */ - public void setLegacyAbac( - com.google.container.v1.SetLegacyAbacRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSetLegacyAbacMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Starts master IP rotation.
-     * 
- */ - public void startIPRotation( - com.google.container.v1.StartIPRotationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getStartIPRotationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Completes master IP rotation.
-     * 
- */ - public void completeIPRotation( - com.google.container.v1.CompleteIPRotationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getCompleteIPRotationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the size for a specific node pool.
-     * 
- */ - public void setNodePoolSize( - com.google.container.v1.SetNodePoolSizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSetNodePoolSizeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Enables or disables Network Policy for a cluster.
-     * 
- */ - public void setNetworkPolicy( - com.google.container.v1.SetNetworkPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSetNetworkPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the maintenance policy for a cluster.
-     * 
- */ - public void setMaintenancePolicy( - com.google.container.v1.SetMaintenancePolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( - getChannel().newCall(getSetMaintenancePolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists subnetworks that are usable for creating clusters in a project.
-     * 
- */ - public void listUsableSubnetworks( - com.google.container.v1.ListUsableSubnetworksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - asyncUnaryCall( - getChannel().newCall(getListUsableSubnetworksMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Google Kubernetes Engine Cluster Manager v1
-   * 
- */ - public static final class ClusterManagerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ClusterManagerBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ClusterManagerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterManagerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists all clusters owned by a project in either the specified zone or all
-     * zones.
-     * 
- */ - public com.google.container.v1.ListClustersResponse listClusters( - com.google.container.v1.ListClustersRequest request) { - return blockingUnaryCall(getChannel(), getListClustersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the details of a specific cluster.
-     * 
- */ - public com.google.container.v1.Cluster getCluster( - com.google.container.v1.GetClusterRequest request) { - return blockingUnaryCall(getChannel(), getGetClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a cluster, consisting of the specified number and type of Google
-     * Compute Engine instances.
-     * By default, the cluster is created in the project's
-     * [default
-     * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
-     * One firewall is added for the cluster. After cluster creation,
-     * the Kubelet creates routes for each node to allow the containers
-     * on that node to communicate with all other instances in the
-     * cluster.
-     * Finally, an entry is added to the project's global metadata indicating
-     * which CIDR range the cluster is using.
-     * 
- */ - public com.google.container.v1.Operation createCluster( - com.google.container.v1.CreateClusterRequest request) { - return blockingUnaryCall(getChannel(), getCreateClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the settings of a specific cluster.
-     * 
- */ - public com.google.container.v1.Operation updateCluster( - com.google.container.v1.UpdateClusterRequest request) { - return blockingUnaryCall(getChannel(), getUpdateClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the version and/or image type for the specified node pool.
-     * 
- */ - public com.google.container.v1.Operation updateNodePool( - com.google.container.v1.UpdateNodePoolRequest request) { - return blockingUnaryCall(getChannel(), getUpdateNodePoolMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the autoscaling settings for the specified node pool.
-     * 
- */ - public com.google.container.v1.Operation setNodePoolAutoscaling( - com.google.container.v1.SetNodePoolAutoscalingRequest request) { - return blockingUnaryCall( - getChannel(), getSetNodePoolAutoscalingMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the logging service for a specific cluster.
-     * 
- */ - public com.google.container.v1.Operation setLoggingService( - com.google.container.v1.SetLoggingServiceRequest request) { - return blockingUnaryCall( - getChannel(), getSetLoggingServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the monitoring service for a specific cluster.
-     * 
- */ - public com.google.container.v1.Operation setMonitoringService( - com.google.container.v1.SetMonitoringServiceRequest request) { - return blockingUnaryCall( - getChannel(), getSetMonitoringServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the addons for a specific cluster.
-     * 
- */ - public com.google.container.v1.Operation setAddonsConfig( - com.google.container.v1.SetAddonsConfigRequest request) { - return blockingUnaryCall(getChannel(), getSetAddonsConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the locations for a specific cluster.
-     * Deprecated. Use
-     * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
-     * instead.
-     * 
- */ - @java.lang.Deprecated - public com.google.container.v1.Operation setLocations( - com.google.container.v1.SetLocationsRequest request) { - return blockingUnaryCall(getChannel(), getSetLocationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the master for a specific cluster.
-     * 
- */ - public com.google.container.v1.Operation updateMaster( - com.google.container.v1.UpdateMasterRequest request) { - return blockingUnaryCall(getChannel(), getUpdateMasterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets master auth materials. Currently supports changing the admin password
-     * or a specific cluster, either via password generation or explicitly setting
-     * the password.
-     * 
- */ - public com.google.container.v1.Operation setMasterAuth( - com.google.container.v1.SetMasterAuthRequest request) { - return blockingUnaryCall(getChannel(), getSetMasterAuthMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the cluster, including the Kubernetes endpoint and all worker
-     * nodes.
-     * Firewalls and routes that were configured during cluster creation
-     * are also deleted.
-     * Other Google Compute Engine resources that might be in use by the cluster,
-     * such as load balancer resources, are not deleted if they weren't present
-     * when the cluster was initially created.
-     * 
- */ - public com.google.container.v1.Operation deleteCluster( - com.google.container.v1.DeleteClusterRequest request) { - return blockingUnaryCall(getChannel(), getDeleteClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all operations in a project in a specific zone or all zones.
-     * 
- */ - public com.google.container.v1.ListOperationsResponse listOperations( - com.google.container.v1.ListOperationsRequest request) { - return blockingUnaryCall(getChannel(), getListOperationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the specified operation.
-     * 
- */ - public com.google.container.v1.Operation getOperation( - com.google.container.v1.GetOperationRequest request) { - return blockingUnaryCall(getChannel(), getGetOperationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Cancels the specified operation.
-     * 
- */ - public com.google.protobuf.Empty cancelOperation( - com.google.container.v1.CancelOperationRequest request) { - return blockingUnaryCall(getChannel(), getCancelOperationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns configuration info about the Google Kubernetes Engine service.
-     * 
- */ - public com.google.container.v1.ServerConfig getServerConfig( - com.google.container.v1.GetServerConfigRequest request) { - return blockingUnaryCall(getChannel(), getGetServerConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the public component of the cluster signing keys in
-     * JSON Web Key format.
-     * This API is not yet intended for general use, and is not available for all
-     * clusters.
-     * 
- */ - public com.google.container.v1.GetJSONWebKeysResponse getJSONWebKeys( - com.google.container.v1.GetJSONWebKeysRequest request) { - return blockingUnaryCall(getChannel(), getGetJSONWebKeysMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the node pools for a cluster.
-     * 
- */ - public com.google.container.v1.ListNodePoolsResponse listNodePools( - com.google.container.v1.ListNodePoolsRequest request) { - return blockingUnaryCall(getChannel(), getListNodePoolsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the requested node pool.
-     * 
- */ - public com.google.container.v1.NodePool getNodePool( - com.google.container.v1.GetNodePoolRequest request) { - return blockingUnaryCall(getChannel(), getGetNodePoolMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a node pool for a cluster.
-     * 
- */ - public com.google.container.v1.Operation createNodePool( - com.google.container.v1.CreateNodePoolRequest request) { - return blockingUnaryCall(getChannel(), getCreateNodePoolMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a node pool from a cluster.
-     * 
- */ - public com.google.container.v1.Operation deleteNodePool( - com.google.container.v1.DeleteNodePoolRequest request) { - return blockingUnaryCall(getChannel(), getDeleteNodePoolMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Rolls back a previously Aborted or Failed NodePool upgrade.
-     * This makes no changes if the last upgrade successfully completed.
-     * 
- */ - public com.google.container.v1.Operation rollbackNodePoolUpgrade( - com.google.container.v1.RollbackNodePoolUpgradeRequest request) { - return blockingUnaryCall( - getChannel(), getRollbackNodePoolUpgradeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the NodeManagement options for a node pool.
-     * 
- */ - public com.google.container.v1.Operation setNodePoolManagement( - com.google.container.v1.SetNodePoolManagementRequest request) { - return blockingUnaryCall( - getChannel(), getSetNodePoolManagementMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets labels on a cluster.
-     * 
- */ - public com.google.container.v1.Operation setLabels( - com.google.container.v1.SetLabelsRequest request) { - return blockingUnaryCall(getChannel(), getSetLabelsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Enables or disables the ABAC authorization mechanism on a cluster.
-     * 
- */ - public com.google.container.v1.Operation setLegacyAbac( - com.google.container.v1.SetLegacyAbacRequest request) { - return blockingUnaryCall(getChannel(), getSetLegacyAbacMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Starts master IP rotation.
-     * 
- */ - public com.google.container.v1.Operation startIPRotation( - com.google.container.v1.StartIPRotationRequest request) { - return blockingUnaryCall(getChannel(), getStartIPRotationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Completes master IP rotation.
-     * 
- */ - public com.google.container.v1.Operation completeIPRotation( - com.google.container.v1.CompleteIPRotationRequest request) { - return blockingUnaryCall( - getChannel(), getCompleteIPRotationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the size for a specific node pool.
-     * 
- */ - public com.google.container.v1.Operation setNodePoolSize( - com.google.container.v1.SetNodePoolSizeRequest request) { - return blockingUnaryCall(getChannel(), getSetNodePoolSizeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Enables or disables Network Policy for a cluster.
-     * 
- */ - public com.google.container.v1.Operation setNetworkPolicy( - com.google.container.v1.SetNetworkPolicyRequest request) { - return blockingUnaryCall( - getChannel(), getSetNetworkPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the maintenance policy for a cluster.
-     * 
- */ - public com.google.container.v1.Operation setMaintenancePolicy( - com.google.container.v1.SetMaintenancePolicyRequest request) { - return blockingUnaryCall( - getChannel(), getSetMaintenancePolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists subnetworks that are usable for creating clusters in a project.
-     * 
- */ - public com.google.container.v1.ListUsableSubnetworksResponse listUsableSubnetworks( - com.google.container.v1.ListUsableSubnetworksRequest request) { - return blockingUnaryCall( - getChannel(), getListUsableSubnetworksMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Google Kubernetes Engine Cluster Manager v1
-   * 
- */ - public static final class ClusterManagerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ClusterManagerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ClusterManagerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ClusterManagerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists all clusters owned by a project in either the specified zone or all
-     * zones.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.container.v1.ListClustersResponse> - listClusters(com.google.container.v1.ListClustersRequest request) { - return futureUnaryCall( - getChannel().newCall(getListClustersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the details of a specific cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getCluster(com.google.container.v1.GetClusterRequest request) { - return futureUnaryCall( - getChannel().newCall(getGetClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a cluster, consisting of the specified number and type of Google
-     * Compute Engine instances.
-     * By default, the cluster is created in the project's
-     * [default
-     * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
-     * One firewall is added for the cluster. After cluster creation,
-     * the Kubelet creates routes for each node to allow the containers
-     * on that node to communicate with all other instances in the
-     * cluster.
-     * Finally, an entry is added to the project's global metadata indicating
-     * which CIDR range the cluster is using.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createCluster(com.google.container.v1.CreateClusterRequest request) { - return futureUnaryCall( - getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the settings of a specific cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateCluster(com.google.container.v1.UpdateClusterRequest request) { - return futureUnaryCall( - getChannel().newCall(getUpdateClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the version and/or image type for the specified node pool.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateNodePool(com.google.container.v1.UpdateNodePoolRequest request) { - return futureUnaryCall( - getChannel().newCall(getUpdateNodePoolMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the autoscaling settings for the specified node pool.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setNodePoolAutoscaling(com.google.container.v1.SetNodePoolAutoscalingRequest request) { - return futureUnaryCall( - getChannel().newCall(getSetNodePoolAutoscalingMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the logging service for a specific cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setLoggingService(com.google.container.v1.SetLoggingServiceRequest request) { - return futureUnaryCall( - getChannel().newCall(getSetLoggingServiceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the monitoring service for a specific cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setMonitoringService(com.google.container.v1.SetMonitoringServiceRequest request) { - return futureUnaryCall( - getChannel().newCall(getSetMonitoringServiceMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the addons for a specific cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setAddonsConfig(com.google.container.v1.SetAddonsConfigRequest request) { - return futureUnaryCall( - getChannel().newCall(getSetAddonsConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the locations for a specific cluster.
-     * Deprecated. Use
-     * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update)
-     * instead.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - setLocations(com.google.container.v1.SetLocationsRequest request) { - return futureUnaryCall( - getChannel().newCall(getSetLocationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the master for a specific cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateMaster(com.google.container.v1.UpdateMasterRequest request) { - return futureUnaryCall( - getChannel().newCall(getUpdateMasterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets master auth materials. Currently supports changing the admin password
-     * or a specific cluster, either via password generation or explicitly setting
-     * the password.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setMasterAuth(com.google.container.v1.SetMasterAuthRequest request) { - return futureUnaryCall( - getChannel().newCall(getSetMasterAuthMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the cluster, including the Kubernetes endpoint and all worker
-     * nodes.
-     * Firewalls and routes that were configured during cluster creation
-     * are also deleted.
-     * Other Google Compute Engine resources that might be in use by the cluster,
-     * such as load balancer resources, are not deleted if they weren't present
-     * when the cluster was initially created.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteCluster(com.google.container.v1.DeleteClusterRequest request) { - return futureUnaryCall( - getChannel().newCall(getDeleteClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all operations in a project in a specific zone or all zones.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.container.v1.ListOperationsResponse> - listOperations(com.google.container.v1.ListOperationsRequest request) { - return futureUnaryCall( - getChannel().newCall(getListOperationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the specified operation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getOperation(com.google.container.v1.GetOperationRequest request) { - return futureUnaryCall( - getChannel().newCall(getGetOperationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Cancels the specified operation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - cancelOperation(com.google.container.v1.CancelOperationRequest request) { - return futureUnaryCall( - getChannel().newCall(getCancelOperationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns configuration info about the Google Kubernetes Engine service.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getServerConfig(com.google.container.v1.GetServerConfigRequest request) { - return futureUnaryCall( - getChannel().newCall(getGetServerConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the public component of the cluster signing keys in
-     * JSON Web Key format.
-     * This API is not yet intended for general use, and is not available for all
-     * clusters.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.container.v1.GetJSONWebKeysResponse> - getJSONWebKeys(com.google.container.v1.GetJSONWebKeysRequest request) { - return futureUnaryCall( - getChannel().newCall(getGetJSONWebKeysMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the node pools for a cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.container.v1.ListNodePoolsResponse> - listNodePools(com.google.container.v1.ListNodePoolsRequest request) { - return futureUnaryCall( - getChannel().newCall(getListNodePoolsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the requested node pool.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getNodePool(com.google.container.v1.GetNodePoolRequest request) { - return futureUnaryCall( - getChannel().newCall(getGetNodePoolMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a node pool for a cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createNodePool(com.google.container.v1.CreateNodePoolRequest request) { - return futureUnaryCall( - getChannel().newCall(getCreateNodePoolMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a node pool from a cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteNodePool(com.google.container.v1.DeleteNodePoolRequest request) { - return futureUnaryCall( - getChannel().newCall(getDeleteNodePoolMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Rolls back a previously Aborted or Failed NodePool upgrade.
-     * This makes no changes if the last upgrade successfully completed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - rollbackNodePoolUpgrade(com.google.container.v1.RollbackNodePoolUpgradeRequest request) { - return futureUnaryCall( - getChannel().newCall(getRollbackNodePoolUpgradeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the NodeManagement options for a node pool.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setNodePoolManagement(com.google.container.v1.SetNodePoolManagementRequest request) { - return futureUnaryCall( - getChannel().newCall(getSetNodePoolManagementMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets labels on a cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setLabels(com.google.container.v1.SetLabelsRequest request) { - return futureUnaryCall(getChannel().newCall(getSetLabelsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Enables or disables the ABAC authorization mechanism on a cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setLegacyAbac(com.google.container.v1.SetLegacyAbacRequest request) { - return futureUnaryCall( - getChannel().newCall(getSetLegacyAbacMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Starts master IP rotation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - startIPRotation(com.google.container.v1.StartIPRotationRequest request) { - return futureUnaryCall( - getChannel().newCall(getStartIPRotationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Completes master IP rotation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - completeIPRotation(com.google.container.v1.CompleteIPRotationRequest request) { - return futureUnaryCall( - getChannel().newCall(getCompleteIPRotationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the size for a specific node pool.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setNodePoolSize(com.google.container.v1.SetNodePoolSizeRequest request) { - return futureUnaryCall( - getChannel().newCall(getSetNodePoolSizeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Enables or disables Network Policy for a cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setNetworkPolicy(com.google.container.v1.SetNetworkPolicyRequest request) { - return futureUnaryCall( - getChannel().newCall(getSetNetworkPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the maintenance policy for a cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setMaintenancePolicy(com.google.container.v1.SetMaintenancePolicyRequest request) { - return futureUnaryCall( - getChannel().newCall(getSetMaintenancePolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists subnetworks that are usable for creating clusters in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.container.v1.ListUsableSubnetworksResponse> - listUsableSubnetworks(com.google.container.v1.ListUsableSubnetworksRequest request) { - return futureUnaryCall( - getChannel().newCall(getListUsableSubnetworksMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_CLUSTERS = 0; - private static final int METHODID_GET_CLUSTER = 1; - private static final int METHODID_CREATE_CLUSTER = 2; - private static final int METHODID_UPDATE_CLUSTER = 3; - private static final int METHODID_UPDATE_NODE_POOL = 4; - private static final int METHODID_SET_NODE_POOL_AUTOSCALING = 5; - private static final int METHODID_SET_LOGGING_SERVICE = 6; - private static final int METHODID_SET_MONITORING_SERVICE = 7; - private static final int METHODID_SET_ADDONS_CONFIG = 8; - private static final int METHODID_SET_LOCATIONS = 9; - private static final int METHODID_UPDATE_MASTER = 10; - private static final int METHODID_SET_MASTER_AUTH = 11; - private static final int METHODID_DELETE_CLUSTER = 12; - private static final int METHODID_LIST_OPERATIONS = 13; - private static final int METHODID_GET_OPERATION = 14; - private static final int METHODID_CANCEL_OPERATION = 15; - private static final int METHODID_GET_SERVER_CONFIG = 16; - private static final int METHODID_GET_JSONWEB_KEYS = 17; - private static final int METHODID_LIST_NODE_POOLS = 18; - private static final int METHODID_GET_NODE_POOL = 19; - private static final int METHODID_CREATE_NODE_POOL = 20; - private static final int METHODID_DELETE_NODE_POOL = 21; - private static final int METHODID_ROLLBACK_NODE_POOL_UPGRADE = 22; - private static final int METHODID_SET_NODE_POOL_MANAGEMENT = 23; - private static final int METHODID_SET_LABELS = 24; - private static final int METHODID_SET_LEGACY_ABAC = 25; - private static final int METHODID_START_IPROTATION = 26; - private static final int METHODID_COMPLETE_IPROTATION = 27; - private static final int METHODID_SET_NODE_POOL_SIZE = 28; - private static final int METHODID_SET_NETWORK_POLICY = 29; - private static final int METHODID_SET_MAINTENANCE_POLICY = 30; - private static final int METHODID_LIST_USABLE_SUBNETWORKS = 31; - - 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 ClusterManagerImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ClusterManagerImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_CLUSTERS: - serviceImpl.listClusters( - (com.google.container.v1.ListClustersRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_CLUSTER: - serviceImpl.getCluster( - (com.google.container.v1.GetClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CLUSTER: - serviceImpl.createCluster( - (com.google.container.v1.CreateClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CLUSTER: - serviceImpl.updateCluster( - (com.google.container.v1.UpdateClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_NODE_POOL: - serviceImpl.updateNodePool( - (com.google.container.v1.UpdateNodePoolRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_NODE_POOL_AUTOSCALING: - serviceImpl.setNodePoolAutoscaling( - (com.google.container.v1.SetNodePoolAutoscalingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_LOGGING_SERVICE: - serviceImpl.setLoggingService( - (com.google.container.v1.SetLoggingServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_MONITORING_SERVICE: - serviceImpl.setMonitoringService( - (com.google.container.v1.SetMonitoringServiceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_ADDONS_CONFIG: - serviceImpl.setAddonsConfig( - (com.google.container.v1.SetAddonsConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_LOCATIONS: - serviceImpl.setLocations( - (com.google.container.v1.SetLocationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_MASTER: - serviceImpl.updateMaster( - (com.google.container.v1.UpdateMasterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_MASTER_AUTH: - serviceImpl.setMasterAuth( - (com.google.container.v1.SetMasterAuthRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CLUSTER: - serviceImpl.deleteCluster( - (com.google.container.v1.DeleteClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_OPERATIONS: - serviceImpl.listOperations( - (com.google.container.v1.ListOperationsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_OPERATION: - serviceImpl.getOperation( - (com.google.container.v1.GetOperationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CANCEL_OPERATION: - serviceImpl.cancelOperation( - (com.google.container.v1.CancelOperationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SERVER_CONFIG: - serviceImpl.getServerConfig( - (com.google.container.v1.GetServerConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_JSONWEB_KEYS: - serviceImpl.getJSONWebKeys( - (com.google.container.v1.GetJSONWebKeysRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_NODE_POOLS: - serviceImpl.listNodePools( - (com.google.container.v1.ListNodePoolsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_NODE_POOL: - serviceImpl.getNodePool( - (com.google.container.v1.GetNodePoolRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_NODE_POOL: - serviceImpl.createNodePool( - (com.google.container.v1.CreateNodePoolRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_NODE_POOL: - serviceImpl.deleteNodePool( - (com.google.container.v1.DeleteNodePoolRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ROLLBACK_NODE_POOL_UPGRADE: - serviceImpl.rollbackNodePoolUpgrade( - (com.google.container.v1.RollbackNodePoolUpgradeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_NODE_POOL_MANAGEMENT: - serviceImpl.setNodePoolManagement( - (com.google.container.v1.SetNodePoolManagementRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_LABELS: - serviceImpl.setLabels( - (com.google.container.v1.SetLabelsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_LEGACY_ABAC: - serviceImpl.setLegacyAbac( - (com.google.container.v1.SetLegacyAbacRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_IPROTATION: - serviceImpl.startIPRotation( - (com.google.container.v1.StartIPRotationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_COMPLETE_IPROTATION: - serviceImpl.completeIPRotation( - (com.google.container.v1.CompleteIPRotationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_NODE_POOL_SIZE: - serviceImpl.setNodePoolSize( - (com.google.container.v1.SetNodePoolSizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_NETWORK_POLICY: - serviceImpl.setNetworkPolicy( - (com.google.container.v1.SetNetworkPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_MAINTENANCE_POLICY: - serviceImpl.setMaintenancePolicy( - (com.google.container.v1.SetMaintenancePolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_USABLE_SUBNETWORKS: - serviceImpl.listUsableSubnetworks( - (com.google.container.v1.ListUsableSubnetworksRequest) 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 ClusterManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ClusterManagerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.container.v1.ClusterServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ClusterManager"); - } - } - - private static final class ClusterManagerFileDescriptorSupplier - extends ClusterManagerBaseDescriptorSupplier { - ClusterManagerFileDescriptorSupplier() {} - } - - private static final class ClusterManagerMethodDescriptorSupplier - extends ClusterManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ClusterManagerMethodDescriptorSupplier(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 (ClusterManagerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ClusterManagerFileDescriptorSupplier()) - .addMethod(getListClustersMethod()) - .addMethod(getGetClusterMethod()) - .addMethod(getCreateClusterMethod()) - .addMethod(getUpdateClusterMethod()) - .addMethod(getUpdateNodePoolMethod()) - .addMethod(getSetNodePoolAutoscalingMethod()) - .addMethod(getSetLoggingServiceMethod()) - .addMethod(getSetMonitoringServiceMethod()) - .addMethod(getSetAddonsConfigMethod()) - .addMethod(getSetLocationsMethod()) - .addMethod(getUpdateMasterMethod()) - .addMethod(getSetMasterAuthMethod()) - .addMethod(getDeleteClusterMethod()) - .addMethod(getListOperationsMethod()) - .addMethod(getGetOperationMethod()) - .addMethod(getCancelOperationMethod()) - .addMethod(getGetServerConfigMethod()) - .addMethod(getGetJSONWebKeysMethod()) - .addMethod(getListNodePoolsMethod()) - .addMethod(getGetNodePoolMethod()) - .addMethod(getCreateNodePoolMethod()) - .addMethod(getDeleteNodePoolMethod()) - .addMethod(getRollbackNodePoolUpgradeMethod()) - .addMethod(getSetNodePoolManagementMethod()) - .addMethod(getSetLabelsMethod()) - .addMethod(getSetLegacyAbacMethod()) - .addMethod(getStartIPRotationMethod()) - .addMethod(getCompleteIPRotationMethod()) - .addMethod(getSetNodePoolSizeMethod()) - .addMethod(getSetNetworkPolicyMethod()) - .addMethod(getSetMaintenancePolicyMethod()) - .addMethod(getListUsableSubnetworksMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java.header b/java.header deleted file mode 100644 index 3a9b503a..00000000 --- a/java.header +++ /dev/null @@ -1,15 +0,0 @@ -^/\*$ -^ \* Copyright \d\d\d\d,? Google (Inc\.|LLC)( All [rR]ights [rR]eserved\.)?$ -^ \*$ -^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\);$ -^ \* you may not use this file except in compliance with the License\.$ -^ \* You may obtain a copy of the License at$ -^ \*$ -^ \*[ ]+https?://www.apache.org/licenses/LICENSE-2\.0$ -^ \*$ -^ \* Unless required by applicable law or agreed to in writing, software$ -^ \* distributed under the License is distributed on an "AS IS" BASIS,$ -^ \* WITHOUT 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 54e506ce..00000000 --- a/pom.xml +++ /dev/null @@ -1,196 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-container-parent - pom - 1.2.4 - Google Cloud Container Parent - https://github.com/googleapis/java-container - - Java idiomatic client for Google Cloud Platform services. - - - - com.google.cloud - google-cloud-shared-config - 0.10.0 - - - - - chingor - Jeff Ching - chingor@google.com - Google - - Developer - - - - - Google LLC - - - scm:git:git@github.com:googleapis/java-container.git - scm:git:git@github.com:googleapis/java-container.git - https://github.com/googleapis/java-container - HEAD - - - https://github.com/googleapis/java-container/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 - https://www.apache.org/licenses/LICENSE-2.0.txt - - - - - UTF-8 - UTF-8 - github - google-cloud-container-parent - - - - - - com.google.api.grpc - proto-google-cloud-container-v1 - 1.2.4 - - - com.google.api.grpc - grpc-google-cloud-container-v1 - 1.2.4 - - - com.google.cloud - google-cloud-container - 1.2.4 - - - - com.google.cloud - google-cloud-shared-dependencies - 0.18.0 - pom - import - - - - junit - junit - 4.13.2 - test - - - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - org.objenesis:objenesis - javax.annotation:javax.annotation-api - - - - - - - - - proto-google-cloud-container-v1 - grpc-google-cloud-container-v1 - google-cloud-container - google-cloud-container-bom - - - - - - org.apache.maven.plugins - maven-project-info-reports-plugin - 3.1.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.2.0 - - - 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-container-v1/clirr-ignored-differences.xml b/proto-google-cloud-container-v1/clirr-ignored-differences.xml deleted file mode 100644 index 53518c89..00000000 --- a/proto-google-cloud-container-v1/clirr-ignored-differences.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - 7012 - com/google/container/v1/*OrBuilder - * get*(*) - - - 7012 - com/google/container/v1/*OrBuilder - boolean contains*(*) - - - 7012 - com/google/container/v1/*OrBuilder - boolean has*(*) - - diff --git a/proto-google-cloud-container-v1/pom.xml b/proto-google-cloud-container-v1/pom.xml deleted file mode 100644 index 5b0a5821..00000000 --- a/proto-google-cloud-container-v1/pom.xml +++ /dev/null @@ -1,34 +0,0 @@ - - 4.0.0 - com.google.api.grpc - proto-google-cloud-container-v1 - 1.2.4 - proto-google-cloud-container-v1 - PROTO library for proto-google-cloud-container-v1 - - com.google.cloud - google-cloud-container-parent - 1.2.4 - - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-common-protos - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - \ No newline at end of file diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfig.java deleted file mode 100644 index db80fdde..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfig.java +++ /dev/null @@ -1,731 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * AcceleratorConfig represents a Hardware Accelerator request.
- * 
- * - * Protobuf type {@code google.container.v1.AcceleratorConfig} - */ -public final class AcceleratorConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.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() { - acceleratorType_ = ""; - } - - @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 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AcceleratorConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AcceleratorConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AcceleratorConfig.class, - com.google.container.v1.AcceleratorConfig.Builder.class); - } - - public static final int ACCELERATOR_COUNT_FIELD_NUMBER = 1; - private long acceleratorCount_; - /** - * - * - *
-   * The number of the 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 name. List of supported accelerators
-   * [here](https://cloud.google.com/compute/docs/gpus)
-   * 
- * - * 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 name. List of supported accelerators
-   * [here](https://cloud.google.com/compute/docs/gpus)
-   * 
- * - * 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 (!getAcceleratorTypeBytes().isEmpty()) { - 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 (!getAcceleratorTypeBytes().isEmpty()) { - 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.container.v1.AcceleratorConfig)) { - return super.equals(obj); - } - com.google.container.v1.AcceleratorConfig other = - (com.google.container.v1.AcceleratorConfig) 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.container.v1.AcceleratorConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.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.container.v1.AcceleratorConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.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.container.v1.AcceleratorConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AcceleratorConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AcceleratorConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.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.container.v1.AcceleratorConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.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.container.v1.AcceleratorConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.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.container.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; - } - /** - * - * - *
-   * AcceleratorConfig represents a Hardware Accelerator request.
-   * 
- * - * Protobuf type {@code google.container.v1.AcceleratorConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.AcceleratorConfig) - com.google.container.v1.AcceleratorConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AcceleratorConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AcceleratorConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AcceleratorConfig.class, - com.google.container.v1.AcceleratorConfig.Builder.class); - } - - // Construct using com.google.container.v1.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(); - acceleratorCount_ = 0L; - - acceleratorType_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AcceleratorConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.AcceleratorConfig getDefaultInstanceForType() { - return com.google.container.v1.AcceleratorConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.AcceleratorConfig build() { - com.google.container.v1.AcceleratorConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.AcceleratorConfig buildPartial() { - com.google.container.v1.AcceleratorConfig result = - new com.google.container.v1.AcceleratorConfig(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.container.v1.AcceleratorConfig) { - return mergeFrom((com.google.container.v1.AcceleratorConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.AcceleratorConfig other) { - if (other == com.google.container.v1.AcceleratorConfig.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.container.v1.AcceleratorConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.AcceleratorConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long acceleratorCount_; - /** - * - * - *
-     * The number of the accelerator cards exposed to an instance.
-     * 
- * - * int64 accelerator_count = 1; - * - * @return The acceleratorCount. - */ - @java.lang.Override - public long getAcceleratorCount() { - return acceleratorCount_; - } - /** - * - * - *
-     * The number of the 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 the 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 name. List of supported accelerators
-     * [here](https://cloud.google.com/compute/docs/gpus)
-     * 
- * - * 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 name. List of supported accelerators
-     * [here](https://cloud.google.com/compute/docs/gpus)
-     * 
- * - * 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 name. List of supported accelerators
-     * [here](https://cloud.google.com/compute/docs/gpus)
-     * 
- * - * 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 name. List of supported accelerators
-     * [here](https://cloud.google.com/compute/docs/gpus)
-     * 
- * - * string accelerator_type = 2; - * - * @return This builder for chaining. - */ - public Builder clearAcceleratorType() { - - acceleratorType_ = getDefaultInstance().getAcceleratorType(); - onChanged(); - return this; - } - /** - * - * - *
-     * The accelerator type resource name. List of supported accelerators
-     * [here](https://cloud.google.com/compute/docs/gpus)
-     * 
- * - * 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.container.v1.AcceleratorConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.AcceleratorConfig) - private static final com.google.container.v1.AcceleratorConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.AcceleratorConfig(); - } - - public static com.google.container.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 { - 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.container.v1.AcceleratorConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfigOrBuilder.java deleted file mode 100644 index 7ab425bd..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfigOrBuilder.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. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface AcceleratorConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.AcceleratorConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The number of the accelerator cards exposed to an instance.
-   * 
- * - * int64 accelerator_count = 1; - * - * @return The acceleratorCount. - */ - long getAcceleratorCount(); - - /** - * - * - *
-   * The accelerator type resource name. List of supported accelerators
-   * [here](https://cloud.google.com/compute/docs/gpus)
-   * 
- * - * string accelerator_type = 2; - * - * @return The acceleratorType. - */ - java.lang.String getAcceleratorType(); - /** - * - * - *
-   * The accelerator type resource name. List of supported accelerators
-   * [here](https://cloud.google.com/compute/docs/gpus)
-   * 
- * - * string accelerator_type = 2; - * - * @return The bytes for acceleratorType. - */ - com.google.protobuf.ByteString getAcceleratorTypeBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java deleted file mode 100644 index ebca6571..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java +++ /dev/null @@ -1,2564 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Configuration for the addons that can be automatically spun up in the
- * cluster, enabling additional functionality.
- * 
- * - * Protobuf type {@code google.container.v1.AddonsConfig} - */ -public final class AddonsConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.AddonsConfig) - AddonsConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use AddonsConfig.newBuilder() to construct. - private AddonsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AddonsConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AddonsConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private AddonsConfig( - 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.container.v1.HttpLoadBalancing.Builder subBuilder = null; - if (httpLoadBalancing_ != null) { - subBuilder = httpLoadBalancing_.toBuilder(); - } - httpLoadBalancing_ = - input.readMessage( - com.google.container.v1.HttpLoadBalancing.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(httpLoadBalancing_); - httpLoadBalancing_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.container.v1.HorizontalPodAutoscaling.Builder subBuilder = null; - if (horizontalPodAutoscaling_ != null) { - subBuilder = horizontalPodAutoscaling_.toBuilder(); - } - horizontalPodAutoscaling_ = - input.readMessage( - com.google.container.v1.HorizontalPodAutoscaling.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(horizontalPodAutoscaling_); - horizontalPodAutoscaling_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.container.v1.KubernetesDashboard.Builder subBuilder = null; - if (kubernetesDashboard_ != null) { - subBuilder = kubernetesDashboard_.toBuilder(); - } - kubernetesDashboard_ = - input.readMessage( - com.google.container.v1.KubernetesDashboard.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(kubernetesDashboard_); - kubernetesDashboard_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.container.v1.NetworkPolicyConfig.Builder subBuilder = null; - if (networkPolicyConfig_ != null) { - subBuilder = networkPolicyConfig_.toBuilder(); - } - networkPolicyConfig_ = - input.readMessage( - com.google.container.v1.NetworkPolicyConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(networkPolicyConfig_); - networkPolicyConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 58: - { - com.google.container.v1.CloudRunConfig.Builder subBuilder = null; - if (cloudRunConfig_ != null) { - subBuilder = cloudRunConfig_.toBuilder(); - } - cloudRunConfig_ = - input.readMessage( - com.google.container.v1.CloudRunConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cloudRunConfig_); - cloudRunConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 66: - { - com.google.container.v1.DnsCacheConfig.Builder subBuilder = null; - if (dnsCacheConfig_ != null) { - subBuilder = dnsCacheConfig_.toBuilder(); - } - dnsCacheConfig_ = - input.readMessage( - com.google.container.v1.DnsCacheConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dnsCacheConfig_); - dnsCacheConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - com.google.container.v1.ConfigConnectorConfig.Builder subBuilder = null; - if (configConnectorConfig_ != null) { - subBuilder = configConnectorConfig_.toBuilder(); - } - configConnectorConfig_ = - input.readMessage( - com.google.container.v1.ConfigConnectorConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(configConnectorConfig_); - configConnectorConfig_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AddonsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AddonsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AddonsConfig.class, - com.google.container.v1.AddonsConfig.Builder.class); - } - - public static final int HTTP_LOAD_BALANCING_FIELD_NUMBER = 1; - private com.google.container.v1.HttpLoadBalancing httpLoadBalancing_; - /** - * - * - *
-   * Configuration for the HTTP (L7) load balancing controller addon, which
-   * makes it easy to set up HTTP load balancers for services in a cluster.
-   * 
- * - * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - * - * @return Whether the httpLoadBalancing field is set. - */ - @java.lang.Override - public boolean hasHttpLoadBalancing() { - return httpLoadBalancing_ != null; - } - /** - * - * - *
-   * Configuration for the HTTP (L7) load balancing controller addon, which
-   * makes it easy to set up HTTP load balancers for services in a cluster.
-   * 
- * - * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - * - * @return The httpLoadBalancing. - */ - @java.lang.Override - public com.google.container.v1.HttpLoadBalancing getHttpLoadBalancing() { - return httpLoadBalancing_ == null - ? com.google.container.v1.HttpLoadBalancing.getDefaultInstance() - : httpLoadBalancing_; - } - /** - * - * - *
-   * Configuration for the HTTP (L7) load balancing controller addon, which
-   * makes it easy to set up HTTP load balancers for services in a cluster.
-   * 
- * - * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - */ - @java.lang.Override - public com.google.container.v1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder() { - return getHttpLoadBalancing(); - } - - public static final int HORIZONTAL_POD_AUTOSCALING_FIELD_NUMBER = 2; - private com.google.container.v1.HorizontalPodAutoscaling horizontalPodAutoscaling_; - /** - * - * - *
-   * Configuration for the horizontal pod autoscaling feature, which
-   * increases or decreases the number of replica pods a replication controller
-   * has based on the resource usage of the existing pods.
-   * 
- * - * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * - * @return Whether the horizontalPodAutoscaling field is set. - */ - @java.lang.Override - public boolean hasHorizontalPodAutoscaling() { - return horizontalPodAutoscaling_ != null; - } - /** - * - * - *
-   * Configuration for the horizontal pod autoscaling feature, which
-   * increases or decreases the number of replica pods a replication controller
-   * has based on the resource usage of the existing pods.
-   * 
- * - * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * - * @return The horizontalPodAutoscaling. - */ - @java.lang.Override - public com.google.container.v1.HorizontalPodAutoscaling getHorizontalPodAutoscaling() { - return horizontalPodAutoscaling_ == null - ? com.google.container.v1.HorizontalPodAutoscaling.getDefaultInstance() - : horizontalPodAutoscaling_; - } - /** - * - * - *
-   * Configuration for the horizontal pod autoscaling feature, which
-   * increases or decreases the number of replica pods a replication controller
-   * has based on the resource usage of the existing pods.
-   * 
- * - * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - @java.lang.Override - public com.google.container.v1.HorizontalPodAutoscalingOrBuilder - getHorizontalPodAutoscalingOrBuilder() { - return getHorizontalPodAutoscaling(); - } - - public static final int KUBERNETES_DASHBOARD_FIELD_NUMBER = 3; - private com.google.container.v1.KubernetesDashboard kubernetesDashboard_; - /** - * - * - *
-   * Configuration for the Kubernetes Dashboard.
-   * This addon is deprecated, and will be disabled in 1.15. It is recommended
-   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-   * workloads and applications. For more information, see:
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-   * 
- * - * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - * - * @return Whether the kubernetesDashboard field is set. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean hasKubernetesDashboard() { - return kubernetesDashboard_ != null; - } - /** - * - * - *
-   * Configuration for the Kubernetes Dashboard.
-   * This addon is deprecated, and will be disabled in 1.15. It is recommended
-   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-   * workloads and applications. For more information, see:
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-   * 
- * - * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - * - * @return The kubernetesDashboard. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1.KubernetesDashboard getKubernetesDashboard() { - return kubernetesDashboard_ == null - ? com.google.container.v1.KubernetesDashboard.getDefaultInstance() - : kubernetesDashboard_; - } - /** - * - * - *
-   * Configuration for the Kubernetes Dashboard.
-   * This addon is deprecated, and will be disabled in 1.15. It is recommended
-   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-   * workloads and applications. For more information, see:
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-   * 
- * - * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1.KubernetesDashboardOrBuilder getKubernetesDashboardOrBuilder() { - return getKubernetesDashboard(); - } - - public static final int NETWORK_POLICY_CONFIG_FIELD_NUMBER = 4; - private com.google.container.v1.NetworkPolicyConfig networkPolicyConfig_; - /** - * - * - *
-   * Configuration for NetworkPolicy. This only tracks whether the addon
-   * is enabled or not on the Master, it does not track whether network policy
-   * is enabled for the nodes.
-   * 
- * - * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - * - * @return Whether the networkPolicyConfig field is set. - */ - @java.lang.Override - public boolean hasNetworkPolicyConfig() { - return networkPolicyConfig_ != null; - } - /** - * - * - *
-   * Configuration for NetworkPolicy. This only tracks whether the addon
-   * is enabled or not on the Master, it does not track whether network policy
-   * is enabled for the nodes.
-   * 
- * - * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - * - * @return The networkPolicyConfig. - */ - @java.lang.Override - public com.google.container.v1.NetworkPolicyConfig getNetworkPolicyConfig() { - return networkPolicyConfig_ == null - ? com.google.container.v1.NetworkPolicyConfig.getDefaultInstance() - : networkPolicyConfig_; - } - /** - * - * - *
-   * Configuration for NetworkPolicy. This only tracks whether the addon
-   * is enabled or not on the Master, it does not track whether network policy
-   * is enabled for the nodes.
-   * 
- * - * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - */ - @java.lang.Override - public com.google.container.v1.NetworkPolicyConfigOrBuilder getNetworkPolicyConfigOrBuilder() { - return getNetworkPolicyConfig(); - } - - public static final int CLOUD_RUN_CONFIG_FIELD_NUMBER = 7; - private com.google.container.v1.CloudRunConfig cloudRunConfig_; - /** - * - * - *
-   * Configuration for the Cloud Run addon, which allows the user to use a
-   * managed Knative service.
-   * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - * - * @return Whether the cloudRunConfig field is set. - */ - @java.lang.Override - public boolean hasCloudRunConfig() { - return cloudRunConfig_ != null; - } - /** - * - * - *
-   * Configuration for the Cloud Run addon, which allows the user to use a
-   * managed Knative service.
-   * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - * - * @return The cloudRunConfig. - */ - @java.lang.Override - public com.google.container.v1.CloudRunConfig getCloudRunConfig() { - return cloudRunConfig_ == null - ? com.google.container.v1.CloudRunConfig.getDefaultInstance() - : cloudRunConfig_; - } - /** - * - * - *
-   * Configuration for the Cloud Run addon, which allows the user to use a
-   * managed Knative service.
-   * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - */ - @java.lang.Override - public com.google.container.v1.CloudRunConfigOrBuilder getCloudRunConfigOrBuilder() { - return getCloudRunConfig(); - } - - public static final int DNS_CACHE_CONFIG_FIELD_NUMBER = 8; - private com.google.container.v1.DnsCacheConfig dnsCacheConfig_; - /** - * - * - *
-   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-   * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - * - * @return Whether the dnsCacheConfig field is set. - */ - @java.lang.Override - public boolean hasDnsCacheConfig() { - return dnsCacheConfig_ != null; - } - /** - * - * - *
-   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-   * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - * - * @return The dnsCacheConfig. - */ - @java.lang.Override - public com.google.container.v1.DnsCacheConfig getDnsCacheConfig() { - return dnsCacheConfig_ == null - ? com.google.container.v1.DnsCacheConfig.getDefaultInstance() - : dnsCacheConfig_; - } - /** - * - * - *
-   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-   * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - @java.lang.Override - public com.google.container.v1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder() { - return getDnsCacheConfig(); - } - - public static final int CONFIG_CONNECTOR_CONFIG_FIELD_NUMBER = 10; - private com.google.container.v1.ConfigConnectorConfig configConnectorConfig_; - /** - * - * - *
-   * Configuration for the ConfigConnector add-on, a Kubernetes
-   * extension to manage hosted GCP services through the Kubernetes API
-   * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * - * @return Whether the configConnectorConfig field is set. - */ - @java.lang.Override - public boolean hasConfigConnectorConfig() { - return configConnectorConfig_ != null; - } - /** - * - * - *
-   * Configuration for the ConfigConnector add-on, a Kubernetes
-   * extension to manage hosted GCP services through the Kubernetes API
-   * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * - * @return The configConnectorConfig. - */ - @java.lang.Override - public com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig() { - return configConnectorConfig_ == null - ? com.google.container.v1.ConfigConnectorConfig.getDefaultInstance() - : configConnectorConfig_; - } - /** - * - * - *
-   * Configuration for the ConfigConnector add-on, a Kubernetes
-   * extension to manage hosted GCP services through the Kubernetes API
-   * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - @java.lang.Override - public com.google.container.v1.ConfigConnectorConfigOrBuilder - getConfigConnectorConfigOrBuilder() { - return getConfigConnectorConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (httpLoadBalancing_ != null) { - output.writeMessage(1, getHttpLoadBalancing()); - } - if (horizontalPodAutoscaling_ != null) { - output.writeMessage(2, getHorizontalPodAutoscaling()); - } - if (kubernetesDashboard_ != null) { - output.writeMessage(3, getKubernetesDashboard()); - } - if (networkPolicyConfig_ != null) { - output.writeMessage(4, getNetworkPolicyConfig()); - } - if (cloudRunConfig_ != null) { - output.writeMessage(7, getCloudRunConfig()); - } - if (dnsCacheConfig_ != null) { - output.writeMessage(8, getDnsCacheConfig()); - } - if (configConnectorConfig_ != null) { - output.writeMessage(10, getConfigConnectorConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (httpLoadBalancing_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHttpLoadBalancing()); - } - if (horizontalPodAutoscaling_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getHorizontalPodAutoscaling()); - } - if (kubernetesDashboard_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getKubernetesDashboard()); - } - if (networkPolicyConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNetworkPolicyConfig()); - } - if (cloudRunConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCloudRunConfig()); - } - if (dnsCacheConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDnsCacheConfig()); - } - if (configConnectorConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(10, getConfigConnectorConfig()); - } - 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.container.v1.AddonsConfig)) { - return super.equals(obj); - } - com.google.container.v1.AddonsConfig other = (com.google.container.v1.AddonsConfig) obj; - - if (hasHttpLoadBalancing() != other.hasHttpLoadBalancing()) return false; - if (hasHttpLoadBalancing()) { - if (!getHttpLoadBalancing().equals(other.getHttpLoadBalancing())) return false; - } - if (hasHorizontalPodAutoscaling() != other.hasHorizontalPodAutoscaling()) return false; - if (hasHorizontalPodAutoscaling()) { - if (!getHorizontalPodAutoscaling().equals(other.getHorizontalPodAutoscaling())) return false; - } - if (hasKubernetesDashboard() != other.hasKubernetesDashboard()) return false; - if (hasKubernetesDashboard()) { - if (!getKubernetesDashboard().equals(other.getKubernetesDashboard())) return false; - } - if (hasNetworkPolicyConfig() != other.hasNetworkPolicyConfig()) return false; - if (hasNetworkPolicyConfig()) { - if (!getNetworkPolicyConfig().equals(other.getNetworkPolicyConfig())) return false; - } - if (hasCloudRunConfig() != other.hasCloudRunConfig()) return false; - if (hasCloudRunConfig()) { - if (!getCloudRunConfig().equals(other.getCloudRunConfig())) return false; - } - if (hasDnsCacheConfig() != other.hasDnsCacheConfig()) return false; - if (hasDnsCacheConfig()) { - if (!getDnsCacheConfig().equals(other.getDnsCacheConfig())) return false; - } - if (hasConfigConnectorConfig() != other.hasConfigConnectorConfig()) return false; - if (hasConfigConnectorConfig()) { - if (!getConfigConnectorConfig().equals(other.getConfigConnectorConfig())) 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 (hasHttpLoadBalancing()) { - hash = (37 * hash) + HTTP_LOAD_BALANCING_FIELD_NUMBER; - hash = (53 * hash) + getHttpLoadBalancing().hashCode(); - } - if (hasHorizontalPodAutoscaling()) { - hash = (37 * hash) + HORIZONTAL_POD_AUTOSCALING_FIELD_NUMBER; - hash = (53 * hash) + getHorizontalPodAutoscaling().hashCode(); - } - if (hasKubernetesDashboard()) { - hash = (37 * hash) + KUBERNETES_DASHBOARD_FIELD_NUMBER; - hash = (53 * hash) + getKubernetesDashboard().hashCode(); - } - if (hasNetworkPolicyConfig()) { - hash = (37 * hash) + NETWORK_POLICY_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getNetworkPolicyConfig().hashCode(); - } - if (hasCloudRunConfig()) { - hash = (37 * hash) + CLOUD_RUN_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getCloudRunConfig().hashCode(); - } - if (hasDnsCacheConfig()) { - hash = (37 * hash) + DNS_CACHE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDnsCacheConfig().hashCode(); - } - if (hasConfigConnectorConfig()) { - hash = (37 * hash) + CONFIG_CONNECTOR_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfigConnectorConfig().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.AddonsConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AddonsConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AddonsConfig parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AddonsConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AddonsConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AddonsConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AddonsConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.AddonsConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.AddonsConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.AddonsConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.AddonsConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.AddonsConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.AddonsConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 addons that can be automatically spun up in the
-   * cluster, enabling additional functionality.
-   * 
- * - * Protobuf type {@code google.container.v1.AddonsConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.AddonsConfig) - com.google.container.v1.AddonsConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AddonsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AddonsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AddonsConfig.class, - com.google.container.v1.AddonsConfig.Builder.class); - } - - // Construct using com.google.container.v1.AddonsConfig.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 (httpLoadBalancingBuilder_ == null) { - httpLoadBalancing_ = null; - } else { - httpLoadBalancing_ = null; - httpLoadBalancingBuilder_ = null; - } - if (horizontalPodAutoscalingBuilder_ == null) { - horizontalPodAutoscaling_ = null; - } else { - horizontalPodAutoscaling_ = null; - horizontalPodAutoscalingBuilder_ = null; - } - if (kubernetesDashboardBuilder_ == null) { - kubernetesDashboard_ = null; - } else { - kubernetesDashboard_ = null; - kubernetesDashboardBuilder_ = null; - } - if (networkPolicyConfigBuilder_ == null) { - networkPolicyConfig_ = null; - } else { - networkPolicyConfig_ = null; - networkPolicyConfigBuilder_ = null; - } - if (cloudRunConfigBuilder_ == null) { - cloudRunConfig_ = null; - } else { - cloudRunConfig_ = null; - cloudRunConfigBuilder_ = null; - } - if (dnsCacheConfigBuilder_ == null) { - dnsCacheConfig_ = null; - } else { - dnsCacheConfig_ = null; - dnsCacheConfigBuilder_ = null; - } - if (configConnectorConfigBuilder_ == null) { - configConnectorConfig_ = null; - } else { - configConnectorConfig_ = null; - configConnectorConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AddonsConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.AddonsConfig getDefaultInstanceForType() { - return com.google.container.v1.AddonsConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.AddonsConfig build() { - com.google.container.v1.AddonsConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.AddonsConfig buildPartial() { - com.google.container.v1.AddonsConfig result = new com.google.container.v1.AddonsConfig(this); - if (httpLoadBalancingBuilder_ == null) { - result.httpLoadBalancing_ = httpLoadBalancing_; - } else { - result.httpLoadBalancing_ = httpLoadBalancingBuilder_.build(); - } - if (horizontalPodAutoscalingBuilder_ == null) { - result.horizontalPodAutoscaling_ = horizontalPodAutoscaling_; - } else { - result.horizontalPodAutoscaling_ = horizontalPodAutoscalingBuilder_.build(); - } - if (kubernetesDashboardBuilder_ == null) { - result.kubernetesDashboard_ = kubernetesDashboard_; - } else { - result.kubernetesDashboard_ = kubernetesDashboardBuilder_.build(); - } - if (networkPolicyConfigBuilder_ == null) { - result.networkPolicyConfig_ = networkPolicyConfig_; - } else { - result.networkPolicyConfig_ = networkPolicyConfigBuilder_.build(); - } - if (cloudRunConfigBuilder_ == null) { - result.cloudRunConfig_ = cloudRunConfig_; - } else { - result.cloudRunConfig_ = cloudRunConfigBuilder_.build(); - } - if (dnsCacheConfigBuilder_ == null) { - result.dnsCacheConfig_ = dnsCacheConfig_; - } else { - result.dnsCacheConfig_ = dnsCacheConfigBuilder_.build(); - } - if (configConnectorConfigBuilder_ == null) { - result.configConnectorConfig_ = configConnectorConfig_; - } else { - result.configConnectorConfig_ = configConnectorConfigBuilder_.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.container.v1.AddonsConfig) { - return mergeFrom((com.google.container.v1.AddonsConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.AddonsConfig other) { - if (other == com.google.container.v1.AddonsConfig.getDefaultInstance()) return this; - if (other.hasHttpLoadBalancing()) { - mergeHttpLoadBalancing(other.getHttpLoadBalancing()); - } - if (other.hasHorizontalPodAutoscaling()) { - mergeHorizontalPodAutoscaling(other.getHorizontalPodAutoscaling()); - } - if (other.hasKubernetesDashboard()) { - mergeKubernetesDashboard(other.getKubernetesDashboard()); - } - if (other.hasNetworkPolicyConfig()) { - mergeNetworkPolicyConfig(other.getNetworkPolicyConfig()); - } - if (other.hasCloudRunConfig()) { - mergeCloudRunConfig(other.getCloudRunConfig()); - } - if (other.hasDnsCacheConfig()) { - mergeDnsCacheConfig(other.getDnsCacheConfig()); - } - if (other.hasConfigConnectorConfig()) { - mergeConfigConnectorConfig(other.getConfigConnectorConfig()); - } - 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.container.v1.AddonsConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.AddonsConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.container.v1.HttpLoadBalancing httpLoadBalancing_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.HttpLoadBalancing, - com.google.container.v1.HttpLoadBalancing.Builder, - com.google.container.v1.HttpLoadBalancingOrBuilder> - httpLoadBalancingBuilder_; - /** - * - * - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - * - * @return Whether the httpLoadBalancing field is set. - */ - public boolean hasHttpLoadBalancing() { - return httpLoadBalancingBuilder_ != null || httpLoadBalancing_ != null; - } - /** - * - * - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - * - * @return The httpLoadBalancing. - */ - public com.google.container.v1.HttpLoadBalancing getHttpLoadBalancing() { - if (httpLoadBalancingBuilder_ == null) { - return httpLoadBalancing_ == null - ? com.google.container.v1.HttpLoadBalancing.getDefaultInstance() - : httpLoadBalancing_; - } else { - return httpLoadBalancingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - */ - public Builder setHttpLoadBalancing(com.google.container.v1.HttpLoadBalancing value) { - if (httpLoadBalancingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - httpLoadBalancing_ = value; - onChanged(); - } else { - httpLoadBalancingBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - */ - public Builder setHttpLoadBalancing( - com.google.container.v1.HttpLoadBalancing.Builder builderForValue) { - if (httpLoadBalancingBuilder_ == null) { - httpLoadBalancing_ = builderForValue.build(); - onChanged(); - } else { - httpLoadBalancingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - */ - public Builder mergeHttpLoadBalancing(com.google.container.v1.HttpLoadBalancing value) { - if (httpLoadBalancingBuilder_ == null) { - if (httpLoadBalancing_ != null) { - httpLoadBalancing_ = - com.google.container.v1.HttpLoadBalancing.newBuilder(httpLoadBalancing_) - .mergeFrom(value) - .buildPartial(); - } else { - httpLoadBalancing_ = value; - } - onChanged(); - } else { - httpLoadBalancingBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - */ - public Builder clearHttpLoadBalancing() { - if (httpLoadBalancingBuilder_ == null) { - httpLoadBalancing_ = null; - onChanged(); - } else { - httpLoadBalancing_ = null; - httpLoadBalancingBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - */ - public com.google.container.v1.HttpLoadBalancing.Builder getHttpLoadBalancingBuilder() { - - onChanged(); - return getHttpLoadBalancingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - */ - public com.google.container.v1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder() { - if (httpLoadBalancingBuilder_ != null) { - return httpLoadBalancingBuilder_.getMessageOrBuilder(); - } else { - return httpLoadBalancing_ == null - ? com.google.container.v1.HttpLoadBalancing.getDefaultInstance() - : httpLoadBalancing_; - } - } - /** - * - * - *
-     * Configuration for the HTTP (L7) load balancing controller addon, which
-     * makes it easy to set up HTTP load balancers for services in a cluster.
-     * 
- * - * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.HttpLoadBalancing, - com.google.container.v1.HttpLoadBalancing.Builder, - com.google.container.v1.HttpLoadBalancingOrBuilder> - getHttpLoadBalancingFieldBuilder() { - if (httpLoadBalancingBuilder_ == null) { - httpLoadBalancingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.HttpLoadBalancing, - com.google.container.v1.HttpLoadBalancing.Builder, - com.google.container.v1.HttpLoadBalancingOrBuilder>( - getHttpLoadBalancing(), getParentForChildren(), isClean()); - httpLoadBalancing_ = null; - } - return httpLoadBalancingBuilder_; - } - - private com.google.container.v1.HorizontalPodAutoscaling horizontalPodAutoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.HorizontalPodAutoscaling, - com.google.container.v1.HorizontalPodAutoscaling.Builder, - com.google.container.v1.HorizontalPodAutoscalingOrBuilder> - horizontalPodAutoscalingBuilder_; - /** - * - * - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * - * @return Whether the horizontalPodAutoscaling field is set. - */ - public boolean hasHorizontalPodAutoscaling() { - return horizontalPodAutoscalingBuilder_ != null || horizontalPodAutoscaling_ != null; - } - /** - * - * - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * - * @return The horizontalPodAutoscaling. - */ - public com.google.container.v1.HorizontalPodAutoscaling getHorizontalPodAutoscaling() { - if (horizontalPodAutoscalingBuilder_ == null) { - return horizontalPodAutoscaling_ == null - ? com.google.container.v1.HorizontalPodAutoscaling.getDefaultInstance() - : horizontalPodAutoscaling_; - } else { - return horizontalPodAutoscalingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public Builder setHorizontalPodAutoscaling( - com.google.container.v1.HorizontalPodAutoscaling value) { - if (horizontalPodAutoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - horizontalPodAutoscaling_ = value; - onChanged(); - } else { - horizontalPodAutoscalingBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public Builder setHorizontalPodAutoscaling( - com.google.container.v1.HorizontalPodAutoscaling.Builder builderForValue) { - if (horizontalPodAutoscalingBuilder_ == null) { - horizontalPodAutoscaling_ = builderForValue.build(); - onChanged(); - } else { - horizontalPodAutoscalingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public Builder mergeHorizontalPodAutoscaling( - com.google.container.v1.HorizontalPodAutoscaling value) { - if (horizontalPodAutoscalingBuilder_ == null) { - if (horizontalPodAutoscaling_ != null) { - horizontalPodAutoscaling_ = - com.google.container.v1.HorizontalPodAutoscaling.newBuilder(horizontalPodAutoscaling_) - .mergeFrom(value) - .buildPartial(); - } else { - horizontalPodAutoscaling_ = value; - } - onChanged(); - } else { - horizontalPodAutoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public Builder clearHorizontalPodAutoscaling() { - if (horizontalPodAutoscalingBuilder_ == null) { - horizontalPodAutoscaling_ = null; - onChanged(); - } else { - horizontalPodAutoscaling_ = null; - horizontalPodAutoscalingBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public com.google.container.v1.HorizontalPodAutoscaling.Builder - getHorizontalPodAutoscalingBuilder() { - - onChanged(); - return getHorizontalPodAutoscalingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - public com.google.container.v1.HorizontalPodAutoscalingOrBuilder - getHorizontalPodAutoscalingOrBuilder() { - if (horizontalPodAutoscalingBuilder_ != null) { - return horizontalPodAutoscalingBuilder_.getMessageOrBuilder(); - } else { - return horizontalPodAutoscaling_ == null - ? com.google.container.v1.HorizontalPodAutoscaling.getDefaultInstance() - : horizontalPodAutoscaling_; - } - } - /** - * - * - *
-     * Configuration for the horizontal pod autoscaling feature, which
-     * increases or decreases the number of replica pods a replication controller
-     * has based on the resource usage of the existing pods.
-     * 
- * - * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.HorizontalPodAutoscaling, - com.google.container.v1.HorizontalPodAutoscaling.Builder, - com.google.container.v1.HorizontalPodAutoscalingOrBuilder> - getHorizontalPodAutoscalingFieldBuilder() { - if (horizontalPodAutoscalingBuilder_ == null) { - horizontalPodAutoscalingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.HorizontalPodAutoscaling, - com.google.container.v1.HorizontalPodAutoscaling.Builder, - com.google.container.v1.HorizontalPodAutoscalingOrBuilder>( - getHorizontalPodAutoscaling(), getParentForChildren(), isClean()); - horizontalPodAutoscaling_ = null; - } - return horizontalPodAutoscalingBuilder_; - } - - private com.google.container.v1.KubernetesDashboard kubernetesDashboard_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.KubernetesDashboard, - com.google.container.v1.KubernetesDashboard.Builder, - com.google.container.v1.KubernetesDashboardOrBuilder> - kubernetesDashboardBuilder_; - /** - * - * - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - * - * @return Whether the kubernetesDashboard field is set. - */ - @java.lang.Deprecated - public boolean hasKubernetesDashboard() { - return kubernetesDashboardBuilder_ != null || kubernetesDashboard_ != null; - } - /** - * - * - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - * - * @return The kubernetesDashboard. - */ - @java.lang.Deprecated - public com.google.container.v1.KubernetesDashboard getKubernetesDashboard() { - if (kubernetesDashboardBuilder_ == null) { - return kubernetesDashboard_ == null - ? com.google.container.v1.KubernetesDashboard.getDefaultInstance() - : kubernetesDashboard_; - } else { - return kubernetesDashboardBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setKubernetesDashboard(com.google.container.v1.KubernetesDashboard value) { - if (kubernetesDashboardBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kubernetesDashboard_ = value; - onChanged(); - } else { - kubernetesDashboardBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setKubernetesDashboard( - com.google.container.v1.KubernetesDashboard.Builder builderForValue) { - if (kubernetesDashboardBuilder_ == null) { - kubernetesDashboard_ = builderForValue.build(); - onChanged(); - } else { - kubernetesDashboardBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder mergeKubernetesDashboard(com.google.container.v1.KubernetesDashboard value) { - if (kubernetesDashboardBuilder_ == null) { - if (kubernetesDashboard_ != null) { - kubernetesDashboard_ = - com.google.container.v1.KubernetesDashboard.newBuilder(kubernetesDashboard_) - .mergeFrom(value) - .buildPartial(); - } else { - kubernetesDashboard_ = value; - } - onChanged(); - } else { - kubernetesDashboardBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder clearKubernetesDashboard() { - if (kubernetesDashboardBuilder_ == null) { - kubernetesDashboard_ = null; - onChanged(); - } else { - kubernetesDashboard_ = null; - kubernetesDashboardBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.container.v1.KubernetesDashboard.Builder getKubernetesDashboardBuilder() { - - onChanged(); - return getKubernetesDashboardFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.container.v1.KubernetesDashboardOrBuilder getKubernetesDashboardOrBuilder() { - if (kubernetesDashboardBuilder_ != null) { - return kubernetesDashboardBuilder_.getMessageOrBuilder(); - } else { - return kubernetesDashboard_ == null - ? com.google.container.v1.KubernetesDashboard.getDefaultInstance() - : kubernetesDashboard_; - } - } - /** - * - * - *
-     * Configuration for the Kubernetes Dashboard.
-     * This addon is deprecated, and will be disabled in 1.15. It is recommended
-     * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-     * workloads and applications. For more information, see:
-     * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-     * 
- * - * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.KubernetesDashboard, - com.google.container.v1.KubernetesDashboard.Builder, - com.google.container.v1.KubernetesDashboardOrBuilder> - getKubernetesDashboardFieldBuilder() { - if (kubernetesDashboardBuilder_ == null) { - kubernetesDashboardBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.KubernetesDashboard, - com.google.container.v1.KubernetesDashboard.Builder, - com.google.container.v1.KubernetesDashboardOrBuilder>( - getKubernetesDashboard(), getParentForChildren(), isClean()); - kubernetesDashboard_ = null; - } - return kubernetesDashboardBuilder_; - } - - private com.google.container.v1.NetworkPolicyConfig networkPolicyConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkPolicyConfig, - com.google.container.v1.NetworkPolicyConfig.Builder, - com.google.container.v1.NetworkPolicyConfigOrBuilder> - networkPolicyConfigBuilder_; - /** - * - * - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - * - * @return Whether the networkPolicyConfig field is set. - */ - public boolean hasNetworkPolicyConfig() { - return networkPolicyConfigBuilder_ != null || networkPolicyConfig_ != null; - } - /** - * - * - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - * - * @return The networkPolicyConfig. - */ - public com.google.container.v1.NetworkPolicyConfig getNetworkPolicyConfig() { - if (networkPolicyConfigBuilder_ == null) { - return networkPolicyConfig_ == null - ? com.google.container.v1.NetworkPolicyConfig.getDefaultInstance() - : networkPolicyConfig_; - } else { - return networkPolicyConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - */ - public Builder setNetworkPolicyConfig(com.google.container.v1.NetworkPolicyConfig value) { - if (networkPolicyConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkPolicyConfig_ = value; - onChanged(); - } else { - networkPolicyConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - */ - public Builder setNetworkPolicyConfig( - com.google.container.v1.NetworkPolicyConfig.Builder builderForValue) { - if (networkPolicyConfigBuilder_ == null) { - networkPolicyConfig_ = builderForValue.build(); - onChanged(); - } else { - networkPolicyConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - */ - public Builder mergeNetworkPolicyConfig(com.google.container.v1.NetworkPolicyConfig value) { - if (networkPolicyConfigBuilder_ == null) { - if (networkPolicyConfig_ != null) { - networkPolicyConfig_ = - com.google.container.v1.NetworkPolicyConfig.newBuilder(networkPolicyConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - networkPolicyConfig_ = value; - } - onChanged(); - } else { - networkPolicyConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - */ - public Builder clearNetworkPolicyConfig() { - if (networkPolicyConfigBuilder_ == null) { - networkPolicyConfig_ = null; - onChanged(); - } else { - networkPolicyConfig_ = null; - networkPolicyConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - */ - public com.google.container.v1.NetworkPolicyConfig.Builder getNetworkPolicyConfigBuilder() { - - onChanged(); - return getNetworkPolicyConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - */ - public com.google.container.v1.NetworkPolicyConfigOrBuilder getNetworkPolicyConfigOrBuilder() { - if (networkPolicyConfigBuilder_ != null) { - return networkPolicyConfigBuilder_.getMessageOrBuilder(); - } else { - return networkPolicyConfig_ == null - ? com.google.container.v1.NetworkPolicyConfig.getDefaultInstance() - : networkPolicyConfig_; - } - } - /** - * - * - *
-     * Configuration for NetworkPolicy. This only tracks whether the addon
-     * is enabled or not on the Master, it does not track whether network policy
-     * is enabled for the nodes.
-     * 
- * - * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkPolicyConfig, - com.google.container.v1.NetworkPolicyConfig.Builder, - com.google.container.v1.NetworkPolicyConfigOrBuilder> - getNetworkPolicyConfigFieldBuilder() { - if (networkPolicyConfigBuilder_ == null) { - networkPolicyConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkPolicyConfig, - com.google.container.v1.NetworkPolicyConfig.Builder, - com.google.container.v1.NetworkPolicyConfigOrBuilder>( - getNetworkPolicyConfig(), getParentForChildren(), isClean()); - networkPolicyConfig_ = null; - } - return networkPolicyConfigBuilder_; - } - - private com.google.container.v1.CloudRunConfig cloudRunConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.CloudRunConfig, - com.google.container.v1.CloudRunConfig.Builder, - com.google.container.v1.CloudRunConfigOrBuilder> - cloudRunConfigBuilder_; - /** - * - * - *
-     * Configuration for the Cloud Run addon, which allows the user to use a
-     * managed Knative service.
-     * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - * - * @return Whether the cloudRunConfig field is set. - */ - public boolean hasCloudRunConfig() { - return cloudRunConfigBuilder_ != null || cloudRunConfig_ != null; - } - /** - * - * - *
-     * Configuration for the Cloud Run addon, which allows the user to use a
-     * managed Knative service.
-     * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - * - * @return The cloudRunConfig. - */ - public com.google.container.v1.CloudRunConfig getCloudRunConfig() { - if (cloudRunConfigBuilder_ == null) { - return cloudRunConfig_ == null - ? com.google.container.v1.CloudRunConfig.getDefaultInstance() - : cloudRunConfig_; - } else { - return cloudRunConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for the Cloud Run addon, which allows the user to use a
-     * managed Knative service.
-     * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - */ - public Builder setCloudRunConfig(com.google.container.v1.CloudRunConfig value) { - if (cloudRunConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cloudRunConfig_ = value; - onChanged(); - } else { - cloudRunConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for the Cloud Run addon, which allows the user to use a
-     * managed Knative service.
-     * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - */ - public Builder setCloudRunConfig( - com.google.container.v1.CloudRunConfig.Builder builderForValue) { - if (cloudRunConfigBuilder_ == null) { - cloudRunConfig_ = builderForValue.build(); - onChanged(); - } else { - cloudRunConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration for the Cloud Run addon, which allows the user to use a
-     * managed Knative service.
-     * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - */ - public Builder mergeCloudRunConfig(com.google.container.v1.CloudRunConfig value) { - if (cloudRunConfigBuilder_ == null) { - if (cloudRunConfig_ != null) { - cloudRunConfig_ = - com.google.container.v1.CloudRunConfig.newBuilder(cloudRunConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - cloudRunConfig_ = value; - } - onChanged(); - } else { - cloudRunConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for the Cloud Run addon, which allows the user to use a
-     * managed Knative service.
-     * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - */ - public Builder clearCloudRunConfig() { - if (cloudRunConfigBuilder_ == null) { - cloudRunConfig_ = null; - onChanged(); - } else { - cloudRunConfig_ = null; - cloudRunConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration for the Cloud Run addon, which allows the user to use a
-     * managed Knative service.
-     * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - */ - public com.google.container.v1.CloudRunConfig.Builder getCloudRunConfigBuilder() { - - onChanged(); - return getCloudRunConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for the Cloud Run addon, which allows the user to use a
-     * managed Knative service.
-     * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - */ - public com.google.container.v1.CloudRunConfigOrBuilder getCloudRunConfigOrBuilder() { - if (cloudRunConfigBuilder_ != null) { - return cloudRunConfigBuilder_.getMessageOrBuilder(); - } else { - return cloudRunConfig_ == null - ? com.google.container.v1.CloudRunConfig.getDefaultInstance() - : cloudRunConfig_; - } - } - /** - * - * - *
-     * Configuration for the Cloud Run addon, which allows the user to use a
-     * managed Knative service.
-     * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.CloudRunConfig, - com.google.container.v1.CloudRunConfig.Builder, - com.google.container.v1.CloudRunConfigOrBuilder> - getCloudRunConfigFieldBuilder() { - if (cloudRunConfigBuilder_ == null) { - cloudRunConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.CloudRunConfig, - com.google.container.v1.CloudRunConfig.Builder, - com.google.container.v1.CloudRunConfigOrBuilder>( - getCloudRunConfig(), getParentForChildren(), isClean()); - cloudRunConfig_ = null; - } - return cloudRunConfigBuilder_; - } - - private com.google.container.v1.DnsCacheConfig dnsCacheConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DnsCacheConfig, - com.google.container.v1.DnsCacheConfig.Builder, - com.google.container.v1.DnsCacheConfigOrBuilder> - dnsCacheConfigBuilder_; - /** - * - * - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - * - * @return Whether the dnsCacheConfig field is set. - */ - public boolean hasDnsCacheConfig() { - return dnsCacheConfigBuilder_ != null || dnsCacheConfig_ != null; - } - /** - * - * - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - * - * @return The dnsCacheConfig. - */ - public com.google.container.v1.DnsCacheConfig getDnsCacheConfig() { - if (dnsCacheConfigBuilder_ == null) { - return dnsCacheConfig_ == null - ? com.google.container.v1.DnsCacheConfig.getDefaultInstance() - : dnsCacheConfig_; - } else { - return dnsCacheConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - public Builder setDnsCacheConfig(com.google.container.v1.DnsCacheConfig value) { - if (dnsCacheConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dnsCacheConfig_ = value; - onChanged(); - } else { - dnsCacheConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - public Builder setDnsCacheConfig( - com.google.container.v1.DnsCacheConfig.Builder builderForValue) { - if (dnsCacheConfigBuilder_ == null) { - dnsCacheConfig_ = builderForValue.build(); - onChanged(); - } else { - dnsCacheConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - public Builder mergeDnsCacheConfig(com.google.container.v1.DnsCacheConfig value) { - if (dnsCacheConfigBuilder_ == null) { - if (dnsCacheConfig_ != null) { - dnsCacheConfig_ = - com.google.container.v1.DnsCacheConfig.newBuilder(dnsCacheConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - dnsCacheConfig_ = value; - } - onChanged(); - } else { - dnsCacheConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - public Builder clearDnsCacheConfig() { - if (dnsCacheConfigBuilder_ == null) { - dnsCacheConfig_ = null; - onChanged(); - } else { - dnsCacheConfig_ = null; - dnsCacheConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - public com.google.container.v1.DnsCacheConfig.Builder getDnsCacheConfigBuilder() { - - onChanged(); - return getDnsCacheConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - public com.google.container.v1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder() { - if (dnsCacheConfigBuilder_ != null) { - return dnsCacheConfigBuilder_.getMessageOrBuilder(); - } else { - return dnsCacheConfig_ == null - ? com.google.container.v1.DnsCacheConfig.getDefaultInstance() - : dnsCacheConfig_; - } - } - /** - * - * - *
-     * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-     * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DnsCacheConfig, - com.google.container.v1.DnsCacheConfig.Builder, - com.google.container.v1.DnsCacheConfigOrBuilder> - getDnsCacheConfigFieldBuilder() { - if (dnsCacheConfigBuilder_ == null) { - dnsCacheConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DnsCacheConfig, - com.google.container.v1.DnsCacheConfig.Builder, - com.google.container.v1.DnsCacheConfigOrBuilder>( - getDnsCacheConfig(), getParentForChildren(), isClean()); - dnsCacheConfig_ = null; - } - return dnsCacheConfigBuilder_; - } - - private com.google.container.v1.ConfigConnectorConfig configConnectorConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ConfigConnectorConfig, - com.google.container.v1.ConfigConnectorConfig.Builder, - com.google.container.v1.ConfigConnectorConfigOrBuilder> - configConnectorConfigBuilder_; - /** - * - * - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * - * @return Whether the configConnectorConfig field is set. - */ - public boolean hasConfigConnectorConfig() { - return configConnectorConfigBuilder_ != null || configConnectorConfig_ != null; - } - /** - * - * - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * - * @return The configConnectorConfig. - */ - public com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig() { - if (configConnectorConfigBuilder_ == null) { - return configConnectorConfig_ == null - ? com.google.container.v1.ConfigConnectorConfig.getDefaultInstance() - : configConnectorConfig_; - } else { - return configConnectorConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - public Builder setConfigConnectorConfig(com.google.container.v1.ConfigConnectorConfig value) { - if (configConnectorConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - configConnectorConfig_ = value; - onChanged(); - } else { - configConnectorConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - public Builder setConfigConnectorConfig( - com.google.container.v1.ConfigConnectorConfig.Builder builderForValue) { - if (configConnectorConfigBuilder_ == null) { - configConnectorConfig_ = builderForValue.build(); - onChanged(); - } else { - configConnectorConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - public Builder mergeConfigConnectorConfig(com.google.container.v1.ConfigConnectorConfig value) { - if (configConnectorConfigBuilder_ == null) { - if (configConnectorConfig_ != null) { - configConnectorConfig_ = - com.google.container.v1.ConfigConnectorConfig.newBuilder(configConnectorConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - configConnectorConfig_ = value; - } - onChanged(); - } else { - configConnectorConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - public Builder clearConfigConnectorConfig() { - if (configConnectorConfigBuilder_ == null) { - configConnectorConfig_ = null; - onChanged(); - } else { - configConnectorConfig_ = null; - configConnectorConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - public com.google.container.v1.ConfigConnectorConfig.Builder getConfigConnectorConfigBuilder() { - - onChanged(); - return getConfigConnectorConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - public com.google.container.v1.ConfigConnectorConfigOrBuilder - getConfigConnectorConfigOrBuilder() { - if (configConnectorConfigBuilder_ != null) { - return configConnectorConfigBuilder_.getMessageOrBuilder(); - } else { - return configConnectorConfig_ == null - ? com.google.container.v1.ConfigConnectorConfig.getDefaultInstance() - : configConnectorConfig_; - } - } - /** - * - * - *
-     * Configuration for the ConfigConnector add-on, a Kubernetes
-     * extension to manage hosted GCP services through the Kubernetes API
-     * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ConfigConnectorConfig, - com.google.container.v1.ConfigConnectorConfig.Builder, - com.google.container.v1.ConfigConnectorConfigOrBuilder> - getConfigConnectorConfigFieldBuilder() { - if (configConnectorConfigBuilder_ == null) { - configConnectorConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ConfigConnectorConfig, - com.google.container.v1.ConfigConnectorConfig.Builder, - com.google.container.v1.ConfigConnectorConfigOrBuilder>( - getConfigConnectorConfig(), getParentForChildren(), isClean()); - configConnectorConfig_ = null; - } - return configConnectorConfigBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.AddonsConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.AddonsConfig) - private static final com.google.container.v1.AddonsConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.AddonsConfig(); - } - - public static com.google.container.v1.AddonsConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddonsConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddonsConfig(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.container.v1.AddonsConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java deleted file mode 100644 index bd48987b..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java +++ /dev/null @@ -1,309 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface AddonsConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.AddonsConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Configuration for the HTTP (L7) load balancing controller addon, which
-   * makes it easy to set up HTTP load balancers for services in a cluster.
-   * 
- * - * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - * - * @return Whether the httpLoadBalancing field is set. - */ - boolean hasHttpLoadBalancing(); - /** - * - * - *
-   * Configuration for the HTTP (L7) load balancing controller addon, which
-   * makes it easy to set up HTTP load balancers for services in a cluster.
-   * 
- * - * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - * - * @return The httpLoadBalancing. - */ - com.google.container.v1.HttpLoadBalancing getHttpLoadBalancing(); - /** - * - * - *
-   * Configuration for the HTTP (L7) load balancing controller addon, which
-   * makes it easy to set up HTTP load balancers for services in a cluster.
-   * 
- * - * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - */ - com.google.container.v1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOrBuilder(); - - /** - * - * - *
-   * Configuration for the horizontal pod autoscaling feature, which
-   * increases or decreases the number of replica pods a replication controller
-   * has based on the resource usage of the existing pods.
-   * 
- * - * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * - * @return Whether the horizontalPodAutoscaling field is set. - */ - boolean hasHorizontalPodAutoscaling(); - /** - * - * - *
-   * Configuration for the horizontal pod autoscaling feature, which
-   * increases or decreases the number of replica pods a replication controller
-   * has based on the resource usage of the existing pods.
-   * 
- * - * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * - * @return The horizontalPodAutoscaling. - */ - com.google.container.v1.HorizontalPodAutoscaling getHorizontalPodAutoscaling(); - /** - * - * - *
-   * Configuration for the horizontal pod autoscaling feature, which
-   * increases or decreases the number of replica pods a replication controller
-   * has based on the resource usage of the existing pods.
-   * 
- * - * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - com.google.container.v1.HorizontalPodAutoscalingOrBuilder getHorizontalPodAutoscalingOrBuilder(); - - /** - * - * - *
-   * Configuration for the Kubernetes Dashboard.
-   * This addon is deprecated, and will be disabled in 1.15. It is recommended
-   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-   * workloads and applications. For more information, see:
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-   * 
- * - * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - * - * @return Whether the kubernetesDashboard field is set. - */ - @java.lang.Deprecated - boolean hasKubernetesDashboard(); - /** - * - * - *
-   * Configuration for the Kubernetes Dashboard.
-   * This addon is deprecated, and will be disabled in 1.15. It is recommended
-   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-   * workloads and applications. For more information, see:
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-   * 
- * - * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - * - * @return The kubernetesDashboard. - */ - @java.lang.Deprecated - com.google.container.v1.KubernetesDashboard getKubernetesDashboard(); - /** - * - * - *
-   * Configuration for the Kubernetes Dashboard.
-   * This addon is deprecated, and will be disabled in 1.15. It is recommended
-   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
-   * workloads and applications. For more information, see:
-   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
-   * 
- * - * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * - */ - @java.lang.Deprecated - com.google.container.v1.KubernetesDashboardOrBuilder getKubernetesDashboardOrBuilder(); - - /** - * - * - *
-   * Configuration for NetworkPolicy. This only tracks whether the addon
-   * is enabled or not on the Master, it does not track whether network policy
-   * is enabled for the nodes.
-   * 
- * - * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - * - * @return Whether the networkPolicyConfig field is set. - */ - boolean hasNetworkPolicyConfig(); - /** - * - * - *
-   * Configuration for NetworkPolicy. This only tracks whether the addon
-   * is enabled or not on the Master, it does not track whether network policy
-   * is enabled for the nodes.
-   * 
- * - * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - * - * @return The networkPolicyConfig. - */ - com.google.container.v1.NetworkPolicyConfig getNetworkPolicyConfig(); - /** - * - * - *
-   * Configuration for NetworkPolicy. This only tracks whether the addon
-   * is enabled or not on the Master, it does not track whether network policy
-   * is enabled for the nodes.
-   * 
- * - * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - */ - com.google.container.v1.NetworkPolicyConfigOrBuilder getNetworkPolicyConfigOrBuilder(); - - /** - * - * - *
-   * Configuration for the Cloud Run addon, which allows the user to use a
-   * managed Knative service.
-   * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - * - * @return Whether the cloudRunConfig field is set. - */ - boolean hasCloudRunConfig(); - /** - * - * - *
-   * Configuration for the Cloud Run addon, which allows the user to use a
-   * managed Knative service.
-   * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - * - * @return The cloudRunConfig. - */ - com.google.container.v1.CloudRunConfig getCloudRunConfig(); - /** - * - * - *
-   * Configuration for the Cloud Run addon, which allows the user to use a
-   * managed Knative service.
-   * 
- * - * .google.container.v1.CloudRunConfig cloud_run_config = 7; - */ - com.google.container.v1.CloudRunConfigOrBuilder getCloudRunConfigOrBuilder(); - - /** - * - * - *
-   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-   * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - * - * @return Whether the dnsCacheConfig field is set. - */ - boolean hasDnsCacheConfig(); - /** - * - * - *
-   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-   * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - * - * @return The dnsCacheConfig. - */ - com.google.container.v1.DnsCacheConfig getDnsCacheConfig(); - /** - * - * - *
-   * Configuration for NodeLocalDNS, a dns cache running on cluster nodes
-   * 
- * - * .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - com.google.container.v1.DnsCacheConfigOrBuilder getDnsCacheConfigOrBuilder(); - - /** - * - * - *
-   * Configuration for the ConfigConnector add-on, a Kubernetes
-   * extension to manage hosted GCP services through the Kubernetes API
-   * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * - * @return Whether the configConnectorConfig field is set. - */ - boolean hasConfigConnectorConfig(); - /** - * - * - *
-   * Configuration for the ConfigConnector add-on, a Kubernetes
-   * extension to manage hosted GCP services through the Kubernetes API
-   * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * - * @return The configConnectorConfig. - */ - com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig(); - /** - * - * - *
-   * Configuration for the ConfigConnector add-on, a Kubernetes
-   * extension to manage hosted GCP services through the Kubernetes API
-   * 
- * - * .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - com.google.container.v1.ConfigConnectorConfigOrBuilder getConfigConnectorConfigOrBuilder(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfig.java deleted file mode 100644 index e8a95fd8..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfig.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Configuration for returning group information from authenticators.
- * 
- * - * Protobuf type {@code google.container.v1.AuthenticatorGroupsConfig} - */ -public final class AuthenticatorGroupsConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.AuthenticatorGroupsConfig) - AuthenticatorGroupsConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use AuthenticatorGroupsConfig.newBuilder() to construct. - private AuthenticatorGroupsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AuthenticatorGroupsConfig() { - securityGroup_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AuthenticatorGroupsConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private AuthenticatorGroupsConfig( - 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: - { - enabled_ = input.readBool(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - securityGroup_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AuthenticatorGroupsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AuthenticatorGroupsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AuthenticatorGroupsConfig.class, - com.google.container.v1.AuthenticatorGroupsConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - * - * - *
-   * Whether this cluster should return group membership lookups
-   * during authentication using a group of security groups.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - public static final int SECURITY_GROUP_FIELD_NUMBER = 2; - private volatile java.lang.Object securityGroup_; - /** - * - * - *
-   * The name of the security group-of-groups to be used. Only relevant
-   * if enabled = true.
-   * 
- * - * string security_group = 2; - * - * @return The securityGroup. - */ - @java.lang.Override - public java.lang.String getSecurityGroup() { - java.lang.Object ref = securityGroup_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - securityGroup_ = s; - return s; - } - } - /** - * - * - *
-   * The name of the security group-of-groups to be used. Only relevant
-   * if enabled = true.
-   * 
- * - * string security_group = 2; - * - * @return The bytes for securityGroup. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSecurityGroupBytes() { - java.lang.Object ref = securityGroup_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - securityGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - if (!getSecurityGroupBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, securityGroup_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); - } - if (!getSecurityGroupBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, securityGroup_); - } - 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.container.v1.AuthenticatorGroupsConfig)) { - return super.equals(obj); - } - com.google.container.v1.AuthenticatorGroupsConfig other = - (com.google.container.v1.AuthenticatorGroupsConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getSecurityGroup().equals(other.getSecurityGroup())) 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) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); - hash = (37 * hash) + SECURITY_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getSecurityGroup().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.AuthenticatorGroupsConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AuthenticatorGroupsConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AuthenticatorGroupsConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AuthenticatorGroupsConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AuthenticatorGroupsConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AuthenticatorGroupsConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AuthenticatorGroupsConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.AuthenticatorGroupsConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.AuthenticatorGroupsConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.AuthenticatorGroupsConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.AuthenticatorGroupsConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.AuthenticatorGroupsConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.AuthenticatorGroupsConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 returning group information from authenticators.
-   * 
- * - * Protobuf type {@code google.container.v1.AuthenticatorGroupsConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.AuthenticatorGroupsConfig) - com.google.container.v1.AuthenticatorGroupsConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AuthenticatorGroupsConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AuthenticatorGroupsConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AuthenticatorGroupsConfig.class, - com.google.container.v1.AuthenticatorGroupsConfig.Builder.class); - } - - // Construct using com.google.container.v1.AuthenticatorGroupsConfig.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(); - enabled_ = false; - - securityGroup_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AuthenticatorGroupsConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.AuthenticatorGroupsConfig getDefaultInstanceForType() { - return com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.AuthenticatorGroupsConfig build() { - com.google.container.v1.AuthenticatorGroupsConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.AuthenticatorGroupsConfig buildPartial() { - com.google.container.v1.AuthenticatorGroupsConfig result = - new com.google.container.v1.AuthenticatorGroupsConfig(this); - result.enabled_ = enabled_; - result.securityGroup_ = securityGroup_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.AuthenticatorGroupsConfig) { - return mergeFrom((com.google.container.v1.AuthenticatorGroupsConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.AuthenticatorGroupsConfig other) { - if (other == com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (!other.getSecurityGroup().isEmpty()) { - securityGroup_ = other.securityGroup_; - 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.container.v1.AuthenticatorGroupsConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.container.v1.AuthenticatorGroupsConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean enabled_; - /** - * - * - *
-     * Whether this cluster should return group membership lookups
-     * during authentication using a group of security groups.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether this cluster should return group membership lookups
-     * during authentication using a group of security groups.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether this cluster should return group membership lookups
-     * during authentication using a group of security groups.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - - private java.lang.Object securityGroup_ = ""; - /** - * - * - *
-     * The name of the security group-of-groups to be used. Only relevant
-     * if enabled = true.
-     * 
- * - * string security_group = 2; - * - * @return The securityGroup. - */ - public java.lang.String getSecurityGroup() { - java.lang.Object ref = securityGroup_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - securityGroup_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the security group-of-groups to be used. Only relevant
-     * if enabled = true.
-     * 
- * - * string security_group = 2; - * - * @return The bytes for securityGroup. - */ - public com.google.protobuf.ByteString getSecurityGroupBytes() { - java.lang.Object ref = securityGroup_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - securityGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the security group-of-groups to be used. Only relevant
-     * if enabled = true.
-     * 
- * - * string security_group = 2; - * - * @param value The securityGroup to set. - * @return This builder for chaining. - */ - public Builder setSecurityGroup(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - securityGroup_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the security group-of-groups to be used. Only relevant
-     * if enabled = true.
-     * 
- * - * string security_group = 2; - * - * @return This builder for chaining. - */ - public Builder clearSecurityGroup() { - - securityGroup_ = getDefaultInstance().getSecurityGroup(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the security group-of-groups to be used. Only relevant
-     * if enabled = true.
-     * 
- * - * string security_group = 2; - * - * @param value The bytes for securityGroup to set. - * @return This builder for chaining. - */ - public Builder setSecurityGroupBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - securityGroup_ = 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.container.v1.AuthenticatorGroupsConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.AuthenticatorGroupsConfig) - private static final com.google.container.v1.AuthenticatorGroupsConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.AuthenticatorGroupsConfig(); - } - - public static com.google.container.v1.AuthenticatorGroupsConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuthenticatorGroupsConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthenticatorGroupsConfig(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.container.v1.AuthenticatorGroupsConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfigOrBuilder.java deleted file mode 100644 index 2335da04..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfigOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface AuthenticatorGroupsConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.AuthenticatorGroupsConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether this cluster should return group membership lookups
-   * during authentication using a group of security groups.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); - - /** - * - * - *
-   * The name of the security group-of-groups to be used. Only relevant
-   * if enabled = true.
-   * 
- * - * string security_group = 2; - * - * @return The securityGroup. - */ - java.lang.String getSecurityGroup(); - /** - * - * - *
-   * The name of the security group-of-groups to be used. Only relevant
-   * if enabled = true.
-   * 
- * - * string security_group = 2; - * - * @return The bytes for securityGroup. - */ - com.google.protobuf.ByteString getSecurityGroupBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptions.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptions.java deleted file mode 100644 index f3b0b564..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptions.java +++ /dev/null @@ -1,836 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * AutoUpgradeOptions defines the set of options for the user to control how
- * the Auto Upgrades will proceed.
- * 
- * - * Protobuf type {@code google.container.v1.AutoUpgradeOptions} - */ -public final class AutoUpgradeOptions extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.AutoUpgradeOptions) - AutoUpgradeOptionsOrBuilder { - private static final long serialVersionUID = 0L; - // Use AutoUpgradeOptions.newBuilder() to construct. - private AutoUpgradeOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AutoUpgradeOptions() { - autoUpgradeStartTime_ = ""; - description_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AutoUpgradeOptions(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private AutoUpgradeOptions( - 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(); - - autoUpgradeStartTime_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutoUpgradeOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutoUpgradeOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AutoUpgradeOptions.class, - com.google.container.v1.AutoUpgradeOptions.Builder.class); - } - - public static final int AUTO_UPGRADE_START_TIME_FIELD_NUMBER = 1; - private volatile java.lang.Object autoUpgradeStartTime_; - /** - * - * - *
-   * [Output only] This field is set when upgrades are about to commence
-   * with the approximate start time for the upgrades, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string auto_upgrade_start_time = 1; - * - * @return The autoUpgradeStartTime. - */ - @java.lang.Override - public java.lang.String getAutoUpgradeStartTime() { - java.lang.Object ref = autoUpgradeStartTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - autoUpgradeStartTime_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] This field is set when upgrades are about to commence
-   * with the approximate start time for the upgrades, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string auto_upgrade_start_time = 1; - * - * @return The bytes for autoUpgradeStartTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes() { - java.lang.Object ref = autoUpgradeStartTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - autoUpgradeStartTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - * - * - *
-   * [Output only] This field is set when upgrades are about to commence
-   * with the description of the upgrade.
-   * 
- * - * string description = 2; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] This field is set when upgrades are about to commence
-   * with the description of the upgrade.
-   * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getAutoUpgradeStartTimeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, autoUpgradeStartTime_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAutoUpgradeStartTimeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, autoUpgradeStartTime_); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - 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.container.v1.AutoUpgradeOptions)) { - return super.equals(obj); - } - com.google.container.v1.AutoUpgradeOptions other = - (com.google.container.v1.AutoUpgradeOptions) obj; - - if (!getAutoUpgradeStartTime().equals(other.getAutoUpgradeStartTime())) return false; - if (!getDescription().equals(other.getDescription())) 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) + AUTO_UPGRADE_START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getAutoUpgradeStartTime().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.AutoUpgradeOptions parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AutoUpgradeOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AutoUpgradeOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AutoUpgradeOptions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AutoUpgradeOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AutoUpgradeOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AutoUpgradeOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.AutoUpgradeOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.AutoUpgradeOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.AutoUpgradeOptions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.AutoUpgradeOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.AutoUpgradeOptions parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.AutoUpgradeOptions prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * AutoUpgradeOptions defines the set of options for the user to control how
-   * the Auto Upgrades will proceed.
-   * 
- * - * Protobuf type {@code google.container.v1.AutoUpgradeOptions} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.AutoUpgradeOptions) - com.google.container.v1.AutoUpgradeOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutoUpgradeOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutoUpgradeOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AutoUpgradeOptions.class, - com.google.container.v1.AutoUpgradeOptions.Builder.class); - } - - // Construct using com.google.container.v1.AutoUpgradeOptions.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(); - autoUpgradeStartTime_ = ""; - - description_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutoUpgradeOptions_descriptor; - } - - @java.lang.Override - public com.google.container.v1.AutoUpgradeOptions getDefaultInstanceForType() { - return com.google.container.v1.AutoUpgradeOptions.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.AutoUpgradeOptions build() { - com.google.container.v1.AutoUpgradeOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.AutoUpgradeOptions buildPartial() { - com.google.container.v1.AutoUpgradeOptions result = - new com.google.container.v1.AutoUpgradeOptions(this); - result.autoUpgradeStartTime_ = autoUpgradeStartTime_; - result.description_ = description_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.AutoUpgradeOptions) { - return mergeFrom((com.google.container.v1.AutoUpgradeOptions) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.AutoUpgradeOptions other) { - if (other == com.google.container.v1.AutoUpgradeOptions.getDefaultInstance()) return this; - if (!other.getAutoUpgradeStartTime().isEmpty()) { - autoUpgradeStartTime_ = other.autoUpgradeStartTime_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - 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.container.v1.AutoUpgradeOptions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.AutoUpgradeOptions) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object autoUpgradeStartTime_ = ""; - /** - * - * - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the approximate start time for the upgrades, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string auto_upgrade_start_time = 1; - * - * @return The autoUpgradeStartTime. - */ - public java.lang.String getAutoUpgradeStartTime() { - java.lang.Object ref = autoUpgradeStartTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - autoUpgradeStartTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the approximate start time for the upgrades, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string auto_upgrade_start_time = 1; - * - * @return The bytes for autoUpgradeStartTime. - */ - public com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes() { - java.lang.Object ref = autoUpgradeStartTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - autoUpgradeStartTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the approximate start time for the upgrades, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string auto_upgrade_start_time = 1; - * - * @param value The autoUpgradeStartTime to set. - * @return This builder for chaining. - */ - public Builder setAutoUpgradeStartTime(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - autoUpgradeStartTime_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the approximate start time for the upgrades, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string auto_upgrade_start_time = 1; - * - * @return This builder for chaining. - */ - public Builder clearAutoUpgradeStartTime() { - - autoUpgradeStartTime_ = getDefaultInstance().getAutoUpgradeStartTime(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the approximate start time for the upgrades, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string auto_upgrade_start_time = 1; - * - * @param value The bytes for autoUpgradeStartTime to set. - * @return This builder for chaining. - */ - public Builder setAutoUpgradeStartTimeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - autoUpgradeStartTime_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the description of the upgrade.
-     * 
- * - * string description = 2; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the description of the upgrade.
-     * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the description of the upgrade.
-     * 
- * - * string description = 2; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the description of the upgrade.
-     * 
- * - * string description = 2; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] This field is set when upgrades are about to commence
-     * with the description of the upgrade.
-     * 
- * - * string description = 2; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - 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.container.v1.AutoUpgradeOptions) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.AutoUpgradeOptions) - private static final com.google.container.v1.AutoUpgradeOptions DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.AutoUpgradeOptions(); - } - - public static com.google.container.v1.AutoUpgradeOptions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutoUpgradeOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AutoUpgradeOptions(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.container.v1.AutoUpgradeOptions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptionsOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptionsOrBuilder.java deleted file mode 100644 index 28a3e058..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptionsOrBuilder.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface AutoUpgradeOptionsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.AutoUpgradeOptions) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * [Output only] This field is set when upgrades are about to commence
-   * with the approximate start time for the upgrades, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string auto_upgrade_start_time = 1; - * - * @return The autoUpgradeStartTime. - */ - java.lang.String getAutoUpgradeStartTime(); - /** - * - * - *
-   * [Output only] This field is set when upgrades are about to commence
-   * with the approximate start time for the upgrades, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string auto_upgrade_start_time = 1; - * - * @return The bytes for autoUpgradeStartTime. - */ - com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes(); - - /** - * - * - *
-   * [Output only] This field is set when upgrades are about to commence
-   * with the description of the upgrade.
-   * 
- * - * string description = 2; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * [Output only] This field is set when upgrades are about to commence
-   * with the description of the upgrade.
-   * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java deleted file mode 100644 index b0d55ffc..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java +++ /dev/null @@ -1,2498 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * AutoprovisioningNodePoolDefaults contains defaults for a node pool created
- * by NAP.
- * 
- * - * Protobuf type {@code google.container.v1.AutoprovisioningNodePoolDefaults} - */ -public final class AutoprovisioningNodePoolDefaults extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.AutoprovisioningNodePoolDefaults) - AutoprovisioningNodePoolDefaultsOrBuilder { - private static final long serialVersionUID = 0L; - // Use AutoprovisioningNodePoolDefaults.newBuilder() to construct. - private AutoprovisioningNodePoolDefaults( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AutoprovisioningNodePoolDefaults() { - oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - serviceAccount_ = ""; - minCpuPlatform_ = ""; - diskType_ = ""; - bootDiskKmsKey_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AutoprovisioningNodePoolDefaults(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private AutoprovisioningNodePoolDefaults( - 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)) { - oauthScopes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - oauthScopes_.add(s); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - serviceAccount_ = s; - break; - } - case 26: - { - com.google.container.v1.NodePool.UpgradeSettings.Builder subBuilder = null; - if (upgradeSettings_ != null) { - subBuilder = upgradeSettings_.toBuilder(); - } - upgradeSettings_ = - input.readMessage( - com.google.container.v1.NodePool.UpgradeSettings.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(upgradeSettings_); - upgradeSettings_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.container.v1.NodeManagement.Builder subBuilder = null; - if (management_ != null) { - subBuilder = management_.toBuilder(); - } - management_ = - input.readMessage( - com.google.container.v1.NodeManagement.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(management_); - management_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - minCpuPlatform_ = s; - break; - } - case 48: - { - diskSizeGb_ = input.readInt32(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - diskType_ = s; - break; - } - case 66: - { - com.google.container.v1.ShieldedInstanceConfig.Builder subBuilder = null; - if (shieldedInstanceConfig_ != null) { - subBuilder = shieldedInstanceConfig_.toBuilder(); - } - shieldedInstanceConfig_ = - input.readMessage( - com.google.container.v1.ShieldedInstanceConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(shieldedInstanceConfig_); - shieldedInstanceConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - bootDiskKmsKey_ = 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)) { - oauthScopes_ = oauthScopes_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AutoprovisioningNodePoolDefaults.class, - com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder.class); - } - - public static final int OAUTH_SCOPES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList oauthScopes_; - /** - * - * - *
-   * Scopes that are used by NAP when creating node pools.
-   * 
- * - * repeated string oauth_scopes = 1; - * - * @return A list containing the oauthScopes. - */ - public com.google.protobuf.ProtocolStringList getOauthScopesList() { - return oauthScopes_; - } - /** - * - * - *
-   * Scopes that are used by NAP when creating node pools.
-   * 
- * - * repeated string oauth_scopes = 1; - * - * @return The count of oauthScopes. - */ - public int getOauthScopesCount() { - return oauthScopes_.size(); - } - /** - * - * - *
-   * Scopes that are used by NAP when creating node pools.
-   * 
- * - * repeated string oauth_scopes = 1; - * - * @param index The index of the element to return. - * @return The oauthScopes at the given index. - */ - public java.lang.String getOauthScopes(int index) { - return oauthScopes_.get(index); - } - /** - * - * - *
-   * Scopes that are used by NAP when creating node pools.
-   * 
- * - * repeated string oauth_scopes = 1; - * - * @param index The index of the value to return. - * @return The bytes of the oauthScopes at the given index. - */ - public com.google.protobuf.ByteString getOauthScopesBytes(int index) { - return oauthScopes_.getByteString(index); - } - - public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 2; - private volatile java.lang.Object serviceAccount_; - /** - * - * - *
-   * The Google Cloud Platform Service Account to be used by the node VMs.
-   * 
- * - * string service_account = 2; - * - * @return The serviceAccount. - */ - @java.lang.Override - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } - } - /** - * - * - *
-   * The Google Cloud Platform Service Account to be used by the node VMs.
-   * 
- * - * string service_account = 2; - * - * @return The bytes for serviceAccount. - */ - @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UPGRADE_SETTINGS_FIELD_NUMBER = 3; - private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; - /** - * - * - *
-   * Specifies the upgrade settings for NAP created node pools
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - * - * @return Whether the upgradeSettings field is set. - */ - @java.lang.Override - public boolean hasUpgradeSettings() { - return upgradeSettings_ != null; - } - /** - * - * - *
-   * Specifies the upgrade settings for NAP created node pools
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - * - * @return The upgradeSettings. - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { - return upgradeSettings_ == null - ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } - /** - * - * - *
-   * Specifies the upgrade settings for NAP created node pools
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - return getUpgradeSettings(); - } - - public static final int MANAGEMENT_FIELD_NUMBER = 4; - private com.google.container.v1.NodeManagement management_; - /** - * - * - *
-   * Specifies the node management options for NAP created node-pools.
-   * 
- * - * .google.container.v1.NodeManagement management = 4; - * - * @return Whether the management field is set. - */ - @java.lang.Override - public boolean hasManagement() { - return management_ != null; - } - /** - * - * - *
-   * Specifies the node management options for NAP created node-pools.
-   * 
- * - * .google.container.v1.NodeManagement management = 4; - * - * @return The management. - */ - @java.lang.Override - public com.google.container.v1.NodeManagement getManagement() { - return management_ == null - ? com.google.container.v1.NodeManagement.getDefaultInstance() - : management_; - } - /** - * - * - *
-   * Specifies the node management options for NAP created node-pools.
-   * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - @java.lang.Override - public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { - return getManagement(); - } - - public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 5; - private volatile java.lang.Object minCpuPlatform_; - /** - * - * - *
-   * Minimum CPU platform to be used for NAP created node pools.
-   * The instance may be scheduled on the specified or newer CPU platform.
-   * Applicable values are the friendly names of CPU platforms, such as
-   * minCpuPlatform: Intel Haswell or
-   * minCpuPlatform: Intel Sandy Bridge. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-   * To unset the min cpu platform field pass "automatic"
-   * as field value.
-   * 
- * - * string min_cpu_platform = 5; - * - * @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; - } - } - /** - * - * - *
-   * Minimum CPU platform to be used for NAP created node pools.
-   * The instance may be scheduled on the specified or newer CPU platform.
-   * Applicable values are the friendly names of CPU platforms, such as
-   * minCpuPlatform: Intel Haswell or
-   * minCpuPlatform: Intel Sandy Bridge. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-   * To unset the min cpu platform field pass "automatic"
-   * as field value.
-   * 
- * - * string min_cpu_platform = 5; - * - * @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; - } - } - - public static final int DISK_SIZE_GB_FIELD_NUMBER = 6; - private int diskSizeGb_; - /** - * - * - *
-   * Size of the disk attached to each node, specified in GB.
-   * The smallest allowed disk size is 10GB.
-   * If unspecified, the default disk size is 100GB.
-   * 
- * - * int32 disk_size_gb = 6; - * - * @return The diskSizeGb. - */ - @java.lang.Override - public int getDiskSizeGb() { - return diskSizeGb_; - } - - public static final int DISK_TYPE_FIELD_NUMBER = 7; - private volatile java.lang.Object diskType_; - /** - * - * - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 7; - * - * @return The diskType. - */ - @java.lang.Override - public java.lang.String getDiskType() { - java.lang.Object ref = diskType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - diskType_ = s; - return s; - } - } - /** - * - * - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 7; - * - * @return The bytes for diskType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDiskTypeBytes() { - java.lang.Object ref = diskType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - diskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 8; - private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * - * @return Whether the shieldedInstanceConfig field is set. - */ - @java.lang.Override - public boolean hasShieldedInstanceConfig() { - return shieldedInstanceConfig_ != null; - } - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * - * @return The shieldedInstanceConfig. - */ - @java.lang.Override - public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null - ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; - } - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - @java.lang.Override - public com.google.container.v1.ShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder() { - return getShieldedInstanceConfig(); - } - - public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 9; - private volatile java.lang.Object bootDiskKmsKey_; - /** - * - * - *
-   * The Customer Managed Encryption Key used to encrypt the boot disk attached
-   * to each node in the node pool. This should be of the form
-   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-   * For more information about protecting resources with Cloud KMS Keys please
-   * see:
-   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-   * 
- * - * string boot_disk_kms_key = 9; - * - * @return The bootDiskKmsKey. - */ - @java.lang.Override - public java.lang.String getBootDiskKmsKey() { - java.lang.Object ref = bootDiskKmsKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bootDiskKmsKey_ = s; - return s; - } - } - /** - * - * - *
-   * The Customer Managed Encryption Key used to encrypt the boot disk attached
-   * to each node in the node pool. This should be of the form
-   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-   * For more information about protecting resources with Cloud KMS Keys please
-   * see:
-   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-   * 
- * - * string boot_disk_kms_key = 9; - * - * @return The bytes for bootDiskKmsKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { - java.lang.Object ref = bootDiskKmsKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bootDiskKmsKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 < oauthScopes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oauthScopes_.getRaw(i)); - } - if (!getServiceAccountBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); - } - if (upgradeSettings_ != null) { - output.writeMessage(3, getUpgradeSettings()); - } - if (management_ != null) { - output.writeMessage(4, getManagement()); - } - if (!getMinCpuPlatformBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, minCpuPlatform_); - } - if (diskSizeGb_ != 0) { - output.writeInt32(6, diskSizeGb_); - } - if (!getDiskTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, diskType_); - } - if (shieldedInstanceConfig_ != null) { - output.writeMessage(8, getShieldedInstanceConfig()); - } - if (!getBootDiskKmsKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, bootDiskKmsKey_); - } - 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 < oauthScopes_.size(); i++) { - dataSize += computeStringSizeNoTag(oauthScopes_.getRaw(i)); - } - size += dataSize; - size += 1 * getOauthScopesList().size(); - } - if (!getServiceAccountBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceAccount_); - } - if (upgradeSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpgradeSettings()); - } - if (management_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getManagement()); - } - if (!getMinCpuPlatformBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, minCpuPlatform_); - } - if (diskSizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, diskSizeGb_); - } - if (!getDiskTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, diskType_); - } - if (shieldedInstanceConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(8, getShieldedInstanceConfig()); - } - if (!getBootDiskKmsKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, bootDiskKmsKey_); - } - 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.container.v1.AutoprovisioningNodePoolDefaults)) { - return super.equals(obj); - } - com.google.container.v1.AutoprovisioningNodePoolDefaults other = - (com.google.container.v1.AutoprovisioningNodePoolDefaults) obj; - - if (!getOauthScopesList().equals(other.getOauthScopesList())) return false; - if (!getServiceAccount().equals(other.getServiceAccount())) return false; - if (hasUpgradeSettings() != other.hasUpgradeSettings()) return false; - if (hasUpgradeSettings()) { - if (!getUpgradeSettings().equals(other.getUpgradeSettings())) return false; - } - if (hasManagement() != other.hasManagement()) return false; - if (hasManagement()) { - if (!getManagement().equals(other.getManagement())) return false; - } - if (!getMinCpuPlatform().equals(other.getMinCpuPlatform())) return false; - if (getDiskSizeGb() != other.getDiskSizeGb()) return false; - if (!getDiskType().equals(other.getDiskType())) return false; - if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; - if (hasShieldedInstanceConfig()) { - if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; - } - if (!getBootDiskKmsKey().equals(other.getBootDiskKmsKey())) 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 (getOauthScopesCount() > 0) { - hash = (37 * hash) + OAUTH_SCOPES_FIELD_NUMBER; - hash = (53 * hash) + getOauthScopesList().hashCode(); - } - hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getServiceAccount().hashCode(); - if (hasUpgradeSettings()) { - hash = (37 * hash) + UPGRADE_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getUpgradeSettings().hashCode(); - } - if (hasManagement()) { - hash = (37 * hash) + MANAGEMENT_FIELD_NUMBER; - hash = (53 * hash) + getManagement().hashCode(); - } - hash = (37 * hash) + MIN_CPU_PLATFORM_FIELD_NUMBER; - hash = (53 * hash) + getMinCpuPlatform().hashCode(); - hash = (37 * hash) + DISK_SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + getDiskSizeGb(); - hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getDiskType().hashCode(); - if (hasShieldedInstanceConfig()) { - hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); - } - hash = (37 * hash) + BOOT_DISK_KMS_KEY_FIELD_NUMBER; - hash = (53 * hash) + getBootDiskKmsKey().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.AutoprovisioningNodePoolDefaults prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * AutoprovisioningNodePoolDefaults contains defaults for a node pool created
-   * by NAP.
-   * 
- * - * Protobuf type {@code google.container.v1.AutoprovisioningNodePoolDefaults} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.AutoprovisioningNodePoolDefaults) - com.google.container.v1.AutoprovisioningNodePoolDefaultsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.AutoprovisioningNodePoolDefaults.class, - com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder.class); - } - - // Construct using com.google.container.v1.AutoprovisioningNodePoolDefaults.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(); - oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - serviceAccount_ = ""; - - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = null; - } else { - upgradeSettings_ = null; - upgradeSettingsBuilder_ = null; - } - if (managementBuilder_ == null) { - management_ = null; - } else { - management_ = null; - managementBuilder_ = null; - } - minCpuPlatform_ = ""; - - diskSizeGb_ = 0; - - diskType_ = ""; - - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = null; - } else { - shieldedInstanceConfig_ = null; - shieldedInstanceConfigBuilder_ = null; - } - bootDiskKmsKey_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_descriptor; - } - - @java.lang.Override - public com.google.container.v1.AutoprovisioningNodePoolDefaults getDefaultInstanceForType() { - return com.google.container.v1.AutoprovisioningNodePoolDefaults.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.AutoprovisioningNodePoolDefaults build() { - com.google.container.v1.AutoprovisioningNodePoolDefaults result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.AutoprovisioningNodePoolDefaults buildPartial() { - com.google.container.v1.AutoprovisioningNodePoolDefaults result = - new com.google.container.v1.AutoprovisioningNodePoolDefaults(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - oauthScopes_ = oauthScopes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.oauthScopes_ = oauthScopes_; - result.serviceAccount_ = serviceAccount_; - if (upgradeSettingsBuilder_ == null) { - result.upgradeSettings_ = upgradeSettings_; - } else { - result.upgradeSettings_ = upgradeSettingsBuilder_.build(); - } - if (managementBuilder_ == null) { - result.management_ = management_; - } else { - result.management_ = managementBuilder_.build(); - } - result.minCpuPlatform_ = minCpuPlatform_; - result.diskSizeGb_ = diskSizeGb_; - result.diskType_ = diskType_; - if (shieldedInstanceConfigBuilder_ == null) { - result.shieldedInstanceConfig_ = shieldedInstanceConfig_; - } else { - result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_.build(); - } - result.bootDiskKmsKey_ = bootDiskKmsKey_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.AutoprovisioningNodePoolDefaults) { - return mergeFrom((com.google.container.v1.AutoprovisioningNodePoolDefaults) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.AutoprovisioningNodePoolDefaults other) { - if (other == com.google.container.v1.AutoprovisioningNodePoolDefaults.getDefaultInstance()) - return this; - if (!other.oauthScopes_.isEmpty()) { - if (oauthScopes_.isEmpty()) { - oauthScopes_ = other.oauthScopes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOauthScopesIsMutable(); - oauthScopes_.addAll(other.oauthScopes_); - } - onChanged(); - } - if (!other.getServiceAccount().isEmpty()) { - serviceAccount_ = other.serviceAccount_; - onChanged(); - } - if (other.hasUpgradeSettings()) { - mergeUpgradeSettings(other.getUpgradeSettings()); - } - if (other.hasManagement()) { - mergeManagement(other.getManagement()); - } - if (!other.getMinCpuPlatform().isEmpty()) { - minCpuPlatform_ = other.minCpuPlatform_; - onChanged(); - } - if (other.getDiskSizeGb() != 0) { - setDiskSizeGb(other.getDiskSizeGb()); - } - if (!other.getDiskType().isEmpty()) { - diskType_ = other.diskType_; - onChanged(); - } - if (other.hasShieldedInstanceConfig()) { - mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); - } - if (!other.getBootDiskKmsKey().isEmpty()) { - bootDiskKmsKey_ = other.bootDiskKmsKey_; - 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.container.v1.AutoprovisioningNodePoolDefaults parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.container.v1.AutoprovisioningNodePoolDefaults) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.protobuf.LazyStringList oauthScopes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureOauthScopesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Scopes that are used by NAP when creating node pools.
-     * 
- * - * repeated string oauth_scopes = 1; - * - * @return A list containing the oauthScopes. - */ - public com.google.protobuf.ProtocolStringList getOauthScopesList() { - return oauthScopes_.getUnmodifiableView(); - } - /** - * - * - *
-     * Scopes that are used by NAP when creating node pools.
-     * 
- * - * repeated string oauth_scopes = 1; - * - * @return The count of oauthScopes. - */ - public int getOauthScopesCount() { - return oauthScopes_.size(); - } - /** - * - * - *
-     * Scopes that are used by NAP when creating node pools.
-     * 
- * - * repeated string oauth_scopes = 1; - * - * @param index The index of the element to return. - * @return The oauthScopes at the given index. - */ - public java.lang.String getOauthScopes(int index) { - return oauthScopes_.get(index); - } - /** - * - * - *
-     * Scopes that are used by NAP when creating node pools.
-     * 
- * - * repeated string oauth_scopes = 1; - * - * @param index The index of the value to return. - * @return The bytes of the oauthScopes at the given index. - */ - public com.google.protobuf.ByteString getOauthScopesBytes(int index) { - return oauthScopes_.getByteString(index); - } - /** - * - * - *
-     * Scopes that are used by NAP when creating node pools.
-     * 
- * - * repeated string oauth_scopes = 1; - * - * @param index The index to set the value at. - * @param value The oauthScopes to set. - * @return This builder for chaining. - */ - public Builder setOauthScopes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOauthScopesIsMutable(); - oauthScopes_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Scopes that are used by NAP when creating node pools.
-     * 
- * - * repeated string oauth_scopes = 1; - * - * @param value The oauthScopes to add. - * @return This builder for chaining. - */ - public Builder addOauthScopes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOauthScopesIsMutable(); - oauthScopes_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Scopes that are used by NAP when creating node pools.
-     * 
- * - * repeated string oauth_scopes = 1; - * - * @param values The oauthScopes to add. - * @return This builder for chaining. - */ - public Builder addAllOauthScopes(java.lang.Iterable values) { - ensureOauthScopesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oauthScopes_); - onChanged(); - return this; - } - /** - * - * - *
-     * Scopes that are used by NAP when creating node pools.
-     * 
- * - * repeated string oauth_scopes = 1; - * - * @return This builder for chaining. - */ - public Builder clearOauthScopes() { - oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Scopes that are used by NAP when creating node pools.
-     * 
- * - * repeated string oauth_scopes = 1; - * - * @param value The bytes of the oauthScopes to add. - * @return This builder for chaining. - */ - public Builder addOauthScopesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureOauthScopesIsMutable(); - oauthScopes_.add(value); - onChanged(); - return this; - } - - private java.lang.Object serviceAccount_ = ""; - /** - * - * - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * 
- * - * string service_account = 2; - * - * @return The serviceAccount. - */ - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * 
- * - * string service_account = 2; - * - * @return The bytes for serviceAccount. - */ - public com.google.protobuf.ByteString getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * 
- * - * string service_account = 2; - * - * @param value The serviceAccount to set. - * @return This builder for chaining. - */ - public Builder setServiceAccount(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serviceAccount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * 
- * - * string service_account = 2; - * - * @return This builder for chaining. - */ - public Builder clearServiceAccount() { - - serviceAccount_ = getDefaultInstance().getServiceAccount(); - onChanged(); - return this; - } - /** - * - * - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * 
- * - * string service_account = 2; - * - * @param value The bytes for serviceAccount to set. - * @return This builder for chaining. - */ - public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serviceAccount_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, - com.google.container.v1.NodePool.UpgradeSettings.Builder, - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> - upgradeSettingsBuilder_; - /** - * - * - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - * - * @return Whether the upgradeSettings field is set. - */ - public boolean hasUpgradeSettings() { - return upgradeSettingsBuilder_ != null || upgradeSettings_ != null; - } - /** - * - * - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - * - * @return The upgradeSettings. - */ - public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { - if (upgradeSettingsBuilder_ == null) { - return upgradeSettings_ == null - ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } else { - return upgradeSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public Builder setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - upgradeSettings_ = value; - onChanged(); - } else { - upgradeSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public Builder setUpgradeSettings( - com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue) { - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = builderForValue.build(); - onChanged(); - } else { - upgradeSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public Builder mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (upgradeSettings_ != null) { - upgradeSettings_ = - com.google.container.v1.NodePool.UpgradeSettings.newBuilder(upgradeSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - upgradeSettings_ = value; - } - onChanged(); - } else { - upgradeSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public Builder clearUpgradeSettings() { - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = null; - onChanged(); - } else { - upgradeSettings_ = null; - upgradeSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public com.google.container.v1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { - - onChanged(); - return getUpgradeSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - if (upgradeSettingsBuilder_ != null) { - return upgradeSettingsBuilder_.getMessageOrBuilder(); - } else { - return upgradeSettings_ == null - ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } - } - /** - * - * - *
-     * Specifies the upgrade settings for NAP created node pools
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, - com.google.container.v1.NodePool.UpgradeSettings.Builder, - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> - getUpgradeSettingsFieldBuilder() { - if (upgradeSettingsBuilder_ == null) { - upgradeSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, - com.google.container.v1.NodePool.UpgradeSettings.Builder, - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder>( - getUpgradeSettings(), getParentForChildren(), isClean()); - upgradeSettings_ = null; - } - return upgradeSettingsBuilder_; - } - - private com.google.container.v1.NodeManagement management_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeManagement, - com.google.container.v1.NodeManagement.Builder, - com.google.container.v1.NodeManagementOrBuilder> - managementBuilder_; - /** - * - * - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - * - * @return Whether the management field is set. - */ - public boolean hasManagement() { - return managementBuilder_ != null || management_ != null; - } - /** - * - * - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - * - * @return The management. - */ - public com.google.container.v1.NodeManagement getManagement() { - if (managementBuilder_ == null) { - return management_ == null - ? com.google.container.v1.NodeManagement.getDefaultInstance() - : management_; - } else { - return managementBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - public Builder setManagement(com.google.container.v1.NodeManagement value) { - if (managementBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - management_ = value; - onChanged(); - } else { - managementBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - public Builder setManagement(com.google.container.v1.NodeManagement.Builder builderForValue) { - if (managementBuilder_ == null) { - management_ = builderForValue.build(); - onChanged(); - } else { - managementBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - public Builder mergeManagement(com.google.container.v1.NodeManagement value) { - if (managementBuilder_ == null) { - if (management_ != null) { - management_ = - com.google.container.v1.NodeManagement.newBuilder(management_) - .mergeFrom(value) - .buildPartial(); - } else { - management_ = value; - } - onChanged(); - } else { - managementBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - public Builder clearManagement() { - if (managementBuilder_ == null) { - management_ = null; - onChanged(); - } else { - management_ = null; - managementBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - public com.google.container.v1.NodeManagement.Builder getManagementBuilder() { - - onChanged(); - return getManagementFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { - if (managementBuilder_ != null) { - return managementBuilder_.getMessageOrBuilder(); - } else { - return management_ == null - ? com.google.container.v1.NodeManagement.getDefaultInstance() - : management_; - } - } - /** - * - * - *
-     * Specifies the node management options for NAP created node-pools.
-     * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeManagement, - com.google.container.v1.NodeManagement.Builder, - com.google.container.v1.NodeManagementOrBuilder> - getManagementFieldBuilder() { - if (managementBuilder_ == null) { - managementBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeManagement, - com.google.container.v1.NodeManagement.Builder, - com.google.container.v1.NodeManagementOrBuilder>( - getManagement(), getParentForChildren(), isClean()); - management_ = null; - } - return managementBuilder_; - } - - private java.lang.Object minCpuPlatform_ = ""; - /** - * - * - *
-     * Minimum CPU platform to be used for NAP created node pools.
-     * The instance may be scheduled on the specified or newer CPU platform.
-     * Applicable values are the friendly names of CPU platforms, such as
-     * minCpuPlatform: Intel Haswell or
-     * minCpuPlatform: Intel Sandy Bridge. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-     * To unset the min cpu platform field pass "automatic"
-     * as field value.
-     * 
- * - * string min_cpu_platform = 5; - * - * @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; - } - } - /** - * - * - *
-     * Minimum CPU platform to be used for NAP created node pools.
-     * The instance may be scheduled on the specified or newer CPU platform.
-     * Applicable values are the friendly names of CPU platforms, such as
-     * minCpuPlatform: Intel Haswell or
-     * minCpuPlatform: Intel Sandy Bridge. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-     * To unset the min cpu platform field pass "automatic"
-     * as field value.
-     * 
- * - * string min_cpu_platform = 5; - * - * @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; - } - } - /** - * - * - *
-     * Minimum CPU platform to be used for NAP created node pools.
-     * The instance may be scheduled on the specified or newer CPU platform.
-     * Applicable values are the friendly names of CPU platforms, such as
-     * minCpuPlatform: Intel Haswell or
-     * minCpuPlatform: Intel Sandy Bridge. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-     * To unset the min cpu platform field pass "automatic"
-     * as field value.
-     * 
- * - * string min_cpu_platform = 5; - * - * @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; - } - /** - * - * - *
-     * Minimum CPU platform to be used for NAP created node pools.
-     * The instance may be scheduled on the specified or newer CPU platform.
-     * Applicable values are the friendly names of CPU platforms, such as
-     * minCpuPlatform: Intel Haswell or
-     * minCpuPlatform: Intel Sandy Bridge. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-     * To unset the min cpu platform field pass "automatic"
-     * as field value.
-     * 
- * - * string min_cpu_platform = 5; - * - * @return This builder for chaining. - */ - public Builder clearMinCpuPlatform() { - - minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); - onChanged(); - return this; - } - /** - * - * - *
-     * Minimum CPU platform to be used for NAP created node pools.
-     * The instance may be scheduled on the specified or newer CPU platform.
-     * Applicable values are the friendly names of CPU platforms, such as
-     * minCpuPlatform: Intel Haswell or
-     * minCpuPlatform: Intel Sandy Bridge. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-     * To unset the min cpu platform field pass "automatic"
-     * as field value.
-     * 
- * - * string min_cpu_platform = 5; - * - * @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; - } - - private int diskSizeGb_; - /** - * - * - *
-     * Size of the disk attached to each node, specified in GB.
-     * The smallest allowed disk size is 10GB.
-     * If unspecified, the default disk size is 100GB.
-     * 
- * - * int32 disk_size_gb = 6; - * - * @return The diskSizeGb. - */ - @java.lang.Override - public int getDiskSizeGb() { - return diskSizeGb_; - } - /** - * - * - *
-     * Size of the disk attached to each node, specified in GB.
-     * The smallest allowed disk size is 10GB.
-     * If unspecified, the default disk size is 100GB.
-     * 
- * - * int32 disk_size_gb = 6; - * - * @param value The diskSizeGb to set. - * @return This builder for chaining. - */ - public Builder setDiskSizeGb(int value) { - - diskSizeGb_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Size of the disk attached to each node, specified in GB.
-     * The smallest allowed disk size is 10GB.
-     * If unspecified, the default disk size is 100GB.
-     * 
- * - * int32 disk_size_gb = 6; - * - * @return This builder for chaining. - */ - public Builder clearDiskSizeGb() { - - diskSizeGb_ = 0; - onChanged(); - return this; - } - - private java.lang.Object diskType_ = ""; - /** - * - * - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 7; - * - * @return The diskType. - */ - public java.lang.String getDiskType() { - java.lang.Object ref = diskType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - diskType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 7; - * - * @return The bytes for diskType. - */ - public com.google.protobuf.ByteString getDiskTypeBytes() { - java.lang.Object ref = diskType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - diskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 7; - * - * @param value The diskType to set. - * @return This builder for chaining. - */ - public Builder setDiskType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - diskType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 7; - * - * @return This builder for chaining. - */ - public Builder clearDiskType() { - - diskType_ = getDefaultInstance().getDiskType(); - onChanged(); - return this; - } - /** - * - * - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 7; - * - * @param value The bytes for diskType to set. - * @return This builder for chaining. - */ - public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - diskType_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedInstanceConfig, - com.google.container.v1.ShieldedInstanceConfig.Builder, - com.google.container.v1.ShieldedInstanceConfigOrBuilder> - shieldedInstanceConfigBuilder_; - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * - * @return Whether the shieldedInstanceConfig field is set. - */ - public boolean hasShieldedInstanceConfig() { - return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * - * @return The shieldedInstanceConfig. - */ - public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { - if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null - ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; - } else { - return shieldedInstanceConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public Builder setShieldedInstanceConfig(com.google.container.v1.ShieldedInstanceConfig value) { - if (shieldedInstanceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - shieldedInstanceConfig_ = value; - onChanged(); - } else { - shieldedInstanceConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public Builder setShieldedInstanceConfig( - com.google.container.v1.ShieldedInstanceConfig.Builder builderForValue) { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = builderForValue.build(); - onChanged(); - } else { - shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public Builder mergeShieldedInstanceConfig( - com.google.container.v1.ShieldedInstanceConfig value) { - if (shieldedInstanceConfigBuilder_ == null) { - if (shieldedInstanceConfig_ != null) { - shieldedInstanceConfig_ = - com.google.container.v1.ShieldedInstanceConfig.newBuilder(shieldedInstanceConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - shieldedInstanceConfig_ = value; - } - onChanged(); - } else { - shieldedInstanceConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public Builder clearShieldedInstanceConfig() { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = null; - onChanged(); - } else { - shieldedInstanceConfig_ = null; - shieldedInstanceConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public com.google.container.v1.ShieldedInstanceConfig.Builder - getShieldedInstanceConfigBuilder() { - - onChanged(); - return getShieldedInstanceConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - public com.google.container.v1.ShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder() { - if (shieldedInstanceConfigBuilder_ != null) { - return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); - } else { - return shieldedInstanceConfig_ == null - ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; - } - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedInstanceConfig, - com.google.container.v1.ShieldedInstanceConfig.Builder, - com.google.container.v1.ShieldedInstanceConfigOrBuilder> - getShieldedInstanceConfigFieldBuilder() { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedInstanceConfig, - com.google.container.v1.ShieldedInstanceConfig.Builder, - com.google.container.v1.ShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), getParentForChildren(), isClean()); - shieldedInstanceConfig_ = null; - } - return shieldedInstanceConfigBuilder_; - } - - private java.lang.Object bootDiskKmsKey_ = ""; - /** - * - * - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 9; - * - * @return The bootDiskKmsKey. - */ - public java.lang.String getBootDiskKmsKey() { - java.lang.Object ref = bootDiskKmsKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bootDiskKmsKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 9; - * - * @return The bytes for bootDiskKmsKey. - */ - public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { - java.lang.Object ref = bootDiskKmsKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bootDiskKmsKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 9; - * - * @param value The bootDiskKmsKey to set. - * @return This builder for chaining. - */ - public Builder setBootDiskKmsKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bootDiskKmsKey_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 9; - * - * @return This builder for chaining. - */ - public Builder clearBootDiskKmsKey() { - - bootDiskKmsKey_ = getDefaultInstance().getBootDiskKmsKey(); - onChanged(); - return this; - } - /** - * - * - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 9; - * - * @param value The bytes for bootDiskKmsKey to set. - * @return This builder for chaining. - */ - public Builder setBootDiskKmsKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bootDiskKmsKey_ = 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.container.v1.AutoprovisioningNodePoolDefaults) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.AutoprovisioningNodePoolDefaults) - private static final com.google.container.v1.AutoprovisioningNodePoolDefaults DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.AutoprovisioningNodePoolDefaults(); - } - - public static com.google.container.v1.AutoprovisioningNodePoolDefaults getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AutoprovisioningNodePoolDefaults parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AutoprovisioningNodePoolDefaults(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.container.v1.AutoprovisioningNodePoolDefaults getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java deleted file mode 100644 index f228ec65..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java +++ /dev/null @@ -1,326 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface AutoprovisioningNodePoolDefaultsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.AutoprovisioningNodePoolDefaults) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Scopes that are used by NAP when creating node pools.
-   * 
- * - * repeated string oauth_scopes = 1; - * - * @return A list containing the oauthScopes. - */ - java.util.List getOauthScopesList(); - /** - * - * - *
-   * Scopes that are used by NAP when creating node pools.
-   * 
- * - * repeated string oauth_scopes = 1; - * - * @return The count of oauthScopes. - */ - int getOauthScopesCount(); - /** - * - * - *
-   * Scopes that are used by NAP when creating node pools.
-   * 
- * - * repeated string oauth_scopes = 1; - * - * @param index The index of the element to return. - * @return The oauthScopes at the given index. - */ - java.lang.String getOauthScopes(int index); - /** - * - * - *
-   * Scopes that are used by NAP when creating node pools.
-   * 
- * - * repeated string oauth_scopes = 1; - * - * @param index The index of the value to return. - * @return The bytes of the oauthScopes at the given index. - */ - com.google.protobuf.ByteString getOauthScopesBytes(int index); - - /** - * - * - *
-   * The Google Cloud Platform Service Account to be used by the node VMs.
-   * 
- * - * string service_account = 2; - * - * @return The serviceAccount. - */ - java.lang.String getServiceAccount(); - /** - * - * - *
-   * The Google Cloud Platform Service Account to be used by the node VMs.
-   * 
- * - * string service_account = 2; - * - * @return The bytes for serviceAccount. - */ - com.google.protobuf.ByteString getServiceAccountBytes(); - - /** - * - * - *
-   * Specifies the upgrade settings for NAP created node pools
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - * - * @return Whether the upgradeSettings field is set. - */ - boolean hasUpgradeSettings(); - /** - * - * - *
-   * Specifies the upgrade settings for NAP created node pools
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - * - * @return The upgradeSettings. - */ - com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings(); - /** - * - * - *
-   * Specifies the upgrade settings for NAP created node pools
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder(); - - /** - * - * - *
-   * Specifies the node management options for NAP created node-pools.
-   * 
- * - * .google.container.v1.NodeManagement management = 4; - * - * @return Whether the management field is set. - */ - boolean hasManagement(); - /** - * - * - *
-   * Specifies the node management options for NAP created node-pools.
-   * 
- * - * .google.container.v1.NodeManagement management = 4; - * - * @return The management. - */ - com.google.container.v1.NodeManagement getManagement(); - /** - * - * - *
-   * Specifies the node management options for NAP created node-pools.
-   * 
- * - * .google.container.v1.NodeManagement management = 4; - */ - com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder(); - - /** - * - * - *
-   * Minimum CPU platform to be used for NAP created node pools.
-   * The instance may be scheduled on the specified or newer CPU platform.
-   * Applicable values are the friendly names of CPU platforms, such as
-   * minCpuPlatform: Intel Haswell or
-   * minCpuPlatform: Intel Sandy Bridge. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-   * To unset the min cpu platform field pass "automatic"
-   * as field value.
-   * 
- * - * string min_cpu_platform = 5; - * - * @return The minCpuPlatform. - */ - java.lang.String getMinCpuPlatform(); - /** - * - * - *
-   * Minimum CPU platform to be used for NAP created node pools.
-   * The instance may be scheduled on the specified or newer CPU platform.
-   * Applicable values are the friendly names of CPU platforms, such as
-   * minCpuPlatform: Intel Haswell or
-   * minCpuPlatform: Intel Sandy Bridge. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-   * To unset the min cpu platform field pass "automatic"
-   * as field value.
-   * 
- * - * string min_cpu_platform = 5; - * - * @return The bytes for minCpuPlatform. - */ - com.google.protobuf.ByteString getMinCpuPlatformBytes(); - - /** - * - * - *
-   * Size of the disk attached to each node, specified in GB.
-   * The smallest allowed disk size is 10GB.
-   * If unspecified, the default disk size is 100GB.
-   * 
- * - * int32 disk_size_gb = 6; - * - * @return The diskSizeGb. - */ - int getDiskSizeGb(); - - /** - * - * - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 7; - * - * @return The diskType. - */ - java.lang.String getDiskType(); - /** - * - * - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 7; - * - * @return The bytes for diskType. - */ - com.google.protobuf.ByteString getDiskTypeBytes(); - - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * - * @return Whether the shieldedInstanceConfig field is set. - */ - boolean hasShieldedInstanceConfig(); - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * - * @return The shieldedInstanceConfig. - */ - com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig(); - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - com.google.container.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); - - /** - * - * - *
-   * The Customer Managed Encryption Key used to encrypt the boot disk attached
-   * to each node in the node pool. This should be of the form
-   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-   * For more information about protecting resources with Cloud KMS Keys please
-   * see:
-   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-   * 
- * - * string boot_disk_kms_key = 9; - * - * @return The bootDiskKmsKey. - */ - java.lang.String getBootDiskKmsKey(); - /** - * - * - *
-   * The Customer Managed Encryption Key used to encrypt the boot disk attached
-   * to each node in the node pool. This should be of the form
-   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-   * For more information about protecting resources with Cloud KMS Keys please
-   * see:
-   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-   * 
- * - * string boot_disk_kms_key = 9; - * - * @return The bytes for bootDiskKmsKey. - */ - com.google.protobuf.ByteString getBootDiskKmsKeyBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java deleted file mode 100644 index 10c1c381..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java +++ /dev/null @@ -1,548 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Configuration for Binary Authorization.
- * 
- * - * Protobuf type {@code google.container.v1.BinaryAuthorization} - */ -public final class BinaryAuthorization extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.BinaryAuthorization) - BinaryAuthorizationOrBuilder { - private static final long serialVersionUID = 0L; - // Use BinaryAuthorization.newBuilder() to construct. - private BinaryAuthorization(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BinaryAuthorization() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BinaryAuthorization(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private BinaryAuthorization( - 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: - { - enabled_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BinaryAuthorization_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BinaryAuthorization_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.BinaryAuthorization.class, - com.google.container.v1.BinaryAuthorization.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - * - * - *
-   * Enable Binary Authorization for this cluster. If enabled, all container
-   * images will be validated by Binary Authorization.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); - } - 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.container.v1.BinaryAuthorization)) { - return super.equals(obj); - } - com.google.container.v1.BinaryAuthorization other = - (com.google.container.v1.BinaryAuthorization) obj; - - if (getEnabled() != other.getEnabled()) 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) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.BinaryAuthorization parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.BinaryAuthorization parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.BinaryAuthorization parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.BinaryAuthorization parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.BinaryAuthorization parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.BinaryAuthorization parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.BinaryAuthorization parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.BinaryAuthorization parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.BinaryAuthorization parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.BinaryAuthorization parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.BinaryAuthorization parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.BinaryAuthorization parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.BinaryAuthorization prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 Binary Authorization.
-   * 
- * - * Protobuf type {@code google.container.v1.BinaryAuthorization} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.BinaryAuthorization) - com.google.container.v1.BinaryAuthorizationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BinaryAuthorization_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BinaryAuthorization_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.BinaryAuthorization.class, - com.google.container.v1.BinaryAuthorization.Builder.class); - } - - // Construct using com.google.container.v1.BinaryAuthorization.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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_BinaryAuthorization_descriptor; - } - - @java.lang.Override - public com.google.container.v1.BinaryAuthorization getDefaultInstanceForType() { - return com.google.container.v1.BinaryAuthorization.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.BinaryAuthorization build() { - com.google.container.v1.BinaryAuthorization result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.BinaryAuthorization buildPartial() { - com.google.container.v1.BinaryAuthorization result = - new com.google.container.v1.BinaryAuthorization(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.BinaryAuthorization) { - return mergeFrom((com.google.container.v1.BinaryAuthorization) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.BinaryAuthorization other) { - if (other == com.google.container.v1.BinaryAuthorization.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - 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.container.v1.BinaryAuthorization parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.BinaryAuthorization) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean enabled_; - /** - * - * - *
-     * Enable Binary Authorization for this cluster. If enabled, all container
-     * images will be validated by Binary Authorization.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Enable Binary Authorization for this cluster. If enabled, all container
-     * images will be validated by Binary Authorization.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable Binary Authorization for this cluster. If enabled, all container
-     * images will be validated by Binary Authorization.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = 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.container.v1.BinaryAuthorization) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.BinaryAuthorization) - private static final com.google.container.v1.BinaryAuthorization DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.BinaryAuthorization(); - } - - public static com.google.container.v1.BinaryAuthorization getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BinaryAuthorization parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BinaryAuthorization(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.container.v1.BinaryAuthorization getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java deleted file mode 100644 index 1aabd38e..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface BinaryAuthorizationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.BinaryAuthorization) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Enable Binary Authorization for this cluster. If enabled, all container
-   * images will be validated by Binary Authorization.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java deleted file mode 100644 index 962feeea..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java +++ /dev/null @@ -1,1241 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * CancelOperationRequest cancels a single operation.
- * 
- * - * Protobuf type {@code google.container.v1.CancelOperationRequest} - */ -public final class CancelOperationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.CancelOperationRequest) - CancelOperationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CancelOperationRequest.newBuilder() to construct. - private CancelOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CancelOperationRequest() { - projectId_ = ""; - zone_ = ""; - operationId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CancelOperationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CancelOperationRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - operationId_ = s; - break; - } - case 34: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CancelOperationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CancelOperationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CancelOperationRequest.class, - com.google.container.v1.CancelOperationRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * operation resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * operation resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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 OPERATION_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object operationId_; - /** - * - * - *
-   * Deprecated. The server-assigned `name` of the operation.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @return The operationId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The server-assigned `name` of the operation.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @return The bytes for operationId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, operation id) of the operation to cancel.
-   * Specified in the format `projects/*/locations/*/operations/*`.
-   * 
- * - * string name = 4; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, operation id) of the operation to cancel.
-   * Specified in the format `projects/*/locations/*/operations/*`.
-   * 
- * - * string name = 4; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getOperationIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationId_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getOperationIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationId_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.container.v1.CancelOperationRequest)) { - return super.equals(obj); - } - com.google.container.v1.CancelOperationRequest other = - (com.google.container.v1.CancelOperationRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getOperationId().equals(other.getOperationId())) return false; - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; - hash = (53 * hash) + getOperationId().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.container.v1.CancelOperationRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CancelOperationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CancelOperationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CancelOperationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CancelOperationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CancelOperationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CancelOperationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.CancelOperationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.CancelOperationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.CancelOperationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.CancelOperationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.CancelOperationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.CancelOperationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * CancelOperationRequest cancels a single operation.
-   * 
- * - * Protobuf type {@code google.container.v1.CancelOperationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.CancelOperationRequest) - com.google.container.v1.CancelOperationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CancelOperationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CancelOperationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CancelOperationRequest.class, - com.google.container.v1.CancelOperationRequest.Builder.class); - } - - // Construct using com.google.container.v1.CancelOperationRequest.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_ = ""; - - zone_ = ""; - - operationId_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CancelOperationRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.CancelOperationRequest getDefaultInstanceForType() { - return com.google.container.v1.CancelOperationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.CancelOperationRequest build() { - com.google.container.v1.CancelOperationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.CancelOperationRequest buildPartial() { - com.google.container.v1.CancelOperationRequest result = - new com.google.container.v1.CancelOperationRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.operationId_ = operationId_; - 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.container.v1.CancelOperationRequest) { - return mergeFrom((com.google.container.v1.CancelOperationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.CancelOperationRequest other) { - if (other == com.google.container.v1.CancelOperationRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getOperationId().isEmpty()) { - operationId_ = other.operationId_; - onChanged(); - } - 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.container.v1.CancelOperationRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.CancelOperationRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * operation resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * operation resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * operation resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * operation resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * operation resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object operationId_ = ""; - /** - * - * - *
-     * Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @return The operationId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @return The bytes for operationId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @param value The operationId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setOperationId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - operationId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearOperationId() { - - operationId_ = getDefaultInstance().getOperationId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @param value The bytes for operationId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 name_ = ""; - /** - * - * - *
-     * The name (project, location, operation id) of the operation to cancel.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 4; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, operation id) of the operation to cancel.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 4; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, operation id) of the operation to cancel.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 4; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, operation id) of the operation to cancel.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 4; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, operation id) of the operation to cancel.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 4; - * - * @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.container.v1.CancelOperationRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.CancelOperationRequest) - private static final com.google.container.v1.CancelOperationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.CancelOperationRequest(); - } - - public static com.google.container.v1.CancelOperationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CancelOperationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CancelOperationRequest(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.container.v1.CancelOperationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java deleted file mode 100644 index aa89183a..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface CancelOperationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.CancelOperationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * operation resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * operation resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The server-assigned `name` of the operation.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @return The operationId. - */ - @java.lang.Deprecated - java.lang.String getOperationId(); - /** - * - * - *
-   * Deprecated. The server-assigned `name` of the operation.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @return The bytes for operationId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getOperationIdBytes(); - - /** - * - * - *
-   * The name (project, location, operation id) of the operation to cancel.
-   * Specified in the format `projects/*/locations/*/operations/*`.
-   * 
- * - * string name = 4; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, operation id) of the operation to cancel.
-   * Specified in the format `projects/*/locations/*/operations/*`.
-   * 
- * - * string name = 4; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfig.java deleted file mode 100644 index 5d7c641c..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfig.java +++ /dev/null @@ -1,545 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Configuration for client certificates on the cluster.
- * 
- * - * Protobuf type {@code google.container.v1.ClientCertificateConfig} - */ -public final class ClientCertificateConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ClientCertificateConfig) - ClientCertificateConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClientCertificateConfig.newBuilder() to construct. - private ClientCertificateConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ClientCertificateConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClientCertificateConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ClientCertificateConfig( - 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: - { - issueClientCertificate_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClientCertificateConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClientCertificateConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ClientCertificateConfig.class, - com.google.container.v1.ClientCertificateConfig.Builder.class); - } - - public static final int ISSUE_CLIENT_CERTIFICATE_FIELD_NUMBER = 1; - private boolean issueClientCertificate_; - /** - * - * - *
-   * Issue a client certificate.
-   * 
- * - * bool issue_client_certificate = 1; - * - * @return The issueClientCertificate. - */ - @java.lang.Override - public boolean getIssueClientCertificate() { - return issueClientCertificate_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (issueClientCertificate_ != false) { - output.writeBool(1, issueClientCertificate_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (issueClientCertificate_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, issueClientCertificate_); - } - 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.container.v1.ClientCertificateConfig)) { - return super.equals(obj); - } - com.google.container.v1.ClientCertificateConfig other = - (com.google.container.v1.ClientCertificateConfig) obj; - - if (getIssueClientCertificate() != other.getIssueClientCertificate()) 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) + ISSUE_CLIENT_CERTIFICATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIssueClientCertificate()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ClientCertificateConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ClientCertificateConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ClientCertificateConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ClientCertificateConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ClientCertificateConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ClientCertificateConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ClientCertificateConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ClientCertificateConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ClientCertificateConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ClientCertificateConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ClientCertificateConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ClientCertificateConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ClientCertificateConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 client certificates on the cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.ClientCertificateConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ClientCertificateConfig) - com.google.container.v1.ClientCertificateConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClientCertificateConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClientCertificateConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ClientCertificateConfig.class, - com.google.container.v1.ClientCertificateConfig.Builder.class); - } - - // Construct using com.google.container.v1.ClientCertificateConfig.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(); - issueClientCertificate_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClientCertificateConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ClientCertificateConfig getDefaultInstanceForType() { - return com.google.container.v1.ClientCertificateConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ClientCertificateConfig build() { - com.google.container.v1.ClientCertificateConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ClientCertificateConfig buildPartial() { - com.google.container.v1.ClientCertificateConfig result = - new com.google.container.v1.ClientCertificateConfig(this); - result.issueClientCertificate_ = issueClientCertificate_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ClientCertificateConfig) { - return mergeFrom((com.google.container.v1.ClientCertificateConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ClientCertificateConfig other) { - if (other == com.google.container.v1.ClientCertificateConfig.getDefaultInstance()) - return this; - if (other.getIssueClientCertificate() != false) { - setIssueClientCertificate(other.getIssueClientCertificate()); - } - 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.container.v1.ClientCertificateConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.ClientCertificateConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean issueClientCertificate_; - /** - * - * - *
-     * Issue a client certificate.
-     * 
- * - * bool issue_client_certificate = 1; - * - * @return The issueClientCertificate. - */ - @java.lang.Override - public boolean getIssueClientCertificate() { - return issueClientCertificate_; - } - /** - * - * - *
-     * Issue a client certificate.
-     * 
- * - * bool issue_client_certificate = 1; - * - * @param value The issueClientCertificate to set. - * @return This builder for chaining. - */ - public Builder setIssueClientCertificate(boolean value) { - - issueClientCertificate_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Issue a client certificate.
-     * 
- * - * bool issue_client_certificate = 1; - * - * @return This builder for chaining. - */ - public Builder clearIssueClientCertificate() { - - issueClientCertificate_ = 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.container.v1.ClientCertificateConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ClientCertificateConfig) - private static final com.google.container.v1.ClientCertificateConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ClientCertificateConfig(); - } - - public static com.google.container.v1.ClientCertificateConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClientCertificateConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClientCertificateConfig(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.container.v1.ClientCertificateConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfigOrBuilder.java deleted file mode 100644 index b4144311..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfigOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ClientCertificateConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ClientCertificateConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Issue a client certificate.
-   * 
- * - * bool issue_client_certificate = 1; - * - * @return The issueClientCertificate. - */ - boolean getIssueClientCertificate(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfig.java deleted file mode 100644 index 98738d33..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfig.java +++ /dev/null @@ -1,862 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Configuration options for the Cloud Run feature.
- * 
- * - * Protobuf type {@code google.container.v1.CloudRunConfig} - */ -public final class CloudRunConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.CloudRunConfig) - CloudRunConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use CloudRunConfig.newBuilder() to construct. - private CloudRunConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CloudRunConfig() { - loadBalancerType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CloudRunConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CloudRunConfig( - 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: - { - disabled_ = input.readBool(); - break; - } - case 24: - { - int rawValue = input.readEnum(); - - loadBalancerType_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CloudRunConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CloudRunConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CloudRunConfig.class, - com.google.container.v1.CloudRunConfig.Builder.class); - } - - /** - * - * - *
-   * Load balancer type of ingress service of Cloud Run.
-   * 
- * - * Protobuf enum {@code google.container.v1.CloudRunConfig.LoadBalancerType} - */ - public enum LoadBalancerType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Load balancer type for Cloud Run is unspecified.
-     * 
- * - * LOAD_BALANCER_TYPE_UNSPECIFIED = 0; - */ - LOAD_BALANCER_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Install external load balancer for Cloud Run.
-     * 
- * - * LOAD_BALANCER_TYPE_EXTERNAL = 1; - */ - LOAD_BALANCER_TYPE_EXTERNAL(1), - /** - * - * - *
-     * Install internal load balancer for Cloud Run.
-     * 
- * - * LOAD_BALANCER_TYPE_INTERNAL = 2; - */ - LOAD_BALANCER_TYPE_INTERNAL(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Load balancer type for Cloud Run is unspecified.
-     * 
- * - * LOAD_BALANCER_TYPE_UNSPECIFIED = 0; - */ - public static final int LOAD_BALANCER_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Install external load balancer for Cloud Run.
-     * 
- * - * LOAD_BALANCER_TYPE_EXTERNAL = 1; - */ - public static final int LOAD_BALANCER_TYPE_EXTERNAL_VALUE = 1; - /** - * - * - *
-     * Install internal load balancer for Cloud Run.
-     * 
- * - * LOAD_BALANCER_TYPE_INTERNAL = 2; - */ - public static final int LOAD_BALANCER_TYPE_INTERNAL_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 LoadBalancerType 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 LoadBalancerType forNumber(int value) { - switch (value) { - case 0: - return LOAD_BALANCER_TYPE_UNSPECIFIED; - case 1: - return LOAD_BALANCER_TYPE_EXTERNAL; - case 2: - return LOAD_BALANCER_TYPE_INTERNAL; - 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 LoadBalancerType findValueByNumber(int number) { - return LoadBalancerType.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.container.v1.CloudRunConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final LoadBalancerType[] VALUES = values(); - - public static LoadBalancerType 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 LoadBalancerType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.CloudRunConfig.LoadBalancerType) - } - - public static final int DISABLED_FIELD_NUMBER = 1; - private boolean disabled_; - /** - * - * - *
-   * Whether Cloud Run addon is enabled for this cluster.
-   * 
- * - * bool disabled = 1; - * - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - - public static final int LOAD_BALANCER_TYPE_FIELD_NUMBER = 3; - private int loadBalancerType_; - /** - * - * - *
-   * Which load balancer type is installed for Cloud Run.
-   * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * - * @return The enum numeric value on the wire for loadBalancerType. - */ - @java.lang.Override - public int getLoadBalancerTypeValue() { - return loadBalancerType_; - } - /** - * - * - *
-   * Which load balancer type is installed for Cloud Run.
-   * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * - * @return The loadBalancerType. - */ - @java.lang.Override - public com.google.container.v1.CloudRunConfig.LoadBalancerType getLoadBalancerType() { - @SuppressWarnings("deprecation") - com.google.container.v1.CloudRunConfig.LoadBalancerType result = - com.google.container.v1.CloudRunConfig.LoadBalancerType.valueOf(loadBalancerType_); - return result == null - ? com.google.container.v1.CloudRunConfig.LoadBalancerType.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 (disabled_ != false) { - output.writeBool(1, disabled_); - } - if (loadBalancerType_ - != com.google.container.v1.CloudRunConfig.LoadBalancerType.LOAD_BALANCER_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(3, loadBalancerType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (disabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disabled_); - } - if (loadBalancerType_ - != com.google.container.v1.CloudRunConfig.LoadBalancerType.LOAD_BALANCER_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, loadBalancerType_); - } - 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.container.v1.CloudRunConfig)) { - return super.equals(obj); - } - com.google.container.v1.CloudRunConfig other = (com.google.container.v1.CloudRunConfig) obj; - - if (getDisabled() != other.getDisabled()) return false; - if (loadBalancerType_ != other.loadBalancerType_) 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) + DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); - hash = (37 * hash) + LOAD_BALANCER_TYPE_FIELD_NUMBER; - hash = (53 * hash) + loadBalancerType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.CloudRunConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CloudRunConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CloudRunConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CloudRunConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CloudRunConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CloudRunConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CloudRunConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.CloudRunConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.CloudRunConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.CloudRunConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.CloudRunConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.CloudRunConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.CloudRunConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 options for the Cloud Run feature.
-   * 
- * - * Protobuf type {@code google.container.v1.CloudRunConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.CloudRunConfig) - com.google.container.v1.CloudRunConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CloudRunConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CloudRunConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CloudRunConfig.class, - com.google.container.v1.CloudRunConfig.Builder.class); - } - - // Construct using com.google.container.v1.CloudRunConfig.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(); - disabled_ = false; - - loadBalancerType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CloudRunConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.CloudRunConfig getDefaultInstanceForType() { - return com.google.container.v1.CloudRunConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.CloudRunConfig build() { - com.google.container.v1.CloudRunConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.CloudRunConfig buildPartial() { - com.google.container.v1.CloudRunConfig result = - new com.google.container.v1.CloudRunConfig(this); - result.disabled_ = disabled_; - result.loadBalancerType_ = loadBalancerType_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.CloudRunConfig) { - return mergeFrom((com.google.container.v1.CloudRunConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.CloudRunConfig other) { - if (other == com.google.container.v1.CloudRunConfig.getDefaultInstance()) return this; - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - if (other.loadBalancerType_ != 0) { - setLoadBalancerTypeValue(other.getLoadBalancerTypeValue()); - } - 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.container.v1.CloudRunConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.CloudRunConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean disabled_; - /** - * - * - *
-     * Whether Cloud Run addon is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - * - * - *
-     * Whether Cloud Run addon is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether Cloud Run addon is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisabled() { - - disabled_ = false; - onChanged(); - return this; - } - - private int loadBalancerType_ = 0; - /** - * - * - *
-     * Which load balancer type is installed for Cloud Run.
-     * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * - * @return The enum numeric value on the wire for loadBalancerType. - */ - @java.lang.Override - public int getLoadBalancerTypeValue() { - return loadBalancerType_; - } - /** - * - * - *
-     * Which load balancer type is installed for Cloud Run.
-     * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * - * @param value The enum numeric value on the wire for loadBalancerType to set. - * @return This builder for chaining. - */ - public Builder setLoadBalancerTypeValue(int value) { - - loadBalancerType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Which load balancer type is installed for Cloud Run.
-     * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * - * @return The loadBalancerType. - */ - @java.lang.Override - public com.google.container.v1.CloudRunConfig.LoadBalancerType getLoadBalancerType() { - @SuppressWarnings("deprecation") - com.google.container.v1.CloudRunConfig.LoadBalancerType result = - com.google.container.v1.CloudRunConfig.LoadBalancerType.valueOf(loadBalancerType_); - return result == null - ? com.google.container.v1.CloudRunConfig.LoadBalancerType.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Which load balancer type is installed for Cloud Run.
-     * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * - * @param value The loadBalancerType to set. - * @return This builder for chaining. - */ - public Builder setLoadBalancerType( - com.google.container.v1.CloudRunConfig.LoadBalancerType value) { - if (value == null) { - throw new NullPointerException(); - } - - loadBalancerType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Which load balancer type is installed for Cloud Run.
-     * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * - * @return This builder for chaining. - */ - public Builder clearLoadBalancerType() { - - loadBalancerType_ = 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.container.v1.CloudRunConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.CloudRunConfig) - private static final com.google.container.v1.CloudRunConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.CloudRunConfig(); - } - - public static com.google.container.v1.CloudRunConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudRunConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudRunConfig(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.container.v1.CloudRunConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfigOrBuilder.java deleted file mode 100644 index 7a70eb98..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfigOrBuilder.java +++ /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 - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface CloudRunConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.CloudRunConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether Cloud Run addon is enabled for this cluster.
-   * 
- * - * bool disabled = 1; - * - * @return The disabled. - */ - boolean getDisabled(); - - /** - * - * - *
-   * Which load balancer type is installed for Cloud Run.
-   * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * - * @return The enum numeric value on the wire for loadBalancerType. - */ - int getLoadBalancerTypeValue(); - /** - * - * - *
-   * Which load balancer type is installed for Cloud Run.
-   * 
- * - * .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * - * @return The loadBalancerType. - */ - com.google.container.v1.CloudRunConfig.LoadBalancerType getLoadBalancerType(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java deleted file mode 100644 index 80cf9686..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java +++ /dev/null @@ -1,13304 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * A Google Kubernetes Engine cluster.
- * 
- * - * Protobuf type {@code google.container.v1.Cluster} - */ -public final class Cluster extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.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() { - name_ = ""; - description_ = ""; - loggingService_ = ""; - monitoringService_ = ""; - network_ = ""; - clusterIpv4Cidr_ = ""; - subnetwork_ = ""; - nodePools_ = java.util.Collections.emptyList(); - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - labelFingerprint_ = ""; - selfLink_ = ""; - zone_ = ""; - endpoint_ = ""; - initialClusterVersion_ = ""; - currentMasterVersion_ = ""; - currentNodeVersion_ = ""; - createTime_ = ""; - status_ = 0; - statusMessage_ = ""; - servicesIpv4Cidr_ = ""; - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - expireTime_ = ""; - location_ = ""; - tpuIpv4CidrBlock_ = ""; - conditions_ = java.util.Collections.emptyList(); - } - - @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(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 24: - { - initialNodeCount_ = input.readInt32(); - break; - } - case 34: - { - com.google.container.v1.NodeConfig.Builder subBuilder = null; - if (nodeConfig_ != null) { - subBuilder = nodeConfig_.toBuilder(); - } - nodeConfig_ = - input.readMessage(com.google.container.v1.NodeConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nodeConfig_); - nodeConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.container.v1.MasterAuth.Builder subBuilder = null; - if (masterAuth_ != null) { - subBuilder = masterAuth_.toBuilder(); - } - masterAuth_ = - input.readMessage(com.google.container.v1.MasterAuth.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(masterAuth_); - masterAuth_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - loggingService_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - monitoringService_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - network_ = s; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterIpv4Cidr_ = s; - break; - } - case 82: - { - com.google.container.v1.AddonsConfig.Builder subBuilder = null; - if (addonsConfig_ != null) { - subBuilder = addonsConfig_.toBuilder(); - } - addonsConfig_ = - input.readMessage( - com.google.container.v1.AddonsConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(addonsConfig_); - addonsConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - - subnetwork_ = s; - break; - } - case 98: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - nodePools_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nodePools_.add( - input.readMessage(com.google.container.v1.NodePool.parser(), extensionRegistry)); - break; - } - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - locations_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - locations_.add(s); - break; - } - case 112: - { - enableKubernetesAlpha_ = input.readBool(); - break; - } - case 122: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - resourceLabels_ = - com.google.protobuf.MapField.newMapField( - ResourceLabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry resourceLabels__ = - input.readMessage( - ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - resourceLabels_ - .getMutableMap() - .put(resourceLabels__.getKey(), resourceLabels__.getValue()); - break; - } - case 130: - { - java.lang.String s = input.readStringRequireUtf8(); - - labelFingerprint_ = s; - break; - } - case 146: - { - com.google.container.v1.LegacyAbac.Builder subBuilder = null; - if (legacyAbac_ != null) { - subBuilder = legacyAbac_.toBuilder(); - } - legacyAbac_ = - input.readMessage(com.google.container.v1.LegacyAbac.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(legacyAbac_); - legacyAbac_ = subBuilder.buildPartial(); - } - - break; - } - case 154: - { - com.google.container.v1.NetworkPolicy.Builder subBuilder = null; - if (networkPolicy_ != null) { - subBuilder = networkPolicy_.toBuilder(); - } - networkPolicy_ = - input.readMessage( - com.google.container.v1.NetworkPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(networkPolicy_); - networkPolicy_ = subBuilder.buildPartial(); - } - - break; - } - case 162: - { - com.google.container.v1.IPAllocationPolicy.Builder subBuilder = null; - if (ipAllocationPolicy_ != null) { - subBuilder = ipAllocationPolicy_.toBuilder(); - } - ipAllocationPolicy_ = - input.readMessage( - com.google.container.v1.IPAllocationPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(ipAllocationPolicy_); - ipAllocationPolicy_ = subBuilder.buildPartial(); - } - - break; - } - case 178: - { - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder subBuilder = null; - if (masterAuthorizedNetworksConfig_ != null) { - subBuilder = masterAuthorizedNetworksConfig_.toBuilder(); - } - masterAuthorizedNetworksConfig_ = - input.readMessage( - com.google.container.v1.MasterAuthorizedNetworksConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(masterAuthorizedNetworksConfig_); - masterAuthorizedNetworksConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 186: - { - com.google.container.v1.MaintenancePolicy.Builder subBuilder = null; - if (maintenancePolicy_ != null) { - subBuilder = maintenancePolicy_.toBuilder(); - } - maintenancePolicy_ = - input.readMessage( - com.google.container.v1.MaintenancePolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maintenancePolicy_); - maintenancePolicy_ = subBuilder.buildPartial(); - } - - break; - } - case 194: - { - com.google.container.v1.BinaryAuthorization.Builder subBuilder = null; - if (binaryAuthorization_ != null) { - subBuilder = binaryAuthorization_.toBuilder(); - } - binaryAuthorization_ = - input.readMessage( - com.google.container.v1.BinaryAuthorization.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(binaryAuthorization_); - binaryAuthorization_ = subBuilder.buildPartial(); - } - - break; - } - case 210: - { - com.google.container.v1.ClusterAutoscaling.Builder subBuilder = null; - if (autoscaling_ != null) { - subBuilder = autoscaling_.toBuilder(); - } - autoscaling_ = - input.readMessage( - com.google.container.v1.ClusterAutoscaling.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(autoscaling_); - autoscaling_ = subBuilder.buildPartial(); - } - - break; - } - case 218: - { - com.google.container.v1.NetworkConfig.Builder subBuilder = null; - if (networkConfig_ != null) { - subBuilder = networkConfig_.toBuilder(); - } - networkConfig_ = - input.readMessage( - com.google.container.v1.NetworkConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(networkConfig_); - networkConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 242: - { - com.google.container.v1.MaxPodsConstraint.Builder subBuilder = null; - if (defaultMaxPodsConstraint_ != null) { - subBuilder = defaultMaxPodsConstraint_.toBuilder(); - } - defaultMaxPodsConstraint_ = - input.readMessage( - com.google.container.v1.MaxPodsConstraint.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(defaultMaxPodsConstraint_); - defaultMaxPodsConstraint_ = subBuilder.buildPartial(); - } - - break; - } - case 266: - { - com.google.container.v1.ResourceUsageExportConfig.Builder subBuilder = null; - if (resourceUsageExportConfig_ != null) { - subBuilder = resourceUsageExportConfig_.toBuilder(); - } - resourceUsageExportConfig_ = - input.readMessage( - com.google.container.v1.ResourceUsageExportConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resourceUsageExportConfig_); - resourceUsageExportConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 274: - { - com.google.container.v1.AuthenticatorGroupsConfig.Builder subBuilder = null; - if (authenticatorGroupsConfig_ != null) { - subBuilder = authenticatorGroupsConfig_.toBuilder(); - } - authenticatorGroupsConfig_ = - input.readMessage( - com.google.container.v1.AuthenticatorGroupsConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authenticatorGroupsConfig_); - authenticatorGroupsConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 298: - { - com.google.container.v1.PrivateClusterConfig.Builder subBuilder = null; - if (privateClusterConfig_ != null) { - subBuilder = privateClusterConfig_.toBuilder(); - } - privateClusterConfig_ = - input.readMessage( - com.google.container.v1.PrivateClusterConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(privateClusterConfig_); - privateClusterConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 306: - { - com.google.container.v1.DatabaseEncryption.Builder subBuilder = null; - if (databaseEncryption_ != null) { - subBuilder = databaseEncryption_.toBuilder(); - } - databaseEncryption_ = - input.readMessage( - com.google.container.v1.DatabaseEncryption.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(databaseEncryption_); - databaseEncryption_ = subBuilder.buildPartial(); - } - - break; - } - case 314: - { - com.google.container.v1.VerticalPodAutoscaling.Builder subBuilder = null; - if (verticalPodAutoscaling_ != null) { - subBuilder = verticalPodAutoscaling_.toBuilder(); - } - verticalPodAutoscaling_ = - input.readMessage( - com.google.container.v1.VerticalPodAutoscaling.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(verticalPodAutoscaling_); - verticalPodAutoscaling_ = subBuilder.buildPartial(); - } - - break; - } - case 322: - { - com.google.container.v1.ShieldedNodes.Builder subBuilder = null; - if (shieldedNodes_ != null) { - subBuilder = shieldedNodes_.toBuilder(); - } - shieldedNodes_ = - input.readMessage( - com.google.container.v1.ShieldedNodes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(shieldedNodes_); - shieldedNodes_ = subBuilder.buildPartial(); - } - - break; - } - case 330: - { - com.google.container.v1.ReleaseChannel.Builder subBuilder = null; - if (releaseChannel_ != null) { - subBuilder = releaseChannel_.toBuilder(); - } - releaseChannel_ = - input.readMessage( - com.google.container.v1.ReleaseChannel.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(releaseChannel_); - releaseChannel_ = subBuilder.buildPartial(); - } - - break; - } - case 346: - { - com.google.container.v1.WorkloadIdentityConfig.Builder subBuilder = null; - if (workloadIdentityConfig_ != null) { - subBuilder = workloadIdentityConfig_.toBuilder(); - } - workloadIdentityConfig_ = - input.readMessage( - com.google.container.v1.WorkloadIdentityConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workloadIdentityConfig_); - workloadIdentityConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 802: - { - java.lang.String s = input.readStringRequireUtf8(); - - selfLink_ = s; - break; - } - case 810: - { - java.lang.String s = input.readStringRequireUtf8(); - - zone_ = s; - break; - } - case 818: - { - java.lang.String s = input.readStringRequireUtf8(); - - endpoint_ = s; - break; - } - case 826: - { - java.lang.String s = input.readStringRequireUtf8(); - - initialClusterVersion_ = s; - break; - } - case 834: - { - java.lang.String s = input.readStringRequireUtf8(); - - currentMasterVersion_ = s; - break; - } - case 842: - { - java.lang.String s = input.readStringRequireUtf8(); - - currentNodeVersion_ = s; - break; - } - case 850: - { - java.lang.String s = input.readStringRequireUtf8(); - - createTime_ = s; - break; - } - case 856: - { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - case 866: - { - java.lang.String s = input.readStringRequireUtf8(); - - statusMessage_ = s; - break; - } - case 872: - { - nodeIpv4CidrSize_ = input.readInt32(); - break; - } - case 882: - { - java.lang.String s = input.readStringRequireUtf8(); - - servicesIpv4Cidr_ = s; - break; - } - case 890: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - instanceGroupUrls_.add(s); - break; - } - case 896: - { - currentNodeCount_ = input.readInt32(); - break; - } - case 906: - { - java.lang.String s = input.readStringRequireUtf8(); - - expireTime_ = s; - break; - } - case 914: - { - java.lang.String s = input.readStringRequireUtf8(); - - location_ = s; - break; - } - case 920: - { - enableTpu_ = input.readBool(); - break; - } - case 930: - { - java.lang.String s = input.readStringRequireUtf8(); - - tpuIpv4CidrBlock_ = s; - break; - } - case 946: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - conditions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - conditions_.add( - input.readMessage( - com.google.container.v1.StatusCondition.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)) { - nodePools_ = java.util.Collections.unmodifiableList(nodePools_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - locations_ = locations_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - conditions_ = java.util.Collections.unmodifiableList(conditions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Cluster_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 15: - return internalGetResourceLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Cluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.Cluster.class, com.google.container.v1.Cluster.Builder.class); - } - - /** - * - * - *
-   * The current status of the cluster.
-   * 
- * - * Protobuf enum {@code google.container.v1.Cluster.Status} - */ - public enum Status implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Not set.
-     * 
- * - * STATUS_UNSPECIFIED = 0; - */ - STATUS_UNSPECIFIED(0), - /** - * - * - *
-     * The PROVISIONING state indicates the cluster is being created.
-     * 
- * - * PROVISIONING = 1; - */ - PROVISIONING(1), - /** - * - * - *
-     * The RUNNING state indicates the cluster has been created and is fully
-     * usable.
-     * 
- * - * RUNNING = 2; - */ - RUNNING(2), - /** - * - * - *
-     * The RECONCILING state indicates that some work is actively being done on
-     * the cluster, such as upgrading the master or node software. Details can
-     * be found in the `statusMessage` field.
-     * 
- * - * RECONCILING = 3; - */ - RECONCILING(3), - /** - * - * - *
-     * The STOPPING state indicates the cluster is being deleted.
-     * 
- * - * STOPPING = 4; - */ - STOPPING(4), - /** - * - * - *
-     * The ERROR state indicates the cluster is unusable. It will be
-     * automatically deleted. Details can be found in the `statusMessage` field.
-     * 
- * - * ERROR = 5; - */ - ERROR(5), - /** - * - * - *
-     * The DEGRADED state indicates the cluster requires user action to restore
-     * full functionality. Details can be found in the `statusMessage` field.
-     * 
- * - * DEGRADED = 6; - */ - DEGRADED(6), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Not set.
-     * 
- * - * STATUS_UNSPECIFIED = 0; - */ - public static final int STATUS_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The PROVISIONING state indicates the cluster is being created.
-     * 
- * - * PROVISIONING = 1; - */ - public static final int PROVISIONING_VALUE = 1; - /** - * - * - *
-     * The RUNNING state indicates the cluster has been created and is fully
-     * usable.
-     * 
- * - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - * - * - *
-     * The RECONCILING state indicates that some work is actively being done on
-     * the cluster, such as upgrading the master or node software. Details can
-     * be found in the `statusMessage` field.
-     * 
- * - * RECONCILING = 3; - */ - public static final int RECONCILING_VALUE = 3; - /** - * - * - *
-     * The STOPPING state indicates the cluster is being deleted.
-     * 
- * - * STOPPING = 4; - */ - public static final int STOPPING_VALUE = 4; - /** - * - * - *
-     * The ERROR state indicates the cluster is unusable. It will be
-     * automatically deleted. Details can be found in the `statusMessage` field.
-     * 
- * - * ERROR = 5; - */ - public static final int ERROR_VALUE = 5; - /** - * - * - *
-     * The DEGRADED state indicates the cluster requires user action to restore
-     * full functionality. Details can be found in the `statusMessage` field.
-     * 
- * - * DEGRADED = 6; - */ - public static final int DEGRADED_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 Status 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 Status forNumber(int value) { - switch (value) { - case 0: - return STATUS_UNSPECIFIED; - case 1: - return PROVISIONING; - case 2: - return RUNNING; - case 3: - return RECONCILING; - case 4: - return STOPPING; - case 5: - return ERROR; - case 6: - return DEGRADED; - 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 Status findValueByNumber(int number) { - return Status.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.container.v1.Cluster.getDescriptor().getEnumTypes().get(0); - } - - private static final Status[] VALUES = values(); - - public static Status 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 Status(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.Cluster.Status) - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name of this cluster. The name must be unique within this project
-   * and location (e.g. zone or region), and can be up to 40 characters with
-   * the following restrictions:
-   * * Lowercase letters, numbers, and hyphens only.
-   * * Must start with a letter.
-   * * Must end with a number or a letter.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name of this cluster. The name must be unique within this project
-   * and location (e.g. zone or region), and can be up to 40 characters with
-   * the following restrictions:
-   * * Lowercase letters, numbers, and hyphens only.
-   * * Must start with a letter.
-   * * Must end with a number or a letter.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - * - * - *
-   * An optional description of this cluster.
-   * 
- * - * string description = 2; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * An optional description of this cluster.
-   * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INITIAL_NODE_COUNT_FIELD_NUMBER = 3; - private int initialNodeCount_; - /** - * - * - *
-   * The number of nodes to create in this cluster. You must ensure that your
-   * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-   * is sufficient for this number of instances. You must also have available
-   * firewall and routes quota.
-   * For requests, this field should only be used in lieu of a
-   * "node_pool" object, since this configuration (along with the
-   * "node_config") will be used to create a "NodePool" object with an
-   * auto-generated name. Do not use this and a node_pool at the same time.
-   * This field is deprecated, use node_pool.initial_node_count instead.
-   * 
- * - * int32 initial_node_count = 3 [deprecated = true]; - * - * @return The initialNodeCount. - */ - @java.lang.Override - @java.lang.Deprecated - public int getInitialNodeCount() { - return initialNodeCount_; - } - - public static final int NODE_CONFIG_FIELD_NUMBER = 4; - private com.google.container.v1.NodeConfig nodeConfig_; - /** - * - * - *
-   * Parameters used in creating the cluster's nodes.
-   * For requests, this field should only be used in lieu of a
-   * "node_pool" object, since this configuration (along with the
-   * "initial_node_count") will be used to create a "NodePool" object with an
-   * auto-generated name. Do not use this and a node_pool at the same time.
-   * For responses, this field will be populated with the node configuration of
-   * the first node pool. (For configuration of each node pool, see
-   * `node_pool.config`)
-   * If unspecified, the defaults are used.
-   * This field is deprecated, use node_pool.config instead.
-   * 
- * - * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - * - * @return Whether the nodeConfig field is set. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean hasNodeConfig() { - return nodeConfig_ != null; - } - /** - * - * - *
-   * Parameters used in creating the cluster's nodes.
-   * For requests, this field should only be used in lieu of a
-   * "node_pool" object, since this configuration (along with the
-   * "initial_node_count") will be used to create a "NodePool" object with an
-   * auto-generated name. Do not use this and a node_pool at the same time.
-   * For responses, this field will be populated with the node configuration of
-   * the first node pool. (For configuration of each node pool, see
-   * `node_pool.config`)
-   * If unspecified, the defaults are used.
-   * This field is deprecated, use node_pool.config instead.
-   * 
- * - * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - * - * @return The nodeConfig. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1.NodeConfig getNodeConfig() { - return nodeConfig_ == null - ? com.google.container.v1.NodeConfig.getDefaultInstance() - : nodeConfig_; - } - /** - * - * - *
-   * Parameters used in creating the cluster's nodes.
-   * For requests, this field should only be used in lieu of a
-   * "node_pool" object, since this configuration (along with the
-   * "initial_node_count") will be used to create a "NodePool" object with an
-   * auto-generated name. Do not use this and a node_pool at the same time.
-   * For responses, this field will be populated with the node configuration of
-   * the first node pool. (For configuration of each node pool, see
-   * `node_pool.config`)
-   * If unspecified, the defaults are used.
-   * This field is deprecated, use node_pool.config instead.
-   * 
- * - * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.container.v1.NodeConfigOrBuilder getNodeConfigOrBuilder() { - return getNodeConfig(); - } - - public static final int MASTER_AUTH_FIELD_NUMBER = 5; - private com.google.container.v1.MasterAuth masterAuth_; - /** - * - * - *
-   * The authentication information for accessing the master endpoint.
-   * If unspecified, the defaults are used:
-   * For clusters before v1.12, if master_auth is unspecified, `username` will
-   * be set to "admin", a random password will be generated, and a client
-   * certificate will be issued.
-   * 
- * - * .google.container.v1.MasterAuth master_auth = 5; - * - * @return Whether the masterAuth field is set. - */ - @java.lang.Override - public boolean hasMasterAuth() { - return masterAuth_ != null; - } - /** - * - * - *
-   * The authentication information for accessing the master endpoint.
-   * If unspecified, the defaults are used:
-   * For clusters before v1.12, if master_auth is unspecified, `username` will
-   * be set to "admin", a random password will be generated, and a client
-   * certificate will be issued.
-   * 
- * - * .google.container.v1.MasterAuth master_auth = 5; - * - * @return The masterAuth. - */ - @java.lang.Override - public com.google.container.v1.MasterAuth getMasterAuth() { - return masterAuth_ == null - ? com.google.container.v1.MasterAuth.getDefaultInstance() - : masterAuth_; - } - /** - * - * - *
-   * The authentication information for accessing the master endpoint.
-   * If unspecified, the defaults are used:
-   * For clusters before v1.12, if master_auth is unspecified, `username` will
-   * be set to "admin", a random password will be generated, and a client
-   * certificate will be issued.
-   * 
- * - * .google.container.v1.MasterAuth master_auth = 5; - */ - @java.lang.Override - public com.google.container.v1.MasterAuthOrBuilder getMasterAuthOrBuilder() { - return getMasterAuth(); - } - - public static final int LOGGING_SERVICE_FIELD_NUMBER = 6; - private volatile java.lang.Object loggingService_; - /** - * - * - *
-   * The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string logging_service = 6; - * - * @return The loggingService. - */ - @java.lang.Override - public java.lang.String getLoggingService() { - java.lang.Object ref = loggingService_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - loggingService_ = s; - return s; - } - } - /** - * - * - *
-   * The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string logging_service = 6; - * - * @return The bytes for loggingService. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLoggingServiceBytes() { - java.lang.Object ref = loggingService_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - loggingService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MONITORING_SERVICE_FIELD_NUMBER = 7; - private volatile java.lang.Object monitoringService_; - /** - * - * - *
-   * The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string monitoring_service = 7; - * - * @return The monitoringService. - */ - @java.lang.Override - public java.lang.String getMonitoringService() { - java.lang.Object ref = monitoringService_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - monitoringService_ = s; - return s; - } - } - /** - * - * - *
-   * The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string monitoring_service = 7; - * - * @return The bytes for monitoringService. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMonitoringServiceBytes() { - java.lang.Object ref = monitoringService_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - monitoringService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NETWORK_FIELD_NUMBER = 8; - private volatile java.lang.Object network_; - /** - * - * - *
-   * The name of the Google Compute Engine
-   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-   * to which the cluster is connected. If left unspecified, the `default`
-   * network will be used.
-   * 
- * - * string network = 8; - * - * @return The network. - */ - @java.lang.Override - public java.lang.String getNetwork() { - java.lang.Object 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(); - network_ = s; - return s; - } - } - /** - * - * - *
-   * The name of the Google Compute Engine
-   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-   * to which the cluster is connected. If left unspecified, the `default`
-   * network will be used.
-   * 
- * - * string network = 8; - * - * @return The bytes for network. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_IPV4_CIDR_FIELD_NUMBER = 9; - private volatile java.lang.Object clusterIpv4Cidr_; - /** - * - * - *
-   * The IP address range of the container pods in this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`). Leave blank to have
-   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-   * 
- * - * string cluster_ipv4_cidr = 9; - * - * @return The clusterIpv4Cidr. - */ - @java.lang.Override - public java.lang.String getClusterIpv4Cidr() { - java.lang.Object ref = clusterIpv4Cidr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterIpv4Cidr_ = s; - return s; - } - } - /** - * - * - *
-   * The IP address range of the container pods in this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`). Leave blank to have
-   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-   * 
- * - * string cluster_ipv4_cidr = 9; - * - * @return The bytes for clusterIpv4Cidr. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { - java.lang.Object ref = clusterIpv4Cidr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ADDONS_CONFIG_FIELD_NUMBER = 10; - private com.google.container.v1.AddonsConfig addonsConfig_; - /** - * - * - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - * - * @return Whether the addonsConfig field is set. - */ - @java.lang.Override - public boolean hasAddonsConfig() { - return addonsConfig_ != null; - } - /** - * - * - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - * - * @return The addonsConfig. - */ - @java.lang.Override - public com.google.container.v1.AddonsConfig getAddonsConfig() { - return addonsConfig_ == null - ? com.google.container.v1.AddonsConfig.getDefaultInstance() - : addonsConfig_; - } - /** - * - * - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - */ - @java.lang.Override - public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { - return getAddonsConfig(); - } - - public static final int SUBNETWORK_FIELD_NUMBER = 11; - private volatile java.lang.Object subnetwork_; - /** - * - * - *
-   * The name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-   * the cluster is connected.
-   * 
- * - * string subnetwork = 11; - * - * @return The subnetwork. - */ - @java.lang.Override - public java.lang.String getSubnetwork() { - java.lang.Object ref = subnetwork_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetwork_ = s; - return s; - } - } - /** - * - * - *
-   * The name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-   * the cluster is connected.
-   * 
- * - * string subnetwork = 11; - * - * @return The bytes for subnetwork. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSubnetworkBytes() { - java.lang.Object ref = subnetwork_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - subnetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOLS_FIELD_NUMBER = 12; - private java.util.List nodePools_; - /** - * - * - *
-   * The node pools associated with this cluster.
-   * This field should not be set if "node_config" or "initial_node_count" are
-   * specified.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - @java.lang.Override - public java.util.List getNodePoolsList() { - return nodePools_; - } - /** - * - * - *
-   * The node pools associated with this cluster.
-   * This field should not be set if "node_config" or "initial_node_count" are
-   * specified.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - @java.lang.Override - public java.util.List - getNodePoolsOrBuilderList() { - return nodePools_; - } - /** - * - * - *
-   * The node pools associated with this cluster.
-   * This field should not be set if "node_config" or "initial_node_count" are
-   * specified.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - @java.lang.Override - public int getNodePoolsCount() { - return nodePools_.size(); - } - /** - * - * - *
-   * The node pools associated with this cluster.
-   * This field should not be set if "node_config" or "initial_node_count" are
-   * specified.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - @java.lang.Override - public com.google.container.v1.NodePool getNodePools(int index) { - return nodePools_.get(index); - } - /** - * - * - *
-   * The node pools associated with this cluster.
-   * This field should not be set if "node_config" or "initial_node_count" are
-   * specified.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - @java.lang.Override - public com.google.container.v1.NodePoolOrBuilder getNodePoolsOrBuilder(int index) { - return nodePools_.get(index); - } - - public static final int LOCATIONS_FIELD_NUMBER = 13; - private com.google.protobuf.LazyStringList locations_; - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This field provides a default value if
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * are not specified during node pool creation.
-   * Warning: changing cluster locations will update the
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * of all node pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string locations = 13; - * - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList getLocationsList() { - return locations_; - } - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This field provides a default value if
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * are not specified during node pool creation.
-   * Warning: changing cluster locations will update the
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * of all node pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string locations = 13; - * - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This field provides a default value if
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * are not specified during node pool creation.
-   * Warning: changing cluster locations will update the
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * of all node pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string locations = 13; - * - * @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); - } - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This field provides a default value if
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * are not specified during node pool creation.
-   * Warning: changing cluster locations will update the
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * of all node pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string locations = 13; - * - * @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 ENABLE_KUBERNETES_ALPHA_FIELD_NUMBER = 14; - private boolean enableKubernetesAlpha_; - /** - * - * - *
-   * Kubernetes alpha features are enabled on this cluster. This includes alpha
-   * API groups (e.g. v1alpha1) and features that may not be production ready in
-   * the kubernetes version of the master and nodes.
-   * The cluster has no SLA for uptime and master/node upgrades are disabled.
-   * Alpha enabled clusters are automatically deleted thirty days after
-   * creation.
-   * 
- * - * bool enable_kubernetes_alpha = 14; - * - * @return The enableKubernetesAlpha. - */ - @java.lang.Override - public boolean getEnableKubernetesAlpha() { - return enableKubernetesAlpha_; - } - - public static final int RESOURCE_LABELS_FIELD_NUMBER = 15; - - private static final class ResourceLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Cluster_ResourceLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField resourceLabels_; - - private com.google.protobuf.MapField - internalGetResourceLabels() { - if (resourceLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ResourceLabelsDefaultEntryHolder.defaultEntry); - } - return resourceLabels_; - } - - public int getResourceLabelsCount() { - return internalGetResourceLabels().getMap().size(); - } - /** - * - * - *
-   * The resource labels for the cluster to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 15; - */ - @java.lang.Override - public boolean containsResourceLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetResourceLabels().getMap().containsKey(key); - } - /** Use {@link #getResourceLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getResourceLabels() { - return getResourceLabelsMap(); - } - /** - * - * - *
-   * The resource labels for the cluster to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 15; - */ - @java.lang.Override - public java.util.Map getResourceLabelsMap() { - return internalGetResourceLabels().getMap(); - } - /** - * - * - *
-   * The resource labels for the cluster to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 15; - */ - @java.lang.Override - public java.lang.String getResourceLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetResourceLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * The resource labels for the cluster to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 15; - */ - @java.lang.Override - public java.lang.String getResourceLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetResourceLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LABEL_FINGERPRINT_FIELD_NUMBER = 16; - private volatile java.lang.Object labelFingerprint_; - /** - * - * - *
-   * The fingerprint of the set of labels for this cluster.
-   * 
- * - * string label_fingerprint = 16; - * - * @return The labelFingerprint. - */ - @java.lang.Override - public java.lang.String getLabelFingerprint() { - java.lang.Object ref = labelFingerprint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - labelFingerprint_ = s; - return s; - } - } - /** - * - * - *
-   * The fingerprint of the set of labels for this cluster.
-   * 
- * - * string label_fingerprint = 16; - * - * @return The bytes for labelFingerprint. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLabelFingerprintBytes() { - java.lang.Object ref = labelFingerprint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - labelFingerprint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LEGACY_ABAC_FIELD_NUMBER = 18; - private com.google.container.v1.LegacyAbac legacyAbac_; - /** - * - * - *
-   * Configuration for the legacy ABAC authorization mode.
-   * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - * - * @return Whether the legacyAbac field is set. - */ - @java.lang.Override - public boolean hasLegacyAbac() { - return legacyAbac_ != null; - } - /** - * - * - *
-   * Configuration for the legacy ABAC authorization mode.
-   * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - * - * @return The legacyAbac. - */ - @java.lang.Override - public com.google.container.v1.LegacyAbac getLegacyAbac() { - return legacyAbac_ == null - ? com.google.container.v1.LegacyAbac.getDefaultInstance() - : legacyAbac_; - } - /** - * - * - *
-   * Configuration for the legacy ABAC authorization mode.
-   * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - */ - @java.lang.Override - public com.google.container.v1.LegacyAbacOrBuilder getLegacyAbacOrBuilder() { - return getLegacyAbac(); - } - - public static final int NETWORK_POLICY_FIELD_NUMBER = 19; - private com.google.container.v1.NetworkPolicy networkPolicy_; - /** - * - * - *
-   * Configuration options for the NetworkPolicy feature.
-   * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - * - * @return Whether the networkPolicy field is set. - */ - @java.lang.Override - public boolean hasNetworkPolicy() { - return networkPolicy_ != null; - } - /** - * - * - *
-   * Configuration options for the NetworkPolicy feature.
-   * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - * - * @return The networkPolicy. - */ - @java.lang.Override - public com.google.container.v1.NetworkPolicy getNetworkPolicy() { - return networkPolicy_ == null - ? com.google.container.v1.NetworkPolicy.getDefaultInstance() - : networkPolicy_; - } - /** - * - * - *
-   * Configuration options for the NetworkPolicy feature.
-   * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - */ - @java.lang.Override - public com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { - return getNetworkPolicy(); - } - - public static final int IP_ALLOCATION_POLICY_FIELD_NUMBER = 20; - private com.google.container.v1.IPAllocationPolicy ipAllocationPolicy_; - /** - * - * - *
-   * Configuration for cluster IP allocation.
-   * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - * - * @return Whether the ipAllocationPolicy field is set. - */ - @java.lang.Override - public boolean hasIpAllocationPolicy() { - return ipAllocationPolicy_ != null; - } - /** - * - * - *
-   * Configuration for cluster IP allocation.
-   * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - * - * @return The ipAllocationPolicy. - */ - @java.lang.Override - public com.google.container.v1.IPAllocationPolicy getIpAllocationPolicy() { - return ipAllocationPolicy_ == null - ? com.google.container.v1.IPAllocationPolicy.getDefaultInstance() - : ipAllocationPolicy_; - } - /** - * - * - *
-   * Configuration for cluster IP allocation.
-   * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - @java.lang.Override - public com.google.container.v1.IPAllocationPolicyOrBuilder getIpAllocationPolicyOrBuilder() { - return getIpAllocationPolicy(); - } - - public static final int MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER = 22; - private com.google.container.v1.MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig_; - /** - * - * - *
-   * The configuration options for master authorized networks feature.
-   * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - * - * @return Whether the masterAuthorizedNetworksConfig field is set. - */ - @java.lang.Override - public boolean hasMasterAuthorizedNetworksConfig() { - return masterAuthorizedNetworksConfig_ != null; - } - /** - * - * - *
-   * The configuration options for master authorized networks feature.
-   * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - * - * @return The masterAuthorizedNetworksConfig. - */ - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig - getMasterAuthorizedNetworksConfig() { - return masterAuthorizedNetworksConfig_ == null - ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() - : masterAuthorizedNetworksConfig_; - } - /** - * - * - *
-   * The configuration options for master authorized networks feature.
-   * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - */ - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder - getMasterAuthorizedNetworksConfigOrBuilder() { - return getMasterAuthorizedNetworksConfig(); - } - - public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 23; - private com.google.container.v1.MaintenancePolicy maintenancePolicy_; - /** - * - * - *
-   * Configure the maintenance policy for this cluster.
-   * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - * - * @return Whether the maintenancePolicy field is set. - */ - @java.lang.Override - public boolean hasMaintenancePolicy() { - return maintenancePolicy_ != null; - } - /** - * - * - *
-   * Configure the maintenance policy for this cluster.
-   * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - * - * @return The maintenancePolicy. - */ - @java.lang.Override - public com.google.container.v1.MaintenancePolicy getMaintenancePolicy() { - return maintenancePolicy_ == null - ? com.google.container.v1.MaintenancePolicy.getDefaultInstance() - : maintenancePolicy_; - } - /** - * - * - *
-   * Configure the maintenance policy for this cluster.
-   * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - @java.lang.Override - public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { - return getMaintenancePolicy(); - } - - public static final int BINARY_AUTHORIZATION_FIELD_NUMBER = 24; - private com.google.container.v1.BinaryAuthorization binaryAuthorization_; - /** - * - * - *
-   * Configuration for Binary Authorization.
-   * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - * - * @return Whether the binaryAuthorization field is set. - */ - @java.lang.Override - public boolean hasBinaryAuthorization() { - return binaryAuthorization_ != null; - } - /** - * - * - *
-   * Configuration for Binary Authorization.
-   * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - * - * @return The binaryAuthorization. - */ - @java.lang.Override - public com.google.container.v1.BinaryAuthorization getBinaryAuthorization() { - return binaryAuthorization_ == null - ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() - : binaryAuthorization_; - } - /** - * - * - *
-   * Configuration for Binary Authorization.
-   * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - @java.lang.Override - public com.google.container.v1.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder() { - return getBinaryAuthorization(); - } - - public static final int AUTOSCALING_FIELD_NUMBER = 26; - private com.google.container.v1.ClusterAutoscaling autoscaling_; - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - * - * @return Whether the autoscaling field is set. - */ - @java.lang.Override - public boolean hasAutoscaling() { - return autoscaling_ != null; - } - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - * - * @return The autoscaling. - */ - @java.lang.Override - public com.google.container.v1.ClusterAutoscaling getAutoscaling() { - return autoscaling_ == null - ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() - : autoscaling_; - } - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - @java.lang.Override - public com.google.container.v1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder() { - return getAutoscaling(); - } - - public static final int NETWORK_CONFIG_FIELD_NUMBER = 27; - private com.google.container.v1.NetworkConfig networkConfig_; - /** - * - * - *
-   * Configuration for cluster networking.
-   * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - * - * @return Whether the networkConfig field is set. - */ - @java.lang.Override - public boolean hasNetworkConfig() { - return networkConfig_ != null; - } - /** - * - * - *
-   * Configuration for cluster networking.
-   * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - * - * @return The networkConfig. - */ - @java.lang.Override - public com.google.container.v1.NetworkConfig getNetworkConfig() { - return networkConfig_ == null - ? com.google.container.v1.NetworkConfig.getDefaultInstance() - : networkConfig_; - } - /** - * - * - *
-   * Configuration for cluster networking.
-   * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - @java.lang.Override - public com.google.container.v1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { - return getNetworkConfig(); - } - - public static final int DEFAULT_MAX_PODS_CONSTRAINT_FIELD_NUMBER = 30; - private com.google.container.v1.MaxPodsConstraint defaultMaxPodsConstraint_; - /** - * - * - *
-   * The default constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool of this cluster. Only honored
-   * if cluster created with IP Alias support.
-   * 
- * - * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - * - * @return Whether the defaultMaxPodsConstraint field is set. - */ - @java.lang.Override - public boolean hasDefaultMaxPodsConstraint() { - return defaultMaxPodsConstraint_ != null; - } - /** - * - * - *
-   * The default constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool of this cluster. Only honored
-   * if cluster created with IP Alias support.
-   * 
- * - * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - * - * @return The defaultMaxPodsConstraint. - */ - @java.lang.Override - public com.google.container.v1.MaxPodsConstraint getDefaultMaxPodsConstraint() { - return defaultMaxPodsConstraint_ == null - ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() - : defaultMaxPodsConstraint_; - } - /** - * - * - *
-   * The default constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool of this cluster. Only honored
-   * if cluster created with IP Alias support.
-   * 
- * - * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - @java.lang.Override - public com.google.container.v1.MaxPodsConstraintOrBuilder getDefaultMaxPodsConstraintOrBuilder() { - return getDefaultMaxPodsConstraint(); - } - - public static final int RESOURCE_USAGE_EXPORT_CONFIG_FIELD_NUMBER = 33; - private com.google.container.v1.ResourceUsageExportConfig resourceUsageExportConfig_; - /** - * - * - *
-   * Configuration for exporting resource usages. Resource usage export is
-   * disabled when this config is unspecified.
-   * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - * @return Whether the resourceUsageExportConfig field is set. - */ - @java.lang.Override - public boolean hasResourceUsageExportConfig() { - return resourceUsageExportConfig_ != null; - } - /** - * - * - *
-   * Configuration for exporting resource usages. Resource usage export is
-   * disabled when this config is unspecified.
-   * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - * @return The resourceUsageExportConfig. - */ - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig getResourceUsageExportConfig() { - return resourceUsageExportConfig_ == null - ? com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() - : resourceUsageExportConfig_; - } - /** - * - * - *
-   * Configuration for exporting resource usages. Resource usage export is
-   * disabled when this config is unspecified.
-   * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - */ - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfigOrBuilder - getResourceUsageExportConfigOrBuilder() { - return getResourceUsageExportConfig(); - } - - public static final int AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER = 34; - private com.google.container.v1.AuthenticatorGroupsConfig authenticatorGroupsConfig_; - /** - * - * - *
-   * Configuration controlling RBAC group membership information.
-   * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * - * @return Whether the authenticatorGroupsConfig field is set. - */ - @java.lang.Override - public boolean hasAuthenticatorGroupsConfig() { - return authenticatorGroupsConfig_ != null; - } - /** - * - * - *
-   * Configuration controlling RBAC group membership information.
-   * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * - * @return The authenticatorGroupsConfig. - */ - @java.lang.Override - public com.google.container.v1.AuthenticatorGroupsConfig getAuthenticatorGroupsConfig() { - return authenticatorGroupsConfig_ == null - ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() - : authenticatorGroupsConfig_; - } - /** - * - * - *
-   * Configuration controlling RBAC group membership information.
-   * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - @java.lang.Override - public com.google.container.v1.AuthenticatorGroupsConfigOrBuilder - getAuthenticatorGroupsConfigOrBuilder() { - return getAuthenticatorGroupsConfig(); - } - - public static final int PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 37; - private com.google.container.v1.PrivateClusterConfig privateClusterConfig_; - /** - * - * - *
-   * Configuration for private cluster.
-   * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - * - * @return Whether the privateClusterConfig field is set. - */ - @java.lang.Override - public boolean hasPrivateClusterConfig() { - return privateClusterConfig_ != null; - } - /** - * - * - *
-   * Configuration for private cluster.
-   * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - * - * @return The privateClusterConfig. - */ - @java.lang.Override - public com.google.container.v1.PrivateClusterConfig getPrivateClusterConfig() { - return privateClusterConfig_ == null - ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() - : privateClusterConfig_; - } - /** - * - * - *
-   * Configuration for private cluster.
-   * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - @java.lang.Override - public com.google.container.v1.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { - return getPrivateClusterConfig(); - } - - public static final int DATABASE_ENCRYPTION_FIELD_NUMBER = 38; - private com.google.container.v1.DatabaseEncryption databaseEncryption_; - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - * - * @return Whether the databaseEncryption field is set. - */ - @java.lang.Override - public boolean hasDatabaseEncryption() { - return databaseEncryption_ != null; - } - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - * - * @return The databaseEncryption. - */ - @java.lang.Override - public com.google.container.v1.DatabaseEncryption getDatabaseEncryption() { - return databaseEncryption_ == null - ? com.google.container.v1.DatabaseEncryption.getDefaultInstance() - : databaseEncryption_; - } - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - @java.lang.Override - public com.google.container.v1.DatabaseEncryptionOrBuilder getDatabaseEncryptionOrBuilder() { - return getDatabaseEncryption(); - } - - public static final int VERTICAL_POD_AUTOSCALING_FIELD_NUMBER = 39; - private com.google.container.v1.VerticalPodAutoscaling verticalPodAutoscaling_; - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * - * @return Whether the verticalPodAutoscaling field is set. - */ - @java.lang.Override - public boolean hasVerticalPodAutoscaling() { - return verticalPodAutoscaling_ != null; - } - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * - * @return The verticalPodAutoscaling. - */ - @java.lang.Override - public com.google.container.v1.VerticalPodAutoscaling getVerticalPodAutoscaling() { - return verticalPodAutoscaling_ == null - ? com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() - : verticalPodAutoscaling_; - } - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - @java.lang.Override - public com.google.container.v1.VerticalPodAutoscalingOrBuilder - getVerticalPodAutoscalingOrBuilder() { - return getVerticalPodAutoscaling(); - } - - public static final int SHIELDED_NODES_FIELD_NUMBER = 40; - private com.google.container.v1.ShieldedNodes shieldedNodes_; - /** - * - * - *
-   * Shielded Nodes configuration.
-   * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - * - * @return Whether the shieldedNodes field is set. - */ - @java.lang.Override - public boolean hasShieldedNodes() { - return shieldedNodes_ != null; - } - /** - * - * - *
-   * Shielded Nodes configuration.
-   * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - * - * @return The shieldedNodes. - */ - @java.lang.Override - public com.google.container.v1.ShieldedNodes getShieldedNodes() { - return shieldedNodes_ == null - ? com.google.container.v1.ShieldedNodes.getDefaultInstance() - : shieldedNodes_; - } - /** - * - * - *
-   * Shielded Nodes configuration.
-   * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - @java.lang.Override - public com.google.container.v1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder() { - return getShieldedNodes(); - } - - public static final int RELEASE_CHANNEL_FIELD_NUMBER = 41; - private com.google.container.v1.ReleaseChannel releaseChannel_; - /** - * - * - *
-   * Release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - * - * @return Whether the releaseChannel field is set. - */ - @java.lang.Override - public boolean hasReleaseChannel() { - return releaseChannel_ != null; - } - /** - * - * - *
-   * Release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - * - * @return The releaseChannel. - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannel getReleaseChannel() { - return releaseChannel_ == null - ? com.google.container.v1.ReleaseChannel.getDefaultInstance() - : releaseChannel_; - } - /** - * - * - *
-   * Release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { - return getReleaseChannel(); - } - - public static final int WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER = 43; - private com.google.container.v1.WorkloadIdentityConfig workloadIdentityConfig_; - /** - * - * - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * - * @return Whether the workloadIdentityConfig field is set. - */ - @java.lang.Override - public boolean hasWorkloadIdentityConfig() { - return workloadIdentityConfig_ != null; - } - /** - * - * - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * - * @return The workloadIdentityConfig. - */ - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfig getWorkloadIdentityConfig() { - return workloadIdentityConfig_ == null - ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() - : workloadIdentityConfig_; - } - /** - * - * - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfigOrBuilder - getWorkloadIdentityConfigOrBuilder() { - return getWorkloadIdentityConfig(); - } - - public static final int SELF_LINK_FIELD_NUMBER = 100; - private volatile java.lang.Object selfLink_; - /** - * - * - *
-   * [Output only] Server-defined URL for the resource.
-   * 
- * - * string self_link = 100; - * - * @return The selfLink. - */ - @java.lang.Override - public java.lang.String getSelfLink() { - java.lang.Object ref = selfLink_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selfLink_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] Server-defined URL for the resource.
-   * 
- * - * string self_link = 100; - * - * @return The bytes for selfLink. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSelfLinkBytes() { - java.lang.Object ref = selfLink_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - selfLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ZONE_FIELD_NUMBER = 101; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field is deprecated, use location instead.
-   * 
- * - * string zone = 101 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field is deprecated, use location instead.
-   * 
- * - * string zone = 101 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ENDPOINT_FIELD_NUMBER = 102; - private volatile java.lang.Object endpoint_; - /** - * - * - *
-   * [Output only] The IP address of this cluster's master endpoint.
-   * The endpoint can be accessed from the internet at
-   * `https://username:password@endpoint/`.
-   * See the `masterAuth` property of this resource for username and
-   * password information.
-   * 
- * - * string endpoint = 102; - * - * @return The endpoint. - */ - @java.lang.Override - public java.lang.String getEndpoint() { - java.lang.Object ref = endpoint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - endpoint_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] The IP address of this cluster's master endpoint.
-   * The endpoint can be accessed from the internet at
-   * `https://username:password@endpoint/`.
-   * See the `masterAuth` property of this resource for username and
-   * password information.
-   * 
- * - * string endpoint = 102; - * - * @return The bytes for endpoint. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEndpointBytes() { - java.lang.Object ref = endpoint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - endpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INITIAL_CLUSTER_VERSION_FIELD_NUMBER = 103; - private volatile java.lang.Object initialClusterVersion_; - /** - * - * - *
-   * The initial Kubernetes version for this cluster.  Valid versions are those
-   * found in validMasterVersions returned by getServerConfig.  The version can
-   * be upgraded over time; such upgrades are reflected in
-   * currentMasterVersion and currentNodeVersion.
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "","-": picks the default Kubernetes version
-   * 
- * - * string initial_cluster_version = 103; - * - * @return The initialClusterVersion. - */ - @java.lang.Override - public java.lang.String getInitialClusterVersion() { - java.lang.Object ref = initialClusterVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - initialClusterVersion_ = s; - return s; - } - } - /** - * - * - *
-   * The initial Kubernetes version for this cluster.  Valid versions are those
-   * found in validMasterVersions returned by getServerConfig.  The version can
-   * be upgraded over time; such upgrades are reflected in
-   * currentMasterVersion and currentNodeVersion.
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "","-": picks the default Kubernetes version
-   * 
- * - * string initial_cluster_version = 103; - * - * @return The bytes for initialClusterVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getInitialClusterVersionBytes() { - java.lang.Object ref = initialClusterVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - initialClusterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CURRENT_MASTER_VERSION_FIELD_NUMBER = 104; - private volatile java.lang.Object currentMasterVersion_; - /** - * - * - *
-   * [Output only] The current software version of the master endpoint.
-   * 
- * - * string current_master_version = 104; - * - * @return The currentMasterVersion. - */ - @java.lang.Override - public java.lang.String getCurrentMasterVersion() { - java.lang.Object ref = currentMasterVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentMasterVersion_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] The current software version of the master endpoint.
-   * 
- * - * string current_master_version = 104; - * - * @return The bytes for currentMasterVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { - java.lang.Object ref = currentMasterVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currentMasterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CURRENT_NODE_VERSION_FIELD_NUMBER = 105; - private volatile java.lang.Object currentNodeVersion_; - /** - * - * - *
-   * [Output only] Deprecated, use
-   * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
-   * instead. The current version of the node software components. If they are
-   * currently at multiple versions because they're in the process of being
-   * upgraded, this reflects the minimum version of all nodes.
-   * 
- * - * string current_node_version = 105 [deprecated = true]; - * - * @return The currentNodeVersion. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getCurrentNodeVersion() { - java.lang.Object ref = currentNodeVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentNodeVersion_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] Deprecated, use
-   * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
-   * instead. The current version of the node software components. If they are
-   * currently at multiple versions because they're in the process of being
-   * upgraded, this reflects the minimum version of all nodes.
-   * 
- * - * string current_node_version = 105 [deprecated = true]; - * - * @return The bytes for currentNodeVersion. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { - java.lang.Object ref = currentNodeVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currentNodeVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 106; - private volatile java.lang.Object createTime_; - /** - * - * - *
-   * [Output only] The time the cluster was created, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string create_time = 106; - * - * @return The createTime. - */ - @java.lang.Override - public java.lang.String getCreateTime() { - java.lang.Object ref = createTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - createTime_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] The time the cluster was created, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string create_time = 106; - * - * @return The bytes for createTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCreateTimeBytes() { - java.lang.Object ref = createTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - createTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 107; - private int status_; - /** - * - * - *
-   * [Output only] The current status of this cluster.
-   * 
- * - * .google.container.v1.Cluster.Status status = 107; - * - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override - public int getStatusValue() { - return status_; - } - /** - * - * - *
-   * [Output only] The current status of this cluster.
-   * 
- * - * .google.container.v1.Cluster.Status status = 107; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1.Cluster.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1.Cluster.Status result = - com.google.container.v1.Cluster.Status.valueOf(status_); - return result == null ? com.google.container.v1.Cluster.Status.UNRECOGNIZED : result; - } - - public static final int STATUS_MESSAGE_FIELD_NUMBER = 108; - private volatile java.lang.Object statusMessage_; - /** - * - * - *
-   * [Output only] Deprecated. Use conditions instead.
-   * Additional information about the current status of this
-   * cluster, if available.
-   * 
- * - * string status_message = 108 [deprecated = true]; - * - * @return The statusMessage. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getStatusMessage() { - java.lang.Object ref = statusMessage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusMessage_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] Deprecated. Use conditions instead.
-   * Additional information about the current status of this
-   * cluster, if available.
-   * 
- * - * string status_message = 108 [deprecated = true]; - * - * @return The bytes for statusMessage. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_IPV4_CIDR_SIZE_FIELD_NUMBER = 109; - private int nodeIpv4CidrSize_; - /** - * - * - *
-   * [Output only] The size of the address space on each node for hosting
-   * containers. This is provisioned from within the `container_ipv4_cidr`
-   * range. This field will only be set when cluster is in route-based network
-   * mode.
-   * 
- * - * int32 node_ipv4_cidr_size = 109; - * - * @return The nodeIpv4CidrSize. - */ - @java.lang.Override - public int getNodeIpv4CidrSize() { - return nodeIpv4CidrSize_; - } - - public static final int SERVICES_IPV4_CIDR_FIELD_NUMBER = 110; - private volatile java.lang.Object servicesIpv4Cidr_; - /** - * - * - *
-   * [Output only] The IP address range of the Kubernetes services in
-   * this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `1.2.3.4/29`). Service addresses are
-   * typically put in the last `/16` from the container CIDR.
-   * 
- * - * string services_ipv4_cidr = 110; - * - * @return The servicesIpv4Cidr. - */ - @java.lang.Override - public java.lang.String getServicesIpv4Cidr() { - java.lang.Object ref = servicesIpv4Cidr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesIpv4Cidr_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] The IP address range of the Kubernetes services in
-   * this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `1.2.3.4/29`). Service addresses are
-   * typically put in the last `/16` from the container CIDR.
-   * 
- * - * string services_ipv4_cidr = 110; - * - * @return The bytes for servicesIpv4Cidr. - */ - @java.lang.Override - public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { - java.lang.Object ref = servicesIpv4Cidr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - servicesIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INSTANCE_GROUP_URLS_FIELD_NUMBER = 111; - private com.google.protobuf.LazyStringList instanceGroupUrls_; - /** - * - * - *
-   * Deprecated. Use node_pools.instance_group_urls.
-   * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @return A list containing the instanceGroupUrls. - */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { - return instanceGroupUrls_; - } - /** - * - * - *
-   * Deprecated. Use node_pools.instance_group_urls.
-   * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @return The count of instanceGroupUrls. - */ - @java.lang.Deprecated - public int getInstanceGroupUrlsCount() { - return instanceGroupUrls_.size(); - } - /** - * - * - *
-   * Deprecated. Use node_pools.instance_group_urls.
-   * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @param index The index of the element to return. - * @return The instanceGroupUrls at the given index. - */ - @java.lang.Deprecated - public java.lang.String getInstanceGroupUrls(int index) { - return instanceGroupUrls_.get(index); - } - /** - * - * - *
-   * Deprecated. Use node_pools.instance_group_urls.
-   * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @param index The index of the value to return. - * @return The bytes of the instanceGroupUrls at the given index. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { - return instanceGroupUrls_.getByteString(index); - } - - public static final int CURRENT_NODE_COUNT_FIELD_NUMBER = 112; - private int currentNodeCount_; - /** - * - * - *
-   * [Output only]  The number of nodes currently in the cluster. Deprecated.
-   * Call Kubernetes API directly to retrieve node information.
-   * 
- * - * int32 current_node_count = 112 [deprecated = true]; - * - * @return The currentNodeCount. - */ - @java.lang.Override - @java.lang.Deprecated - public int getCurrentNodeCount() { - return currentNodeCount_; - } - - public static final int EXPIRE_TIME_FIELD_NUMBER = 113; - private volatile java.lang.Object expireTime_; - /** - * - * - *
-   * [Output only] The time the cluster will be automatically
-   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string expire_time = 113; - * - * @return The expireTime. - */ - @java.lang.Override - public java.lang.String getExpireTime() { - java.lang.Object ref = expireTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expireTime_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] The time the cluster will be automatically
-   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string expire_time = 113; - * - * @return The bytes for expireTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString getExpireTimeBytes() { - java.lang.Object ref = expireTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - expireTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATION_FIELD_NUMBER = 114; - private volatile java.lang.Object location_; - /** - * - * - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * in which the cluster resides.
-   * 
- * - * string location = 114; - * - * @return The location. - */ - @java.lang.Override - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * in which the cluster resides.
-   * 
- * - * string location = 114; - * - * @return The bytes for location. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENABLE_TPU_FIELD_NUMBER = 115; - private boolean enableTpu_; - /** - * - * - *
-   * Enable the ability to use Cloud TPUs in this cluster.
-   * 
- * - * bool enable_tpu = 115; - * - * @return The enableTpu. - */ - @java.lang.Override - public boolean getEnableTpu() { - return enableTpu_; - } - - public static final int TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER = 116; - private volatile java.lang.Object tpuIpv4CidrBlock_; - /** - * - * - *
-   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `1.2.3.4/29`).
-   * 
- * - * string tpu_ipv4_cidr_block = 116; - * - * @return The tpuIpv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getTpuIpv4CidrBlock() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tpuIpv4CidrBlock_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `1.2.3.4/29`).
-   * 
- * - * string tpu_ipv4_cidr_block = 116; - * - * @return The bytes for tpuIpv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tpuIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONDITIONS_FIELD_NUMBER = 118; - private java.util.List conditions_; - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - @java.lang.Override - public java.util.List getConditionsList() { - return conditions_; - } - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - @java.lang.Override - public java.util.List - getConditionsOrBuilderList() { - return conditions_; - } - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - @java.lang.Override - public int getConditionsCount() { - return conditions_.size(); - } - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - @java.lang.Override - public com.google.container.v1.StatusCondition getConditions(int index) { - return conditions_.get(index); - } - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - @java.lang.Override - public com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { - return conditions_.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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - if (initialNodeCount_ != 0) { - output.writeInt32(3, initialNodeCount_); - } - if (nodeConfig_ != null) { - output.writeMessage(4, getNodeConfig()); - } - if (masterAuth_ != null) { - output.writeMessage(5, getMasterAuth()); - } - if (!getLoggingServiceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, loggingService_); - } - if (!getMonitoringServiceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, monitoringService_); - } - if (!getNetworkBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, network_); - } - if (!getClusterIpv4CidrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4Cidr_); - } - if (addonsConfig_ != null) { - output.writeMessage(10, getAddonsConfig()); - } - if (!getSubnetworkBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, subnetwork_); - } - for (int i = 0; i < nodePools_.size(); i++) { - output.writeMessage(12, nodePools_.get(i)); - } - for (int i = 0; i < locations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); - } - if (enableKubernetesAlpha_ != false) { - output.writeBool(14, enableKubernetesAlpha_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetResourceLabels(), ResourceLabelsDefaultEntryHolder.defaultEntry, 15); - if (!getLabelFingerprintBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, labelFingerprint_); - } - if (legacyAbac_ != null) { - output.writeMessage(18, getLegacyAbac()); - } - if (networkPolicy_ != null) { - output.writeMessage(19, getNetworkPolicy()); - } - if (ipAllocationPolicy_ != null) { - output.writeMessage(20, getIpAllocationPolicy()); - } - if (masterAuthorizedNetworksConfig_ != null) { - output.writeMessage(22, getMasterAuthorizedNetworksConfig()); - } - if (maintenancePolicy_ != null) { - output.writeMessage(23, getMaintenancePolicy()); - } - if (binaryAuthorization_ != null) { - output.writeMessage(24, getBinaryAuthorization()); - } - if (autoscaling_ != null) { - output.writeMessage(26, getAutoscaling()); - } - if (networkConfig_ != null) { - output.writeMessage(27, getNetworkConfig()); - } - if (defaultMaxPodsConstraint_ != null) { - output.writeMessage(30, getDefaultMaxPodsConstraint()); - } - if (resourceUsageExportConfig_ != null) { - output.writeMessage(33, getResourceUsageExportConfig()); - } - if (authenticatorGroupsConfig_ != null) { - output.writeMessage(34, getAuthenticatorGroupsConfig()); - } - if (privateClusterConfig_ != null) { - output.writeMessage(37, getPrivateClusterConfig()); - } - if (databaseEncryption_ != null) { - output.writeMessage(38, getDatabaseEncryption()); - } - if (verticalPodAutoscaling_ != null) { - output.writeMessage(39, getVerticalPodAutoscaling()); - } - if (shieldedNodes_ != null) { - output.writeMessage(40, getShieldedNodes()); - } - if (releaseChannel_ != null) { - output.writeMessage(41, getReleaseChannel()); - } - if (workloadIdentityConfig_ != null) { - output.writeMessage(43, getWorkloadIdentityConfig()); - } - if (!getSelfLinkBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 101, zone_); - } - if (!getEndpointBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 102, endpoint_); - } - if (!getInitialClusterVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 103, initialClusterVersion_); - } - if (!getCurrentMasterVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 104, currentMasterVersion_); - } - if (!getCurrentNodeVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 105, currentNodeVersion_); - } - if (!getCreateTimeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 106, createTime_); - } - if (status_ != com.google.container.v1.Cluster.Status.STATUS_UNSPECIFIED.getNumber()) { - output.writeEnum(107, status_); - } - if (!getStatusMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 108, statusMessage_); - } - if (nodeIpv4CidrSize_ != 0) { - output.writeInt32(109, nodeIpv4CidrSize_); - } - if (!getServicesIpv4CidrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 110, servicesIpv4Cidr_); - } - for (int i = 0; i < instanceGroupUrls_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 111, instanceGroupUrls_.getRaw(i)); - } - if (currentNodeCount_ != 0) { - output.writeInt32(112, currentNodeCount_); - } - if (!getExpireTimeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 113, expireTime_); - } - if (!getLocationBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 114, location_); - } - if (enableTpu_ != false) { - output.writeBool(115, enableTpu_); - } - if (!getTpuIpv4CidrBlockBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 116, tpuIpv4CidrBlock_); - } - for (int i = 0; i < conditions_.size(); i++) { - output.writeMessage(118, conditions_.get(i)); - } - 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 (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - if (initialNodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, initialNodeCount_); - } - if (nodeConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNodeConfig()); - } - if (masterAuth_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMasterAuth()); - } - if (!getLoggingServiceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, loggingService_); - } - if (!getMonitoringServiceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, monitoringService_); - } - if (!getNetworkBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, network_); - } - if (!getClusterIpv4CidrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, clusterIpv4Cidr_); - } - if (addonsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getAddonsConfig()); - } - if (!getSubnetworkBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, subnetwork_); - } - for (int i = 0; i < nodePools_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, nodePools_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < locations_.size(); i++) { - dataSize += computeStringSizeNoTag(locations_.getRaw(i)); - } - size += dataSize; - size += 1 * getLocationsList().size(); - } - if (enableKubernetesAlpha_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, enableKubernetesAlpha_); - } - for (java.util.Map.Entry entry : - internalGetResourceLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry resourceLabels__ = - ResourceLabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, resourceLabels__); - } - if (!getLabelFingerprintBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, labelFingerprint_); - } - if (legacyAbac_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLegacyAbac()); - } - if (networkPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getNetworkPolicy()); - } - if (ipAllocationPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getIpAllocationPolicy()); - } - if (masterAuthorizedNetworksConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 22, getMasterAuthorizedNetworksConfig()); - } - if (maintenancePolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getMaintenancePolicy()); - } - if (binaryAuthorization_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(24, getBinaryAuthorization()); - } - if (autoscaling_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getAutoscaling()); - } - if (networkConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getNetworkConfig()); - } - if (defaultMaxPodsConstraint_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 30, getDefaultMaxPodsConstraint()); - } - if (resourceUsageExportConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 33, getResourceUsageExportConfig()); - } - if (authenticatorGroupsConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 34, getAuthenticatorGroupsConfig()); - } - if (privateClusterConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(37, getPrivateClusterConfig()); - } - if (databaseEncryption_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getDatabaseEncryption()); - } - if (verticalPodAutoscaling_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(39, getVerticalPodAutoscaling()); - } - if (shieldedNodes_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(40, getShieldedNodes()); - } - if (releaseChannel_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(41, getReleaseChannel()); - } - if (workloadIdentityConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(43, getWorkloadIdentityConfig()); - } - if (!getSelfLinkBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); - } - if (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, zone_); - } - if (!getEndpointBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, endpoint_); - } - if (!getInitialClusterVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(103, initialClusterVersion_); - } - if (!getCurrentMasterVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(104, currentMasterVersion_); - } - if (!getCurrentNodeVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(105, currentNodeVersion_); - } - if (!getCreateTimeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(106, createTime_); - } - if (status_ != com.google.container.v1.Cluster.Status.STATUS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(107, status_); - } - if (!getStatusMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(108, statusMessage_); - } - if (nodeIpv4CidrSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(109, nodeIpv4CidrSize_); - } - if (!getServicesIpv4CidrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(110, servicesIpv4Cidr_); - } - { - int dataSize = 0; - for (int i = 0; i < instanceGroupUrls_.size(); i++) { - dataSize += computeStringSizeNoTag(instanceGroupUrls_.getRaw(i)); - } - size += dataSize; - size += 2 * getInstanceGroupUrlsList().size(); - } - if (currentNodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(112, currentNodeCount_); - } - if (!getExpireTimeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(113, expireTime_); - } - if (!getLocationBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(114, location_); - } - if (enableTpu_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(115, enableTpu_); - } - if (!getTpuIpv4CidrBlockBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(116, tpuIpv4CidrBlock_); - } - for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(118, conditions_.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.container.v1.Cluster)) { - return super.equals(obj); - } - com.google.container.v1.Cluster other = (com.google.container.v1.Cluster) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (getInitialNodeCount() != other.getInitialNodeCount()) return false; - if (hasNodeConfig() != other.hasNodeConfig()) return false; - if (hasNodeConfig()) { - if (!getNodeConfig().equals(other.getNodeConfig())) return false; - } - if (hasMasterAuth() != other.hasMasterAuth()) return false; - if (hasMasterAuth()) { - if (!getMasterAuth().equals(other.getMasterAuth())) return false; - } - if (!getLoggingService().equals(other.getLoggingService())) return false; - if (!getMonitoringService().equals(other.getMonitoringService())) return false; - if (!getNetwork().equals(other.getNetwork())) return false; - if (!getClusterIpv4Cidr().equals(other.getClusterIpv4Cidr())) return false; - if (hasAddonsConfig() != other.hasAddonsConfig()) return false; - if (hasAddonsConfig()) { - if (!getAddonsConfig().equals(other.getAddonsConfig())) return false; - } - if (!getSubnetwork().equals(other.getSubnetwork())) return false; - if (!getNodePoolsList().equals(other.getNodePoolsList())) return false; - if (!getLocationsList().equals(other.getLocationsList())) return false; - if (getEnableKubernetesAlpha() != other.getEnableKubernetesAlpha()) return false; - if (!internalGetResourceLabels().equals(other.internalGetResourceLabels())) return false; - if (!getLabelFingerprint().equals(other.getLabelFingerprint())) return false; - if (hasLegacyAbac() != other.hasLegacyAbac()) return false; - if (hasLegacyAbac()) { - if (!getLegacyAbac().equals(other.getLegacyAbac())) return false; - } - if (hasNetworkPolicy() != other.hasNetworkPolicy()) return false; - if (hasNetworkPolicy()) { - if (!getNetworkPolicy().equals(other.getNetworkPolicy())) return false; - } - if (hasIpAllocationPolicy() != other.hasIpAllocationPolicy()) return false; - if (hasIpAllocationPolicy()) { - if (!getIpAllocationPolicy().equals(other.getIpAllocationPolicy())) return false; - } - if (hasMasterAuthorizedNetworksConfig() != other.hasMasterAuthorizedNetworksConfig()) - return false; - if (hasMasterAuthorizedNetworksConfig()) { - if (!getMasterAuthorizedNetworksConfig().equals(other.getMasterAuthorizedNetworksConfig())) - return false; - } - if (hasMaintenancePolicy() != other.hasMaintenancePolicy()) return false; - if (hasMaintenancePolicy()) { - if (!getMaintenancePolicy().equals(other.getMaintenancePolicy())) return false; - } - if (hasBinaryAuthorization() != other.hasBinaryAuthorization()) return false; - if (hasBinaryAuthorization()) { - if (!getBinaryAuthorization().equals(other.getBinaryAuthorization())) return false; - } - if (hasAutoscaling() != other.hasAutoscaling()) return false; - if (hasAutoscaling()) { - if (!getAutoscaling().equals(other.getAutoscaling())) return false; - } - if (hasNetworkConfig() != other.hasNetworkConfig()) return false; - if (hasNetworkConfig()) { - if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; - } - if (hasDefaultMaxPodsConstraint() != other.hasDefaultMaxPodsConstraint()) return false; - if (hasDefaultMaxPodsConstraint()) { - if (!getDefaultMaxPodsConstraint().equals(other.getDefaultMaxPodsConstraint())) return false; - } - if (hasResourceUsageExportConfig() != other.hasResourceUsageExportConfig()) return false; - if (hasResourceUsageExportConfig()) { - if (!getResourceUsageExportConfig().equals(other.getResourceUsageExportConfig())) - return false; - } - if (hasAuthenticatorGroupsConfig() != other.hasAuthenticatorGroupsConfig()) return false; - if (hasAuthenticatorGroupsConfig()) { - if (!getAuthenticatorGroupsConfig().equals(other.getAuthenticatorGroupsConfig())) - return false; - } - if (hasPrivateClusterConfig() != other.hasPrivateClusterConfig()) return false; - if (hasPrivateClusterConfig()) { - if (!getPrivateClusterConfig().equals(other.getPrivateClusterConfig())) return false; - } - if (hasDatabaseEncryption() != other.hasDatabaseEncryption()) return false; - if (hasDatabaseEncryption()) { - if (!getDatabaseEncryption().equals(other.getDatabaseEncryption())) return false; - } - if (hasVerticalPodAutoscaling() != other.hasVerticalPodAutoscaling()) return false; - if (hasVerticalPodAutoscaling()) { - if (!getVerticalPodAutoscaling().equals(other.getVerticalPodAutoscaling())) return false; - } - if (hasShieldedNodes() != other.hasShieldedNodes()) return false; - if (hasShieldedNodes()) { - if (!getShieldedNodes().equals(other.getShieldedNodes())) return false; - } - if (hasReleaseChannel() != other.hasReleaseChannel()) return false; - if (hasReleaseChannel()) { - if (!getReleaseChannel().equals(other.getReleaseChannel())) return false; - } - if (hasWorkloadIdentityConfig() != other.hasWorkloadIdentityConfig()) return false; - if (hasWorkloadIdentityConfig()) { - if (!getWorkloadIdentityConfig().equals(other.getWorkloadIdentityConfig())) return false; - } - if (!getSelfLink().equals(other.getSelfLink())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getEndpoint().equals(other.getEndpoint())) return false; - if (!getInitialClusterVersion().equals(other.getInitialClusterVersion())) return false; - if (!getCurrentMasterVersion().equals(other.getCurrentMasterVersion())) return false; - if (!getCurrentNodeVersion().equals(other.getCurrentNodeVersion())) return false; - if (!getCreateTime().equals(other.getCreateTime())) return false; - if (status_ != other.status_) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getNodeIpv4CidrSize() != other.getNodeIpv4CidrSize()) return false; - if (!getServicesIpv4Cidr().equals(other.getServicesIpv4Cidr())) return false; - if (!getInstanceGroupUrlsList().equals(other.getInstanceGroupUrlsList())) return false; - if (getCurrentNodeCount() != other.getCurrentNodeCount()) return false; - if (!getExpireTime().equals(other.getExpireTime())) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (getEnableTpu() != other.getEnableTpu()) return false; - if (!getTpuIpv4CidrBlock().equals(other.getTpuIpv4CidrBlock())) return false; - if (!getConditionsList().equals(other.getConditionsList())) 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) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + INITIAL_NODE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getInitialNodeCount(); - if (hasNodeConfig()) { - hash = (37 * hash) + NODE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getNodeConfig().hashCode(); - } - if (hasMasterAuth()) { - hash = (37 * hash) + MASTER_AUTH_FIELD_NUMBER; - hash = (53 * hash) + getMasterAuth().hashCode(); - } - hash = (37 * hash) + LOGGING_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getLoggingService().hashCode(); - hash = (37 * hash) + MONITORING_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getMonitoringService().hashCode(); - hash = (37 * hash) + NETWORK_FIELD_NUMBER; - hash = (53 * hash) + getNetwork().hashCode(); - hash = (37 * hash) + CLUSTER_IPV4_CIDR_FIELD_NUMBER; - hash = (53 * hash) + getClusterIpv4Cidr().hashCode(); - if (hasAddonsConfig()) { - hash = (37 * hash) + ADDONS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getAddonsConfig().hashCode(); - } - hash = (37 * hash) + SUBNETWORK_FIELD_NUMBER; - hash = (53 * hash) + getSubnetwork().hashCode(); - if (getNodePoolsCount() > 0) { - hash = (37 * hash) + NODE_POOLS_FIELD_NUMBER; - hash = (53 * hash) + getNodePoolsList().hashCode(); - } - if (getLocationsCount() > 0) { - hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; - hash = (53 * hash) + getLocationsList().hashCode(); - } - hash = (37 * hash) + ENABLE_KUBERNETES_ALPHA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableKubernetesAlpha()); - if (!internalGetResourceLabels().getMap().isEmpty()) { - hash = (37 * hash) + RESOURCE_LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetResourceLabels().hashCode(); - } - hash = (37 * hash) + LABEL_FINGERPRINT_FIELD_NUMBER; - hash = (53 * hash) + getLabelFingerprint().hashCode(); - if (hasLegacyAbac()) { - hash = (37 * hash) + LEGACY_ABAC_FIELD_NUMBER; - hash = (53 * hash) + getLegacyAbac().hashCode(); - } - if (hasNetworkPolicy()) { - hash = (37 * hash) + NETWORK_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getNetworkPolicy().hashCode(); - } - if (hasIpAllocationPolicy()) { - hash = (37 * hash) + IP_ALLOCATION_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getIpAllocationPolicy().hashCode(); - } - if (hasMasterAuthorizedNetworksConfig()) { - hash = (37 * hash) + MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getMasterAuthorizedNetworksConfig().hashCode(); - } - if (hasMaintenancePolicy()) { - hash = (37 * hash) + MAINTENANCE_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getMaintenancePolicy().hashCode(); - } - if (hasBinaryAuthorization()) { - hash = (37 * hash) + BINARY_AUTHORIZATION_FIELD_NUMBER; - hash = (53 * hash) + getBinaryAuthorization().hashCode(); - } - if (hasAutoscaling()) { - hash = (37 * hash) + AUTOSCALING_FIELD_NUMBER; - hash = (53 * hash) + getAutoscaling().hashCode(); - } - if (hasNetworkConfig()) { - hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getNetworkConfig().hashCode(); - } - if (hasDefaultMaxPodsConstraint()) { - hash = (37 * hash) + DEFAULT_MAX_PODS_CONSTRAINT_FIELD_NUMBER; - hash = (53 * hash) + getDefaultMaxPodsConstraint().hashCode(); - } - if (hasResourceUsageExportConfig()) { - hash = (37 * hash) + RESOURCE_USAGE_EXPORT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getResourceUsageExportConfig().hashCode(); - } - if (hasAuthenticatorGroupsConfig()) { - hash = (37 * hash) + AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getAuthenticatorGroupsConfig().hashCode(); - } - if (hasPrivateClusterConfig()) { - hash = (37 * hash) + PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getPrivateClusterConfig().hashCode(); - } - if (hasDatabaseEncryption()) { - hash = (37 * hash) + DATABASE_ENCRYPTION_FIELD_NUMBER; - hash = (53 * hash) + getDatabaseEncryption().hashCode(); - } - if (hasVerticalPodAutoscaling()) { - hash = (37 * hash) + VERTICAL_POD_AUTOSCALING_FIELD_NUMBER; - hash = (53 * hash) + getVerticalPodAutoscaling().hashCode(); - } - if (hasShieldedNodes()) { - hash = (37 * hash) + SHIELDED_NODES_FIELD_NUMBER; - hash = (53 * hash) + getShieldedNodes().hashCode(); - } - if (hasReleaseChannel()) { - hash = (37 * hash) + RELEASE_CHANNEL_FIELD_NUMBER; - hash = (53 * hash) + getReleaseChannel().hashCode(); - } - if (hasWorkloadIdentityConfig()) { - hash = (37 * hash) + WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getWorkloadIdentityConfig().hashCode(); - } - hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; - hash = (53 * hash) + getSelfLink().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + getEndpoint().hashCode(); - hash = (37 * hash) + INITIAL_CLUSTER_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getInitialClusterVersion().hashCode(); - hash = (37 * hash) + CURRENT_MASTER_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getCurrentMasterVersion().hashCode(); - hash = (37 * hash) + CURRENT_NODE_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getCurrentNodeVersion().hashCode(); - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; - hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getStatusMessage().hashCode(); - hash = (37 * hash) + NODE_IPV4_CIDR_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getNodeIpv4CidrSize(); - hash = (37 * hash) + SERVICES_IPV4_CIDR_FIELD_NUMBER; - hash = (53 * hash) + getServicesIpv4Cidr().hashCode(); - if (getInstanceGroupUrlsCount() > 0) { - hash = (37 * hash) + INSTANCE_GROUP_URLS_FIELD_NUMBER; - hash = (53 * hash) + getInstanceGroupUrlsList().hashCode(); - } - hash = (37 * hash) + CURRENT_NODE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getCurrentNodeCount(); - hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getExpireTime().hashCode(); - hash = (37 * hash) + LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getLocation().hashCode(); - hash = (37 * hash) + ENABLE_TPU_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableTpu()); - hash = (37 * hash) + TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getTpuIpv4CidrBlock().hashCode(); - if (getConditionsCount() > 0) { - hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; - hash = (53 * hash) + getConditionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.Cluster parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.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.container.v1.Cluster parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.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.container.v1.Cluster parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.Cluster parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.Cluster parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.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.container.v1.Cluster parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.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.container.v1.Cluster parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.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.container.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; - } - /** - * - * - *
-   * A Google Kubernetes Engine cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.Cluster} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.Cluster) - com.google.container.v1.ClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Cluster_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 15: - return internalGetResourceLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 15: - return internalGetMutableResourceLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Cluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.Cluster.class, com.google.container.v1.Cluster.Builder.class); - } - - // Construct using com.google.container.v1.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) { - getNodePoolsFieldBuilder(); - getConditionsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - description_ = ""; - - initialNodeCount_ = 0; - - if (nodeConfigBuilder_ == null) { - nodeConfig_ = null; - } else { - nodeConfig_ = null; - nodeConfigBuilder_ = null; - } - if (masterAuthBuilder_ == null) { - masterAuth_ = null; - } else { - masterAuth_ = null; - masterAuthBuilder_ = null; - } - loggingService_ = ""; - - monitoringService_ = ""; - - network_ = ""; - - clusterIpv4Cidr_ = ""; - - if (addonsConfigBuilder_ == null) { - addonsConfig_ = null; - } else { - addonsConfig_ = null; - addonsConfigBuilder_ = null; - } - subnetwork_ = ""; - - if (nodePoolsBuilder_ == null) { - nodePools_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - nodePoolsBuilder_.clear(); - } - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - enableKubernetesAlpha_ = false; - - internalGetMutableResourceLabels().clear(); - labelFingerprint_ = ""; - - if (legacyAbacBuilder_ == null) { - legacyAbac_ = null; - } else { - legacyAbac_ = null; - legacyAbacBuilder_ = null; - } - if (networkPolicyBuilder_ == null) { - networkPolicy_ = null; - } else { - networkPolicy_ = null; - networkPolicyBuilder_ = null; - } - if (ipAllocationPolicyBuilder_ == null) { - ipAllocationPolicy_ = null; - } else { - ipAllocationPolicy_ = null; - ipAllocationPolicyBuilder_ = null; - } - if (masterAuthorizedNetworksConfigBuilder_ == null) { - masterAuthorizedNetworksConfig_ = null; - } else { - masterAuthorizedNetworksConfig_ = null; - masterAuthorizedNetworksConfigBuilder_ = null; - } - if (maintenancePolicyBuilder_ == null) { - maintenancePolicy_ = null; - } else { - maintenancePolicy_ = null; - maintenancePolicyBuilder_ = null; - } - if (binaryAuthorizationBuilder_ == null) { - binaryAuthorization_ = null; - } else { - binaryAuthorization_ = null; - binaryAuthorizationBuilder_ = null; - } - if (autoscalingBuilder_ == null) { - autoscaling_ = null; - } else { - autoscaling_ = null; - autoscalingBuilder_ = null; - } - if (networkConfigBuilder_ == null) { - networkConfig_ = null; - } else { - networkConfig_ = null; - networkConfigBuilder_ = null; - } - if (defaultMaxPodsConstraintBuilder_ == null) { - defaultMaxPodsConstraint_ = null; - } else { - defaultMaxPodsConstraint_ = null; - defaultMaxPodsConstraintBuilder_ = null; - } - if (resourceUsageExportConfigBuilder_ == null) { - resourceUsageExportConfig_ = null; - } else { - resourceUsageExportConfig_ = null; - resourceUsageExportConfigBuilder_ = null; - } - if (authenticatorGroupsConfigBuilder_ == null) { - authenticatorGroupsConfig_ = null; - } else { - authenticatorGroupsConfig_ = null; - authenticatorGroupsConfigBuilder_ = null; - } - if (privateClusterConfigBuilder_ == null) { - privateClusterConfig_ = null; - } else { - privateClusterConfig_ = null; - privateClusterConfigBuilder_ = null; - } - if (databaseEncryptionBuilder_ == null) { - databaseEncryption_ = null; - } else { - databaseEncryption_ = null; - databaseEncryptionBuilder_ = null; - } - if (verticalPodAutoscalingBuilder_ == null) { - verticalPodAutoscaling_ = null; - } else { - verticalPodAutoscaling_ = null; - verticalPodAutoscalingBuilder_ = null; - } - if (shieldedNodesBuilder_ == null) { - shieldedNodes_ = null; - } else { - shieldedNodes_ = null; - shieldedNodesBuilder_ = null; - } - if (releaseChannelBuilder_ == null) { - releaseChannel_ = null; - } else { - releaseChannel_ = null; - releaseChannelBuilder_ = null; - } - if (workloadIdentityConfigBuilder_ == null) { - workloadIdentityConfig_ = null; - } else { - workloadIdentityConfig_ = null; - workloadIdentityConfigBuilder_ = null; - } - selfLink_ = ""; - - zone_ = ""; - - endpoint_ = ""; - - initialClusterVersion_ = ""; - - currentMasterVersion_ = ""; - - currentNodeVersion_ = ""; - - createTime_ = ""; - - status_ = 0; - - statusMessage_ = ""; - - nodeIpv4CidrSize_ = 0; - - servicesIpv4Cidr_ = ""; - - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - currentNodeCount_ = 0; - - expireTime_ = ""; - - location_ = ""; - - enableTpu_ = false; - - tpuIpv4CidrBlock_ = ""; - - if (conditionsBuilder_ == null) { - conditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - conditionsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Cluster_descriptor; - } - - @java.lang.Override - public com.google.container.v1.Cluster getDefaultInstanceForType() { - return com.google.container.v1.Cluster.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.Cluster build() { - com.google.container.v1.Cluster result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.Cluster buildPartial() { - com.google.container.v1.Cluster result = new com.google.container.v1.Cluster(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.description_ = description_; - result.initialNodeCount_ = initialNodeCount_; - if (nodeConfigBuilder_ == null) { - result.nodeConfig_ = nodeConfig_; - } else { - result.nodeConfig_ = nodeConfigBuilder_.build(); - } - if (masterAuthBuilder_ == null) { - result.masterAuth_ = masterAuth_; - } else { - result.masterAuth_ = masterAuthBuilder_.build(); - } - result.loggingService_ = loggingService_; - result.monitoringService_ = monitoringService_; - result.network_ = network_; - result.clusterIpv4Cidr_ = clusterIpv4Cidr_; - if (addonsConfigBuilder_ == null) { - result.addonsConfig_ = addonsConfig_; - } else { - result.addonsConfig_ = addonsConfigBuilder_.build(); - } - result.subnetwork_ = subnetwork_; - if (nodePoolsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodePools_ = java.util.Collections.unmodifiableList(nodePools_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodePools_ = nodePools_; - } else { - result.nodePools_ = nodePoolsBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { - locations_ = locations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.locations_ = locations_; - result.enableKubernetesAlpha_ = enableKubernetesAlpha_; - result.resourceLabels_ = internalGetResourceLabels(); - result.resourceLabels_.makeImmutable(); - result.labelFingerprint_ = labelFingerprint_; - if (legacyAbacBuilder_ == null) { - result.legacyAbac_ = legacyAbac_; - } else { - result.legacyAbac_ = legacyAbacBuilder_.build(); - } - if (networkPolicyBuilder_ == null) { - result.networkPolicy_ = networkPolicy_; - } else { - result.networkPolicy_ = networkPolicyBuilder_.build(); - } - if (ipAllocationPolicyBuilder_ == null) { - result.ipAllocationPolicy_ = ipAllocationPolicy_; - } else { - result.ipAllocationPolicy_ = ipAllocationPolicyBuilder_.build(); - } - if (masterAuthorizedNetworksConfigBuilder_ == null) { - result.masterAuthorizedNetworksConfig_ = masterAuthorizedNetworksConfig_; - } else { - result.masterAuthorizedNetworksConfig_ = masterAuthorizedNetworksConfigBuilder_.build(); - } - if (maintenancePolicyBuilder_ == null) { - result.maintenancePolicy_ = maintenancePolicy_; - } else { - result.maintenancePolicy_ = maintenancePolicyBuilder_.build(); - } - if (binaryAuthorizationBuilder_ == null) { - result.binaryAuthorization_ = binaryAuthorization_; - } else { - result.binaryAuthorization_ = binaryAuthorizationBuilder_.build(); - } - if (autoscalingBuilder_ == null) { - result.autoscaling_ = autoscaling_; - } else { - result.autoscaling_ = autoscalingBuilder_.build(); - } - if (networkConfigBuilder_ == null) { - result.networkConfig_ = networkConfig_; - } else { - result.networkConfig_ = networkConfigBuilder_.build(); - } - if (defaultMaxPodsConstraintBuilder_ == null) { - result.defaultMaxPodsConstraint_ = defaultMaxPodsConstraint_; - } else { - result.defaultMaxPodsConstraint_ = defaultMaxPodsConstraintBuilder_.build(); - } - if (resourceUsageExportConfigBuilder_ == null) { - result.resourceUsageExportConfig_ = resourceUsageExportConfig_; - } else { - result.resourceUsageExportConfig_ = resourceUsageExportConfigBuilder_.build(); - } - if (authenticatorGroupsConfigBuilder_ == null) { - result.authenticatorGroupsConfig_ = authenticatorGroupsConfig_; - } else { - result.authenticatorGroupsConfig_ = authenticatorGroupsConfigBuilder_.build(); - } - if (privateClusterConfigBuilder_ == null) { - result.privateClusterConfig_ = privateClusterConfig_; - } else { - result.privateClusterConfig_ = privateClusterConfigBuilder_.build(); - } - if (databaseEncryptionBuilder_ == null) { - result.databaseEncryption_ = databaseEncryption_; - } else { - result.databaseEncryption_ = databaseEncryptionBuilder_.build(); - } - if (verticalPodAutoscalingBuilder_ == null) { - result.verticalPodAutoscaling_ = verticalPodAutoscaling_; - } else { - result.verticalPodAutoscaling_ = verticalPodAutoscalingBuilder_.build(); - } - if (shieldedNodesBuilder_ == null) { - result.shieldedNodes_ = shieldedNodes_; - } else { - result.shieldedNodes_ = shieldedNodesBuilder_.build(); - } - if (releaseChannelBuilder_ == null) { - result.releaseChannel_ = releaseChannel_; - } else { - result.releaseChannel_ = releaseChannelBuilder_.build(); - } - if (workloadIdentityConfigBuilder_ == null) { - result.workloadIdentityConfig_ = workloadIdentityConfig_; - } else { - result.workloadIdentityConfig_ = workloadIdentityConfigBuilder_.build(); - } - result.selfLink_ = selfLink_; - result.zone_ = zone_; - result.endpoint_ = endpoint_; - result.initialClusterVersion_ = initialClusterVersion_; - result.currentMasterVersion_ = currentMasterVersion_; - result.currentNodeVersion_ = currentNodeVersion_; - result.createTime_ = createTime_; - result.status_ = status_; - result.statusMessage_ = statusMessage_; - result.nodeIpv4CidrSize_ = nodeIpv4CidrSize_; - result.servicesIpv4Cidr_ = servicesIpv4Cidr_; - if (((bitField0_ & 0x00000008) != 0)) { - instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.instanceGroupUrls_ = instanceGroupUrls_; - result.currentNodeCount_ = currentNodeCount_; - result.expireTime_ = expireTime_; - result.location_ = location_; - result.enableTpu_ = enableTpu_; - result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; - if (conditionsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - conditions_ = java.util.Collections.unmodifiableList(conditions_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.conditions_ = conditions_; - } else { - result.conditions_ = conditionsBuilder_.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.container.v1.Cluster) { - return mergeFrom((com.google.container.v1.Cluster) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.Cluster other) { - if (other == com.google.container.v1.Cluster.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (other.getInitialNodeCount() != 0) { - setInitialNodeCount(other.getInitialNodeCount()); - } - if (other.hasNodeConfig()) { - mergeNodeConfig(other.getNodeConfig()); - } - if (other.hasMasterAuth()) { - mergeMasterAuth(other.getMasterAuth()); - } - if (!other.getLoggingService().isEmpty()) { - loggingService_ = other.loggingService_; - onChanged(); - } - if (!other.getMonitoringService().isEmpty()) { - monitoringService_ = other.monitoringService_; - onChanged(); - } - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - onChanged(); - } - if (!other.getClusterIpv4Cidr().isEmpty()) { - clusterIpv4Cidr_ = other.clusterIpv4Cidr_; - onChanged(); - } - if (other.hasAddonsConfig()) { - mergeAddonsConfig(other.getAddonsConfig()); - } - if (!other.getSubnetwork().isEmpty()) { - subnetwork_ = other.subnetwork_; - onChanged(); - } - if (nodePoolsBuilder_ == null) { - if (!other.nodePools_.isEmpty()) { - if (nodePools_.isEmpty()) { - nodePools_ = other.nodePools_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodePoolsIsMutable(); - nodePools_.addAll(other.nodePools_); - } - onChanged(); - } - } else { - if (!other.nodePools_.isEmpty()) { - if (nodePoolsBuilder_.isEmpty()) { - nodePoolsBuilder_.dispose(); - nodePoolsBuilder_ = null; - nodePools_ = other.nodePools_; - bitField0_ = (bitField0_ & ~0x00000001); - nodePoolsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNodePoolsFieldBuilder() - : null; - } else { - nodePoolsBuilder_.addAllMessages(other.nodePools_); - } - } - } - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - if (other.getEnableKubernetesAlpha() != false) { - setEnableKubernetesAlpha(other.getEnableKubernetesAlpha()); - } - internalGetMutableResourceLabels().mergeFrom(other.internalGetResourceLabels()); - if (!other.getLabelFingerprint().isEmpty()) { - labelFingerprint_ = other.labelFingerprint_; - onChanged(); - } - if (other.hasLegacyAbac()) { - mergeLegacyAbac(other.getLegacyAbac()); - } - if (other.hasNetworkPolicy()) { - mergeNetworkPolicy(other.getNetworkPolicy()); - } - if (other.hasIpAllocationPolicy()) { - mergeIpAllocationPolicy(other.getIpAllocationPolicy()); - } - if (other.hasMasterAuthorizedNetworksConfig()) { - mergeMasterAuthorizedNetworksConfig(other.getMasterAuthorizedNetworksConfig()); - } - if (other.hasMaintenancePolicy()) { - mergeMaintenancePolicy(other.getMaintenancePolicy()); - } - if (other.hasBinaryAuthorization()) { - mergeBinaryAuthorization(other.getBinaryAuthorization()); - } - if (other.hasAutoscaling()) { - mergeAutoscaling(other.getAutoscaling()); - } - if (other.hasNetworkConfig()) { - mergeNetworkConfig(other.getNetworkConfig()); - } - if (other.hasDefaultMaxPodsConstraint()) { - mergeDefaultMaxPodsConstraint(other.getDefaultMaxPodsConstraint()); - } - if (other.hasResourceUsageExportConfig()) { - mergeResourceUsageExportConfig(other.getResourceUsageExportConfig()); - } - if (other.hasAuthenticatorGroupsConfig()) { - mergeAuthenticatorGroupsConfig(other.getAuthenticatorGroupsConfig()); - } - if (other.hasPrivateClusterConfig()) { - mergePrivateClusterConfig(other.getPrivateClusterConfig()); - } - if (other.hasDatabaseEncryption()) { - mergeDatabaseEncryption(other.getDatabaseEncryption()); - } - if (other.hasVerticalPodAutoscaling()) { - mergeVerticalPodAutoscaling(other.getVerticalPodAutoscaling()); - } - if (other.hasShieldedNodes()) { - mergeShieldedNodes(other.getShieldedNodes()); - } - if (other.hasReleaseChannel()) { - mergeReleaseChannel(other.getReleaseChannel()); - } - if (other.hasWorkloadIdentityConfig()) { - mergeWorkloadIdentityConfig(other.getWorkloadIdentityConfig()); - } - if (!other.getSelfLink().isEmpty()) { - selfLink_ = other.selfLink_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getEndpoint().isEmpty()) { - endpoint_ = other.endpoint_; - onChanged(); - } - if (!other.getInitialClusterVersion().isEmpty()) { - initialClusterVersion_ = other.initialClusterVersion_; - onChanged(); - } - if (!other.getCurrentMasterVersion().isEmpty()) { - currentMasterVersion_ = other.currentMasterVersion_; - onChanged(); - } - if (!other.getCurrentNodeVersion().isEmpty()) { - currentNodeVersion_ = other.currentNodeVersion_; - onChanged(); - } - if (!other.getCreateTime().isEmpty()) { - createTime_ = other.createTime_; - onChanged(); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - onChanged(); - } - if (other.getNodeIpv4CidrSize() != 0) { - setNodeIpv4CidrSize(other.getNodeIpv4CidrSize()); - } - if (!other.getServicesIpv4Cidr().isEmpty()) { - servicesIpv4Cidr_ = other.servicesIpv4Cidr_; - onChanged(); - } - if (!other.instanceGroupUrls_.isEmpty()) { - if (instanceGroupUrls_.isEmpty()) { - instanceGroupUrls_ = other.instanceGroupUrls_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.addAll(other.instanceGroupUrls_); - } - onChanged(); - } - if (other.getCurrentNodeCount() != 0) { - setCurrentNodeCount(other.getCurrentNodeCount()); - } - if (!other.getExpireTime().isEmpty()) { - expireTime_ = other.expireTime_; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - onChanged(); - } - if (other.getEnableTpu() != false) { - setEnableTpu(other.getEnableTpu()); - } - if (!other.getTpuIpv4CidrBlock().isEmpty()) { - tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; - onChanged(); - } - if (conditionsBuilder_ == null) { - if (!other.conditions_.isEmpty()) { - if (conditions_.isEmpty()) { - conditions_ = other.conditions_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureConditionsIsMutable(); - conditions_.addAll(other.conditions_); - } - onChanged(); - } - } else { - if (!other.conditions_.isEmpty()) { - if (conditionsBuilder_.isEmpty()) { - conditionsBuilder_.dispose(); - conditionsBuilder_ = null; - conditions_ = other.conditions_; - bitField0_ = (bitField0_ & ~0x00000010); - conditionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getConditionsFieldBuilder() - : null; - } else { - conditionsBuilder_.addAllMessages(other.conditions_); - } - } - } - 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.container.v1.Cluster parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.Cluster) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name of this cluster. The name must be unique within this project
-     * and location (e.g. zone or region), and can be up to 40 characters with
-     * the following restrictions:
-     * * Lowercase letters, numbers, and hyphens only.
-     * * Must start with a letter.
-     * * Must end with a number or a letter.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of this cluster. The name must be unique within this project
-     * and location (e.g. zone or region), and can be up to 40 characters with
-     * the following restrictions:
-     * * Lowercase letters, numbers, and hyphens only.
-     * * Must start with a letter.
-     * * Must end with a number or a letter.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of this cluster. The name must be unique within this project
-     * and location (e.g. zone or region), and can be up to 40 characters with
-     * the following restrictions:
-     * * Lowercase letters, numbers, and hyphens only.
-     * * Must start with a letter.
-     * * Must end with a number or a letter.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of this cluster. The name must be unique within this project
-     * and location (e.g. zone or region), and can be up to 40 characters with
-     * the following restrictions:
-     * * Lowercase letters, numbers, and hyphens only.
-     * * Must start with a letter.
-     * * Must end with a number or a letter.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of this cluster. The name must be unique within this project
-     * and location (e.g. zone or region), and can be up to 40 characters with
-     * the following restrictions:
-     * * Lowercase letters, numbers, and hyphens only.
-     * * Must start with a letter.
-     * * Must end with a number or a letter.
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * - * - *
-     * An optional description of this cluster.
-     * 
- * - * string description = 2; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * An optional description of this cluster.
-     * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * An optional description of this cluster.
-     * 
- * - * string description = 2; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * An optional description of this cluster.
-     * 
- * - * string description = 2; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * - * - *
-     * An optional description of this cluster.
-     * 
- * - * string description = 2; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private int initialNodeCount_; - /** - * - * - *
-     * The number of nodes to create in this cluster. You must ensure that your
-     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-     * is sufficient for this number of instances. You must also have available
-     * firewall and routes quota.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "node_config") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * This field is deprecated, use node_pool.initial_node_count instead.
-     * 
- * - * int32 initial_node_count = 3 [deprecated = true]; - * - * @return The initialNodeCount. - */ - @java.lang.Override - @java.lang.Deprecated - public int getInitialNodeCount() { - return initialNodeCount_; - } - /** - * - * - *
-     * The number of nodes to create in this cluster. You must ensure that your
-     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-     * is sufficient for this number of instances. You must also have available
-     * firewall and routes quota.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "node_config") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * This field is deprecated, use node_pool.initial_node_count instead.
-     * 
- * - * int32 initial_node_count = 3 [deprecated = true]; - * - * @param value The initialNodeCount to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setInitialNodeCount(int value) { - - initialNodeCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The number of nodes to create in this cluster. You must ensure that your
-     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-     * is sufficient for this number of instances. You must also have available
-     * firewall and routes quota.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "node_config") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * This field is deprecated, use node_pool.initial_node_count instead.
-     * 
- * - * int32 initial_node_count = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearInitialNodeCount() { - - initialNodeCount_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1.NodeConfig nodeConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeConfig, - com.google.container.v1.NodeConfig.Builder, - com.google.container.v1.NodeConfigOrBuilder> - nodeConfigBuilder_; - /** - * - * - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - * - * @return Whether the nodeConfig field is set. - */ - @java.lang.Deprecated - public boolean hasNodeConfig() { - return nodeConfigBuilder_ != null || nodeConfig_ != null; - } - /** - * - * - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - * - * @return The nodeConfig. - */ - @java.lang.Deprecated - public com.google.container.v1.NodeConfig getNodeConfig() { - if (nodeConfigBuilder_ == null) { - return nodeConfig_ == null - ? com.google.container.v1.NodeConfig.getDefaultInstance() - : nodeConfig_; - } else { - return nodeConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated - public Builder setNodeConfig(com.google.container.v1.NodeConfig value) { - if (nodeConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodeConfig_ = value; - onChanged(); - } else { - nodeConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated - public Builder setNodeConfig(com.google.container.v1.NodeConfig.Builder builderForValue) { - if (nodeConfigBuilder_ == null) { - nodeConfig_ = builderForValue.build(); - onChanged(); - } else { - nodeConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated - public Builder mergeNodeConfig(com.google.container.v1.NodeConfig value) { - if (nodeConfigBuilder_ == null) { - if (nodeConfig_ != null) { - nodeConfig_ = - com.google.container.v1.NodeConfig.newBuilder(nodeConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - nodeConfig_ = value; - } - onChanged(); - } else { - nodeConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated - public Builder clearNodeConfig() { - if (nodeConfigBuilder_ == null) { - nodeConfig_ = null; - onChanged(); - } else { - nodeConfig_ = null; - nodeConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated - public com.google.container.v1.NodeConfig.Builder getNodeConfigBuilder() { - - onChanged(); - return getNodeConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated - public com.google.container.v1.NodeConfigOrBuilder getNodeConfigOrBuilder() { - if (nodeConfigBuilder_ != null) { - return nodeConfigBuilder_.getMessageOrBuilder(); - } else { - return nodeConfig_ == null - ? com.google.container.v1.NodeConfig.getDefaultInstance() - : nodeConfig_; - } - } - /** - * - * - *
-     * Parameters used in creating the cluster's nodes.
-     * For requests, this field should only be used in lieu of a
-     * "node_pool" object, since this configuration (along with the
-     * "initial_node_count") will be used to create a "NodePool" object with an
-     * auto-generated name. Do not use this and a node_pool at the same time.
-     * For responses, this field will be populated with the node configuration of
-     * the first node pool. (For configuration of each node pool, see
-     * `node_pool.config`)
-     * If unspecified, the defaults are used.
-     * This field is deprecated, use node_pool.config instead.
-     * 
- * - * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeConfig, - com.google.container.v1.NodeConfig.Builder, - com.google.container.v1.NodeConfigOrBuilder> - getNodeConfigFieldBuilder() { - if (nodeConfigBuilder_ == null) { - nodeConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeConfig, - com.google.container.v1.NodeConfig.Builder, - com.google.container.v1.NodeConfigOrBuilder>( - getNodeConfig(), getParentForChildren(), isClean()); - nodeConfig_ = null; - } - return nodeConfigBuilder_; - } - - private com.google.container.v1.MasterAuth masterAuth_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuth, - com.google.container.v1.MasterAuth.Builder, - com.google.container.v1.MasterAuthOrBuilder> - masterAuthBuilder_; - /** - * - * - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1.MasterAuth master_auth = 5; - * - * @return Whether the masterAuth field is set. - */ - public boolean hasMasterAuth() { - return masterAuthBuilder_ != null || masterAuth_ != null; - } - /** - * - * - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1.MasterAuth master_auth = 5; - * - * @return The masterAuth. - */ - public com.google.container.v1.MasterAuth getMasterAuth() { - if (masterAuthBuilder_ == null) { - return masterAuth_ == null - ? com.google.container.v1.MasterAuth.getDefaultInstance() - : masterAuth_; - } else { - return masterAuthBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1.MasterAuth master_auth = 5; - */ - public Builder setMasterAuth(com.google.container.v1.MasterAuth value) { - if (masterAuthBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - masterAuth_ = value; - onChanged(); - } else { - masterAuthBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1.MasterAuth master_auth = 5; - */ - public Builder setMasterAuth(com.google.container.v1.MasterAuth.Builder builderForValue) { - if (masterAuthBuilder_ == null) { - masterAuth_ = builderForValue.build(); - onChanged(); - } else { - masterAuthBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1.MasterAuth master_auth = 5; - */ - public Builder mergeMasterAuth(com.google.container.v1.MasterAuth value) { - if (masterAuthBuilder_ == null) { - if (masterAuth_ != null) { - masterAuth_ = - com.google.container.v1.MasterAuth.newBuilder(masterAuth_) - .mergeFrom(value) - .buildPartial(); - } else { - masterAuth_ = value; - } - onChanged(); - } else { - masterAuthBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1.MasterAuth master_auth = 5; - */ - public Builder clearMasterAuth() { - if (masterAuthBuilder_ == null) { - masterAuth_ = null; - onChanged(); - } else { - masterAuth_ = null; - masterAuthBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1.MasterAuth master_auth = 5; - */ - public com.google.container.v1.MasterAuth.Builder getMasterAuthBuilder() { - - onChanged(); - return getMasterAuthFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1.MasterAuth master_auth = 5; - */ - public com.google.container.v1.MasterAuthOrBuilder getMasterAuthOrBuilder() { - if (masterAuthBuilder_ != null) { - return masterAuthBuilder_.getMessageOrBuilder(); - } else { - return masterAuth_ == null - ? com.google.container.v1.MasterAuth.getDefaultInstance() - : masterAuth_; - } - } - /** - * - * - *
-     * The authentication information for accessing the master endpoint.
-     * If unspecified, the defaults are used:
-     * For clusters before v1.12, if master_auth is unspecified, `username` will
-     * be set to "admin", a random password will be generated, and a client
-     * certificate will be issued.
-     * 
- * - * .google.container.v1.MasterAuth master_auth = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuth, - com.google.container.v1.MasterAuth.Builder, - com.google.container.v1.MasterAuthOrBuilder> - getMasterAuthFieldBuilder() { - if (masterAuthBuilder_ == null) { - masterAuthBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuth, - com.google.container.v1.MasterAuth.Builder, - com.google.container.v1.MasterAuthOrBuilder>( - getMasterAuth(), getParentForChildren(), isClean()); - masterAuth_ = null; - } - return masterAuthBuilder_; - } - - private java.lang.Object loggingService_ = ""; - /** - * - * - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 6; - * - * @return The loggingService. - */ - public java.lang.String getLoggingService() { - java.lang.Object ref = loggingService_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - loggingService_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 6; - * - * @return The bytes for loggingService. - */ - public com.google.protobuf.ByteString getLoggingServiceBytes() { - java.lang.Object ref = loggingService_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - loggingService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 6; - * - * @param value The loggingService to set. - * @return This builder for chaining. - */ - public Builder setLoggingService(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - loggingService_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 6; - * - * @return This builder for chaining. - */ - public Builder clearLoggingService() { - - loggingService_ = getDefaultInstance().getLoggingService(); - onChanged(); - return this; - } - /** - * - * - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 6; - * - * @param value The bytes for loggingService to set. - * @return This builder for chaining. - */ - public Builder setLoggingServiceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - loggingService_ = value; - onChanged(); - return this; - } - - private java.lang.Object monitoringService_ = ""; - /** - * - * - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 7; - * - * @return The monitoringService. - */ - public java.lang.String getMonitoringService() { - java.lang.Object ref = monitoringService_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - monitoringService_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 7; - * - * @return The bytes for monitoringService. - */ - public com.google.protobuf.ByteString getMonitoringServiceBytes() { - java.lang.Object ref = monitoringService_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - monitoringService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 7; - * - * @param value The monitoringService to set. - * @return This builder for chaining. - */ - public Builder setMonitoringService(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - monitoringService_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 7; - * - * @return This builder for chaining. - */ - public Builder clearMonitoringService() { - - monitoringService_ = getDefaultInstance().getMonitoringService(); - onChanged(); - return this; - } - /** - * - * - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 7; - * - * @param value The bytes for monitoringService to set. - * @return This builder for chaining. - */ - public Builder setMonitoringServiceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - monitoringService_ = value; - onChanged(); - return this; - } - - private java.lang.Object network_ = ""; - /** - * - * - *
-     * The name of the Google Compute Engine
-     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. If left unspecified, the `default`
-     * network will be used.
-     * 
- * - * string network = 8; - * - * @return The network. - */ - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - network_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the Google Compute Engine
-     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. If left unspecified, the `default`
-     * network will be used.
-     * 
- * - * string network = 8; - * - * @return The bytes for network. - */ - public com.google.protobuf.ByteString getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the Google Compute Engine
-     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. If left unspecified, the `default`
-     * network will be used.
-     * 
- * - * string network = 8; - * - * @param value The network to set. - * @return This builder for chaining. - */ - public Builder setNetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - network_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the Google Compute Engine
-     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. If left unspecified, the `default`
-     * network will be used.
-     * 
- * - * string network = 8; - * - * @return This builder for chaining. - */ - public Builder clearNetwork() { - - network_ = getDefaultInstance().getNetwork(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the Google Compute Engine
-     * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. If left unspecified, the `default`
-     * network will be used.
-     * 
- * - * string network = 8; - * - * @param value The bytes for network to set. - * @return This builder for chaining. - */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - network_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterIpv4Cidr_ = ""; - /** - * - * - *
-     * The IP address range of the container pods in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`). Leave blank to have
-     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-     * 
- * - * string cluster_ipv4_cidr = 9; - * - * @return The clusterIpv4Cidr. - */ - public java.lang.String getClusterIpv4Cidr() { - java.lang.Object ref = clusterIpv4Cidr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterIpv4Cidr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The IP address range of the container pods in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`). Leave blank to have
-     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-     * 
- * - * string cluster_ipv4_cidr = 9; - * - * @return The bytes for clusterIpv4Cidr. - */ - public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { - java.lang.Object ref = clusterIpv4Cidr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The IP address range of the container pods in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`). Leave blank to have
-     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-     * 
- * - * string cluster_ipv4_cidr = 9; - * - * @param value The clusterIpv4Cidr to set. - * @return This builder for chaining. - */ - public Builder setClusterIpv4Cidr(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterIpv4Cidr_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The IP address range of the container pods in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`). Leave blank to have
-     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-     * 
- * - * string cluster_ipv4_cidr = 9; - * - * @return This builder for chaining. - */ - public Builder clearClusterIpv4Cidr() { - - clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); - onChanged(); - return this; - } - /** - * - * - *
-     * The IP address range of the container pods in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`). Leave blank to have
-     * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-     * 
- * - * string cluster_ipv4_cidr = 9; - * - * @param value The bytes for clusterIpv4Cidr to set. - * @return This builder for chaining. - */ - public Builder setClusterIpv4CidrBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterIpv4Cidr_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.AddonsConfig addonsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AddonsConfig, - com.google.container.v1.AddonsConfig.Builder, - com.google.container.v1.AddonsConfigOrBuilder> - addonsConfigBuilder_; - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - * - * @return Whether the addonsConfig field is set. - */ - public boolean hasAddonsConfig() { - return addonsConfigBuilder_ != null || addonsConfig_ != null; - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - * - * @return The addonsConfig. - */ - public com.google.container.v1.AddonsConfig getAddonsConfig() { - if (addonsConfigBuilder_ == null) { - return addonsConfig_ == null - ? com.google.container.v1.AddonsConfig.getDefaultInstance() - : addonsConfig_; - } else { - return addonsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - */ - public Builder setAddonsConfig(com.google.container.v1.AddonsConfig value) { - if (addonsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - addonsConfig_ = value; - onChanged(); - } else { - addonsConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - */ - public Builder setAddonsConfig(com.google.container.v1.AddonsConfig.Builder builderForValue) { - if (addonsConfigBuilder_ == null) { - addonsConfig_ = builderForValue.build(); - onChanged(); - } else { - addonsConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - */ - public Builder mergeAddonsConfig(com.google.container.v1.AddonsConfig value) { - if (addonsConfigBuilder_ == null) { - if (addonsConfig_ != null) { - addonsConfig_ = - com.google.container.v1.AddonsConfig.newBuilder(addonsConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - addonsConfig_ = value; - } - onChanged(); - } else { - addonsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - */ - public Builder clearAddonsConfig() { - if (addonsConfigBuilder_ == null) { - addonsConfig_ = null; - onChanged(); - } else { - addonsConfig_ = null; - addonsConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - */ - public com.google.container.v1.AddonsConfig.Builder getAddonsConfigBuilder() { - - onChanged(); - return getAddonsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - */ - public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { - if (addonsConfigBuilder_ != null) { - return addonsConfigBuilder_.getMessageOrBuilder(); - } else { - return addonsConfig_ == null - ? com.google.container.v1.AddonsConfig.getDefaultInstance() - : addonsConfig_; - } - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AddonsConfig, - com.google.container.v1.AddonsConfig.Builder, - com.google.container.v1.AddonsConfigOrBuilder> - getAddonsConfigFieldBuilder() { - if (addonsConfigBuilder_ == null) { - addonsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AddonsConfig, - com.google.container.v1.AddonsConfig.Builder, - com.google.container.v1.AddonsConfigOrBuilder>( - getAddonsConfig(), getParentForChildren(), isClean()); - addonsConfig_ = null; - } - return addonsConfigBuilder_; - } - - private java.lang.Object subnetwork_ = ""; - /** - * - * - *
-     * The name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-     * the cluster is connected.
-     * 
- * - * string subnetwork = 11; - * - * @return The subnetwork. - */ - public java.lang.String getSubnetwork() { - java.lang.Object ref = subnetwork_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetwork_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-     * the cluster is connected.
-     * 
- * - * string subnetwork = 11; - * - * @return The bytes for subnetwork. - */ - public com.google.protobuf.ByteString getSubnetworkBytes() { - java.lang.Object ref = subnetwork_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - subnetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-     * the cluster is connected.
-     * 
- * - * string subnetwork = 11; - * - * @param value The subnetwork to set. - * @return This builder for chaining. - */ - public Builder setSubnetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - subnetwork_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-     * the cluster is connected.
-     * 
- * - * string subnetwork = 11; - * - * @return This builder for chaining. - */ - public Builder clearSubnetwork() { - - subnetwork_ = getDefaultInstance().getSubnetwork(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-     * the cluster is connected.
-     * 
- * - * string subnetwork = 11; - * - * @param value The bytes for subnetwork to set. - * @return This builder for chaining. - */ - public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - subnetwork_ = value; - onChanged(); - return this; - } - - private java.util.List nodePools_ = - java.util.Collections.emptyList(); - - private void ensureNodePoolsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nodePools_ = new java.util.ArrayList(nodePools_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodePool, - com.google.container.v1.NodePool.Builder, - com.google.container.v1.NodePoolOrBuilder> - nodePoolsBuilder_; - - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - public java.util.List getNodePoolsList() { - if (nodePoolsBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodePools_); - } else { - return nodePoolsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - public int getNodePoolsCount() { - if (nodePoolsBuilder_ == null) { - return nodePools_.size(); - } else { - return nodePoolsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - public com.google.container.v1.NodePool getNodePools(int index) { - if (nodePoolsBuilder_ == null) { - return nodePools_.get(index); - } else { - return nodePoolsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - public Builder setNodePools(int index, com.google.container.v1.NodePool value) { - if (nodePoolsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodePoolsIsMutable(); - nodePools_.set(index, value); - onChanged(); - } else { - nodePoolsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - public Builder setNodePools( - int index, com.google.container.v1.NodePool.Builder builderForValue) { - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - nodePools_.set(index, builderForValue.build()); - onChanged(); - } else { - nodePoolsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - public Builder addNodePools(com.google.container.v1.NodePool value) { - if (nodePoolsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodePoolsIsMutable(); - nodePools_.add(value); - onChanged(); - } else { - nodePoolsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - public Builder addNodePools(int index, com.google.container.v1.NodePool value) { - if (nodePoolsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodePoolsIsMutable(); - nodePools_.add(index, value); - onChanged(); - } else { - nodePoolsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - public Builder addNodePools(com.google.container.v1.NodePool.Builder builderForValue) { - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - nodePools_.add(builderForValue.build()); - onChanged(); - } else { - nodePoolsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - public Builder addNodePools( - int index, com.google.container.v1.NodePool.Builder builderForValue) { - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - nodePools_.add(index, builderForValue.build()); - onChanged(); - } else { - nodePoolsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - public Builder addAllNodePools( - java.lang.Iterable values) { - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodePools_); - onChanged(); - } else { - nodePoolsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - public Builder clearNodePools() { - if (nodePoolsBuilder_ == null) { - nodePools_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodePoolsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - public Builder removeNodePools(int index) { - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - nodePools_.remove(index); - onChanged(); - } else { - nodePoolsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - public com.google.container.v1.NodePool.Builder getNodePoolsBuilder(int index) { - return getNodePoolsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - public com.google.container.v1.NodePoolOrBuilder getNodePoolsOrBuilder(int index) { - if (nodePoolsBuilder_ == null) { - return nodePools_.get(index); - } else { - return nodePoolsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - public java.util.List - getNodePoolsOrBuilderList() { - if (nodePoolsBuilder_ != null) { - return nodePoolsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodePools_); - } - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - public com.google.container.v1.NodePool.Builder addNodePoolsBuilder() { - return getNodePoolsFieldBuilder() - .addBuilder(com.google.container.v1.NodePool.getDefaultInstance()); - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - public com.google.container.v1.NodePool.Builder addNodePoolsBuilder(int index) { - return getNodePoolsFieldBuilder() - .addBuilder(index, com.google.container.v1.NodePool.getDefaultInstance()); - } - /** - * - * - *
-     * The node pools associated with this cluster.
-     * This field should not be set if "node_config" or "initial_node_count" are
-     * specified.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - public java.util.List getNodePoolsBuilderList() { - return getNodePoolsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodePool, - com.google.container.v1.NodePool.Builder, - com.google.container.v1.NodePoolOrBuilder> - getNodePoolsFieldBuilder() { - if (nodePoolsBuilder_ == null) { - nodePoolsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodePool, - com.google.container.v1.NodePool.Builder, - com.google.container.v1.NodePoolOrBuilder>( - nodePools_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - nodePools_ = null; - } - return nodePoolsBuilder_; - } - - private com.google.protobuf.LazyStringList locations_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureLocationsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - locations_ = new com.google.protobuf.LazyStringArrayList(locations_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList getLocationsList() { - return locations_.getUnmodifiableView(); - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * - * @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); - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * - * @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); - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * - * @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; - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * - * @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; - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * - * @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; - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * - * @return This builder for chaining. - */ - public Builder clearLocations() { - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This field provides a default value if
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * are not specified during node pool creation.
-     * Warning: changing cluster locations will update the
-     * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-     * of all node pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string locations = 13; - * - * @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 boolean enableKubernetesAlpha_; - /** - * - * - *
-     * Kubernetes alpha features are enabled on this cluster. This includes alpha
-     * API groups (e.g. v1alpha1) and features that may not be production ready in
-     * the kubernetes version of the master and nodes.
-     * The cluster has no SLA for uptime and master/node upgrades are disabled.
-     * Alpha enabled clusters are automatically deleted thirty days after
-     * creation.
-     * 
- * - * bool enable_kubernetes_alpha = 14; - * - * @return The enableKubernetesAlpha. - */ - @java.lang.Override - public boolean getEnableKubernetesAlpha() { - return enableKubernetesAlpha_; - } - /** - * - * - *
-     * Kubernetes alpha features are enabled on this cluster. This includes alpha
-     * API groups (e.g. v1alpha1) and features that may not be production ready in
-     * the kubernetes version of the master and nodes.
-     * The cluster has no SLA for uptime and master/node upgrades are disabled.
-     * Alpha enabled clusters are automatically deleted thirty days after
-     * creation.
-     * 
- * - * bool enable_kubernetes_alpha = 14; - * - * @param value The enableKubernetesAlpha to set. - * @return This builder for chaining. - */ - public Builder setEnableKubernetesAlpha(boolean value) { - - enableKubernetesAlpha_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Kubernetes alpha features are enabled on this cluster. This includes alpha
-     * API groups (e.g. v1alpha1) and features that may not be production ready in
-     * the kubernetes version of the master and nodes.
-     * The cluster has no SLA for uptime and master/node upgrades are disabled.
-     * Alpha enabled clusters are automatically deleted thirty days after
-     * creation.
-     * 
- * - * bool enable_kubernetes_alpha = 14; - * - * @return This builder for chaining. - */ - public Builder clearEnableKubernetesAlpha() { - - enableKubernetesAlpha_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.MapField resourceLabels_; - - private com.google.protobuf.MapField - internalGetResourceLabels() { - if (resourceLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ResourceLabelsDefaultEntryHolder.defaultEntry); - } - return resourceLabels_; - } - - private com.google.protobuf.MapField - internalGetMutableResourceLabels() { - onChanged(); - ; - if (resourceLabels_ == null) { - resourceLabels_ = - com.google.protobuf.MapField.newMapField(ResourceLabelsDefaultEntryHolder.defaultEntry); - } - if (!resourceLabels_.isMutable()) { - resourceLabels_ = resourceLabels_.copy(); - } - return resourceLabels_; - } - - public int getResourceLabelsCount() { - return internalGetResourceLabels().getMap().size(); - } - /** - * - * - *
-     * The resource labels for the cluster to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 15; - */ - @java.lang.Override - public boolean containsResourceLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetResourceLabels().getMap().containsKey(key); - } - /** Use {@link #getResourceLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getResourceLabels() { - return getResourceLabelsMap(); - } - /** - * - * - *
-     * The resource labels for the cluster to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 15; - */ - @java.lang.Override - public java.util.Map getResourceLabelsMap() { - return internalGetResourceLabels().getMap(); - } - /** - * - * - *
-     * The resource labels for the cluster to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 15; - */ - @java.lang.Override - public java.lang.String getResourceLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetResourceLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * The resource labels for the cluster to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 15; - */ - @java.lang.Override - public java.lang.String getResourceLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetResourceLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearResourceLabels() { - internalGetMutableResourceLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * The resource labels for the cluster to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 15; - */ - public Builder removeResourceLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableResourceLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableResourceLabels() { - return internalGetMutableResourceLabels().getMutableMap(); - } - /** - * - * - *
-     * The resource labels for the cluster to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 15; - */ - public Builder putResourceLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableResourceLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * The resource labels for the cluster to use to annotate any related
-     * Google Compute Engine resources.
-     * 
- * - * map<string, string> resource_labels = 15; - */ - public Builder putAllResourceLabels(java.util.Map values) { - internalGetMutableResourceLabels().getMutableMap().putAll(values); - return this; - } - - private java.lang.Object labelFingerprint_ = ""; - /** - * - * - *
-     * The fingerprint of the set of labels for this cluster.
-     * 
- * - * string label_fingerprint = 16; - * - * @return The labelFingerprint. - */ - public java.lang.String getLabelFingerprint() { - java.lang.Object ref = labelFingerprint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - labelFingerprint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The fingerprint of the set of labels for this cluster.
-     * 
- * - * string label_fingerprint = 16; - * - * @return The bytes for labelFingerprint. - */ - public com.google.protobuf.ByteString getLabelFingerprintBytes() { - java.lang.Object ref = labelFingerprint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - labelFingerprint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The fingerprint of the set of labels for this cluster.
-     * 
- * - * string label_fingerprint = 16; - * - * @param value The labelFingerprint to set. - * @return This builder for chaining. - */ - public Builder setLabelFingerprint(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - labelFingerprint_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The fingerprint of the set of labels for this cluster.
-     * 
- * - * string label_fingerprint = 16; - * - * @return This builder for chaining. - */ - public Builder clearLabelFingerprint() { - - labelFingerprint_ = getDefaultInstance().getLabelFingerprint(); - onChanged(); - return this; - } - /** - * - * - *
-     * The fingerprint of the set of labels for this cluster.
-     * 
- * - * string label_fingerprint = 16; - * - * @param value The bytes for labelFingerprint to set. - * @return This builder for chaining. - */ - public Builder setLabelFingerprintBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - labelFingerprint_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.LegacyAbac legacyAbac_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LegacyAbac, - com.google.container.v1.LegacyAbac.Builder, - com.google.container.v1.LegacyAbacOrBuilder> - legacyAbacBuilder_; - /** - * - * - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - * - * @return Whether the legacyAbac field is set. - */ - public boolean hasLegacyAbac() { - return legacyAbacBuilder_ != null || legacyAbac_ != null; - } - /** - * - * - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - * - * @return The legacyAbac. - */ - public com.google.container.v1.LegacyAbac getLegacyAbac() { - if (legacyAbacBuilder_ == null) { - return legacyAbac_ == null - ? com.google.container.v1.LegacyAbac.getDefaultInstance() - : legacyAbac_; - } else { - return legacyAbacBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - */ - public Builder setLegacyAbac(com.google.container.v1.LegacyAbac value) { - if (legacyAbacBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - legacyAbac_ = value; - onChanged(); - } else { - legacyAbacBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - */ - public Builder setLegacyAbac(com.google.container.v1.LegacyAbac.Builder builderForValue) { - if (legacyAbacBuilder_ == null) { - legacyAbac_ = builderForValue.build(); - onChanged(); - } else { - legacyAbacBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - */ - public Builder mergeLegacyAbac(com.google.container.v1.LegacyAbac value) { - if (legacyAbacBuilder_ == null) { - if (legacyAbac_ != null) { - legacyAbac_ = - com.google.container.v1.LegacyAbac.newBuilder(legacyAbac_) - .mergeFrom(value) - .buildPartial(); - } else { - legacyAbac_ = value; - } - onChanged(); - } else { - legacyAbacBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - */ - public Builder clearLegacyAbac() { - if (legacyAbacBuilder_ == null) { - legacyAbac_ = null; - onChanged(); - } else { - legacyAbac_ = null; - legacyAbacBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - */ - public com.google.container.v1.LegacyAbac.Builder getLegacyAbacBuilder() { - - onChanged(); - return getLegacyAbacFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - */ - public com.google.container.v1.LegacyAbacOrBuilder getLegacyAbacOrBuilder() { - if (legacyAbacBuilder_ != null) { - return legacyAbacBuilder_.getMessageOrBuilder(); - } else { - return legacyAbac_ == null - ? com.google.container.v1.LegacyAbac.getDefaultInstance() - : legacyAbac_; - } - } - /** - * - * - *
-     * Configuration for the legacy ABAC authorization mode.
-     * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LegacyAbac, - com.google.container.v1.LegacyAbac.Builder, - com.google.container.v1.LegacyAbacOrBuilder> - getLegacyAbacFieldBuilder() { - if (legacyAbacBuilder_ == null) { - legacyAbacBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.LegacyAbac, - com.google.container.v1.LegacyAbac.Builder, - com.google.container.v1.LegacyAbacOrBuilder>( - getLegacyAbac(), getParentForChildren(), isClean()); - legacyAbac_ = null; - } - return legacyAbacBuilder_; - } - - private com.google.container.v1.NetworkPolicy networkPolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkPolicy, - com.google.container.v1.NetworkPolicy.Builder, - com.google.container.v1.NetworkPolicyOrBuilder> - networkPolicyBuilder_; - /** - * - * - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - * - * @return Whether the networkPolicy field is set. - */ - public boolean hasNetworkPolicy() { - return networkPolicyBuilder_ != null || networkPolicy_ != null; - } - /** - * - * - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - * - * @return The networkPolicy. - */ - public com.google.container.v1.NetworkPolicy getNetworkPolicy() { - if (networkPolicyBuilder_ == null) { - return networkPolicy_ == null - ? com.google.container.v1.NetworkPolicy.getDefaultInstance() - : networkPolicy_; - } else { - return networkPolicyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - */ - public Builder setNetworkPolicy(com.google.container.v1.NetworkPolicy value) { - if (networkPolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkPolicy_ = value; - onChanged(); - } else { - networkPolicyBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - */ - public Builder setNetworkPolicy(com.google.container.v1.NetworkPolicy.Builder builderForValue) { - if (networkPolicyBuilder_ == null) { - networkPolicy_ = builderForValue.build(); - onChanged(); - } else { - networkPolicyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - */ - public Builder mergeNetworkPolicy(com.google.container.v1.NetworkPolicy value) { - if (networkPolicyBuilder_ == null) { - if (networkPolicy_ != null) { - networkPolicy_ = - com.google.container.v1.NetworkPolicy.newBuilder(networkPolicy_) - .mergeFrom(value) - .buildPartial(); - } else { - networkPolicy_ = value; - } - onChanged(); - } else { - networkPolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - */ - public Builder clearNetworkPolicy() { - if (networkPolicyBuilder_ == null) { - networkPolicy_ = null; - onChanged(); - } else { - networkPolicy_ = null; - networkPolicyBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - */ - public com.google.container.v1.NetworkPolicy.Builder getNetworkPolicyBuilder() { - - onChanged(); - return getNetworkPolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - */ - public com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { - if (networkPolicyBuilder_ != null) { - return networkPolicyBuilder_.getMessageOrBuilder(); - } else { - return networkPolicy_ == null - ? com.google.container.v1.NetworkPolicy.getDefaultInstance() - : networkPolicy_; - } - } - /** - * - * - *
-     * Configuration options for the NetworkPolicy feature.
-     * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkPolicy, - com.google.container.v1.NetworkPolicy.Builder, - com.google.container.v1.NetworkPolicyOrBuilder> - getNetworkPolicyFieldBuilder() { - if (networkPolicyBuilder_ == null) { - networkPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkPolicy, - com.google.container.v1.NetworkPolicy.Builder, - com.google.container.v1.NetworkPolicyOrBuilder>( - getNetworkPolicy(), getParentForChildren(), isClean()); - networkPolicy_ = null; - } - return networkPolicyBuilder_; - } - - private com.google.container.v1.IPAllocationPolicy ipAllocationPolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.IPAllocationPolicy, - com.google.container.v1.IPAllocationPolicy.Builder, - com.google.container.v1.IPAllocationPolicyOrBuilder> - ipAllocationPolicyBuilder_; - /** - * - * - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - * - * @return Whether the ipAllocationPolicy field is set. - */ - public boolean hasIpAllocationPolicy() { - return ipAllocationPolicyBuilder_ != null || ipAllocationPolicy_ != null; - } - /** - * - * - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - * - * @return The ipAllocationPolicy. - */ - public com.google.container.v1.IPAllocationPolicy getIpAllocationPolicy() { - if (ipAllocationPolicyBuilder_ == null) { - return ipAllocationPolicy_ == null - ? com.google.container.v1.IPAllocationPolicy.getDefaultInstance() - : ipAllocationPolicy_; - } else { - return ipAllocationPolicyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public Builder setIpAllocationPolicy(com.google.container.v1.IPAllocationPolicy value) { - if (ipAllocationPolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ipAllocationPolicy_ = value; - onChanged(); - } else { - ipAllocationPolicyBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public Builder setIpAllocationPolicy( - com.google.container.v1.IPAllocationPolicy.Builder builderForValue) { - if (ipAllocationPolicyBuilder_ == null) { - ipAllocationPolicy_ = builderForValue.build(); - onChanged(); - } else { - ipAllocationPolicyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public Builder mergeIpAllocationPolicy(com.google.container.v1.IPAllocationPolicy value) { - if (ipAllocationPolicyBuilder_ == null) { - if (ipAllocationPolicy_ != null) { - ipAllocationPolicy_ = - com.google.container.v1.IPAllocationPolicy.newBuilder(ipAllocationPolicy_) - .mergeFrom(value) - .buildPartial(); - } else { - ipAllocationPolicy_ = value; - } - onChanged(); - } else { - ipAllocationPolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public Builder clearIpAllocationPolicy() { - if (ipAllocationPolicyBuilder_ == null) { - ipAllocationPolicy_ = null; - onChanged(); - } else { - ipAllocationPolicy_ = null; - ipAllocationPolicyBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public com.google.container.v1.IPAllocationPolicy.Builder getIpAllocationPolicyBuilder() { - - onChanged(); - return getIpAllocationPolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - public com.google.container.v1.IPAllocationPolicyOrBuilder getIpAllocationPolicyOrBuilder() { - if (ipAllocationPolicyBuilder_ != null) { - return ipAllocationPolicyBuilder_.getMessageOrBuilder(); - } else { - return ipAllocationPolicy_ == null - ? com.google.container.v1.IPAllocationPolicy.getDefaultInstance() - : ipAllocationPolicy_; - } - } - /** - * - * - *
-     * Configuration for cluster IP allocation.
-     * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.IPAllocationPolicy, - com.google.container.v1.IPAllocationPolicy.Builder, - com.google.container.v1.IPAllocationPolicyOrBuilder> - getIpAllocationPolicyFieldBuilder() { - if (ipAllocationPolicyBuilder_ == null) { - ipAllocationPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.IPAllocationPolicy, - com.google.container.v1.IPAllocationPolicy.Builder, - com.google.container.v1.IPAllocationPolicyOrBuilder>( - getIpAllocationPolicy(), getParentForChildren(), isClean()); - ipAllocationPolicy_ = null; - } - return ipAllocationPolicyBuilder_; - } - - private com.google.container.v1.MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuthorizedNetworksConfig, - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, - com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder> - masterAuthorizedNetworksConfigBuilder_; - /** - * - * - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - * - * @return Whether the masterAuthorizedNetworksConfig field is set. - */ - public boolean hasMasterAuthorizedNetworksConfig() { - return masterAuthorizedNetworksConfigBuilder_ != null - || masterAuthorizedNetworksConfig_ != null; - } - /** - * - * - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - * - * @return The masterAuthorizedNetworksConfig. - */ - public com.google.container.v1.MasterAuthorizedNetworksConfig - getMasterAuthorizedNetworksConfig() { - if (masterAuthorizedNetworksConfigBuilder_ == null) { - return masterAuthorizedNetworksConfig_ == null - ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() - : masterAuthorizedNetworksConfig_; - } else { - return masterAuthorizedNetworksConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - */ - public Builder setMasterAuthorizedNetworksConfig( - com.google.container.v1.MasterAuthorizedNetworksConfig value) { - if (masterAuthorizedNetworksConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - masterAuthorizedNetworksConfig_ = value; - onChanged(); - } else { - masterAuthorizedNetworksConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - */ - public Builder setMasterAuthorizedNetworksConfig( - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder builderForValue) { - if (masterAuthorizedNetworksConfigBuilder_ == null) { - masterAuthorizedNetworksConfig_ = builderForValue.build(); - onChanged(); - } else { - masterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - */ - public Builder mergeMasterAuthorizedNetworksConfig( - com.google.container.v1.MasterAuthorizedNetworksConfig value) { - if (masterAuthorizedNetworksConfigBuilder_ == null) { - if (masterAuthorizedNetworksConfig_ != null) { - masterAuthorizedNetworksConfig_ = - com.google.container.v1.MasterAuthorizedNetworksConfig.newBuilder( - masterAuthorizedNetworksConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - masterAuthorizedNetworksConfig_ = value; - } - onChanged(); - } else { - masterAuthorizedNetworksConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - */ - public Builder clearMasterAuthorizedNetworksConfig() { - if (masterAuthorizedNetworksConfigBuilder_ == null) { - masterAuthorizedNetworksConfig_ = null; - onChanged(); - } else { - masterAuthorizedNetworksConfig_ = null; - masterAuthorizedNetworksConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - */ - public com.google.container.v1.MasterAuthorizedNetworksConfig.Builder - getMasterAuthorizedNetworksConfigBuilder() { - - onChanged(); - return getMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - */ - public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder - getMasterAuthorizedNetworksConfigOrBuilder() { - if (masterAuthorizedNetworksConfigBuilder_ != null) { - return masterAuthorizedNetworksConfigBuilder_.getMessageOrBuilder(); - } else { - return masterAuthorizedNetworksConfig_ == null - ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() - : masterAuthorizedNetworksConfig_; - } - } - /** - * - * - *
-     * The configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuthorizedNetworksConfig, - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, - com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder> - getMasterAuthorizedNetworksConfigFieldBuilder() { - if (masterAuthorizedNetworksConfigBuilder_ == null) { - masterAuthorizedNetworksConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuthorizedNetworksConfig, - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, - com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder>( - getMasterAuthorizedNetworksConfig(), getParentForChildren(), isClean()); - masterAuthorizedNetworksConfig_ = null; - } - return masterAuthorizedNetworksConfigBuilder_; - } - - private com.google.container.v1.MaintenancePolicy maintenancePolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaintenancePolicy, - com.google.container.v1.MaintenancePolicy.Builder, - com.google.container.v1.MaintenancePolicyOrBuilder> - maintenancePolicyBuilder_; - /** - * - * - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - * - * @return Whether the maintenancePolicy field is set. - */ - public boolean hasMaintenancePolicy() { - return maintenancePolicyBuilder_ != null || maintenancePolicy_ != null; - } - /** - * - * - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - * - * @return The maintenancePolicy. - */ - public com.google.container.v1.MaintenancePolicy getMaintenancePolicy() { - if (maintenancePolicyBuilder_ == null) { - return maintenancePolicy_ == null - ? com.google.container.v1.MaintenancePolicy.getDefaultInstance() - : maintenancePolicy_; - } else { - return maintenancePolicyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - public Builder setMaintenancePolicy(com.google.container.v1.MaintenancePolicy value) { - if (maintenancePolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maintenancePolicy_ = value; - onChanged(); - } else { - maintenancePolicyBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - public Builder setMaintenancePolicy( - com.google.container.v1.MaintenancePolicy.Builder builderForValue) { - if (maintenancePolicyBuilder_ == null) { - maintenancePolicy_ = builderForValue.build(); - onChanged(); - } else { - maintenancePolicyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - public Builder mergeMaintenancePolicy(com.google.container.v1.MaintenancePolicy value) { - if (maintenancePolicyBuilder_ == null) { - if (maintenancePolicy_ != null) { - maintenancePolicy_ = - com.google.container.v1.MaintenancePolicy.newBuilder(maintenancePolicy_) - .mergeFrom(value) - .buildPartial(); - } else { - maintenancePolicy_ = value; - } - onChanged(); - } else { - maintenancePolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - public Builder clearMaintenancePolicy() { - if (maintenancePolicyBuilder_ == null) { - maintenancePolicy_ = null; - onChanged(); - } else { - maintenancePolicy_ = null; - maintenancePolicyBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - public com.google.container.v1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { - - onChanged(); - return getMaintenancePolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { - if (maintenancePolicyBuilder_ != null) { - return maintenancePolicyBuilder_.getMessageOrBuilder(); - } else { - return maintenancePolicy_ == null - ? com.google.container.v1.MaintenancePolicy.getDefaultInstance() - : maintenancePolicy_; - } - } - /** - * - * - *
-     * Configure the maintenance policy for this cluster.
-     * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaintenancePolicy, - com.google.container.v1.MaintenancePolicy.Builder, - com.google.container.v1.MaintenancePolicyOrBuilder> - getMaintenancePolicyFieldBuilder() { - if (maintenancePolicyBuilder_ == null) { - maintenancePolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaintenancePolicy, - com.google.container.v1.MaintenancePolicy.Builder, - com.google.container.v1.MaintenancePolicyOrBuilder>( - getMaintenancePolicy(), getParentForChildren(), isClean()); - maintenancePolicy_ = null; - } - return maintenancePolicyBuilder_; - } - - private com.google.container.v1.BinaryAuthorization binaryAuthorization_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.BinaryAuthorization, - com.google.container.v1.BinaryAuthorization.Builder, - com.google.container.v1.BinaryAuthorizationOrBuilder> - binaryAuthorizationBuilder_; - /** - * - * - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - * - * @return Whether the binaryAuthorization field is set. - */ - public boolean hasBinaryAuthorization() { - return binaryAuthorizationBuilder_ != null || binaryAuthorization_ != null; - } - /** - * - * - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - * - * @return The binaryAuthorization. - */ - public com.google.container.v1.BinaryAuthorization getBinaryAuthorization() { - if (binaryAuthorizationBuilder_ == null) { - return binaryAuthorization_ == null - ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() - : binaryAuthorization_; - } else { - return binaryAuthorizationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - public Builder setBinaryAuthorization(com.google.container.v1.BinaryAuthorization value) { - if (binaryAuthorizationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - binaryAuthorization_ = value; - onChanged(); - } else { - binaryAuthorizationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - public Builder setBinaryAuthorization( - com.google.container.v1.BinaryAuthorization.Builder builderForValue) { - if (binaryAuthorizationBuilder_ == null) { - binaryAuthorization_ = builderForValue.build(); - onChanged(); - } else { - binaryAuthorizationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - public Builder mergeBinaryAuthorization(com.google.container.v1.BinaryAuthorization value) { - if (binaryAuthorizationBuilder_ == null) { - if (binaryAuthorization_ != null) { - binaryAuthorization_ = - com.google.container.v1.BinaryAuthorization.newBuilder(binaryAuthorization_) - .mergeFrom(value) - .buildPartial(); - } else { - binaryAuthorization_ = value; - } - onChanged(); - } else { - binaryAuthorizationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - public Builder clearBinaryAuthorization() { - if (binaryAuthorizationBuilder_ == null) { - binaryAuthorization_ = null; - onChanged(); - } else { - binaryAuthorization_ = null; - binaryAuthorizationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - public com.google.container.v1.BinaryAuthorization.Builder getBinaryAuthorizationBuilder() { - - onChanged(); - return getBinaryAuthorizationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - public com.google.container.v1.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder() { - if (binaryAuthorizationBuilder_ != null) { - return binaryAuthorizationBuilder_.getMessageOrBuilder(); - } else { - return binaryAuthorization_ == null - ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() - : binaryAuthorization_; - } - } - /** - * - * - *
-     * Configuration for Binary Authorization.
-     * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.BinaryAuthorization, - com.google.container.v1.BinaryAuthorization.Builder, - com.google.container.v1.BinaryAuthorizationOrBuilder> - getBinaryAuthorizationFieldBuilder() { - if (binaryAuthorizationBuilder_ == null) { - binaryAuthorizationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.BinaryAuthorization, - com.google.container.v1.BinaryAuthorization.Builder, - com.google.container.v1.BinaryAuthorizationOrBuilder>( - getBinaryAuthorization(), getParentForChildren(), isClean()); - binaryAuthorization_ = null; - } - return binaryAuthorizationBuilder_; - } - - private com.google.container.v1.ClusterAutoscaling autoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClusterAutoscaling, - com.google.container.v1.ClusterAutoscaling.Builder, - com.google.container.v1.ClusterAutoscalingOrBuilder> - autoscalingBuilder_; - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - * - * @return Whether the autoscaling field is set. - */ - public boolean hasAutoscaling() { - return autoscalingBuilder_ != null || autoscaling_ != null; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - * - * @return The autoscaling. - */ - public com.google.container.v1.ClusterAutoscaling getAutoscaling() { - if (autoscalingBuilder_ == null) { - return autoscaling_ == null - ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() - : autoscaling_; - } else { - return autoscalingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - public Builder setAutoscaling(com.google.container.v1.ClusterAutoscaling value) { - if (autoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoscaling_ = value; - onChanged(); - } else { - autoscalingBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - public Builder setAutoscaling( - com.google.container.v1.ClusterAutoscaling.Builder builderForValue) { - if (autoscalingBuilder_ == null) { - autoscaling_ = builderForValue.build(); - onChanged(); - } else { - autoscalingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - public Builder mergeAutoscaling(com.google.container.v1.ClusterAutoscaling value) { - if (autoscalingBuilder_ == null) { - if (autoscaling_ != null) { - autoscaling_ = - com.google.container.v1.ClusterAutoscaling.newBuilder(autoscaling_) - .mergeFrom(value) - .buildPartial(); - } else { - autoscaling_ = value; - } - onChanged(); - } else { - autoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - public Builder clearAutoscaling() { - if (autoscalingBuilder_ == null) { - autoscaling_ = null; - onChanged(); - } else { - autoscaling_ = null; - autoscalingBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - public com.google.container.v1.ClusterAutoscaling.Builder getAutoscalingBuilder() { - - onChanged(); - return getAutoscalingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - public com.google.container.v1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder() { - if (autoscalingBuilder_ != null) { - return autoscalingBuilder_.getMessageOrBuilder(); - } else { - return autoscaling_ == null - ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() - : autoscaling_; - } - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClusterAutoscaling, - com.google.container.v1.ClusterAutoscaling.Builder, - com.google.container.v1.ClusterAutoscalingOrBuilder> - getAutoscalingFieldBuilder() { - if (autoscalingBuilder_ == null) { - autoscalingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClusterAutoscaling, - com.google.container.v1.ClusterAutoscaling.Builder, - com.google.container.v1.ClusterAutoscalingOrBuilder>( - getAutoscaling(), getParentForChildren(), isClean()); - autoscaling_ = null; - } - return autoscalingBuilder_; - } - - private com.google.container.v1.NetworkConfig networkConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkConfig, - com.google.container.v1.NetworkConfig.Builder, - com.google.container.v1.NetworkConfigOrBuilder> - networkConfigBuilder_; - /** - * - * - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - * - * @return Whether the networkConfig field is set. - */ - public boolean hasNetworkConfig() { - return networkConfigBuilder_ != null || networkConfig_ != null; - } - /** - * - * - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - * - * @return The networkConfig. - */ - public com.google.container.v1.NetworkConfig getNetworkConfig() { - if (networkConfigBuilder_ == null) { - return networkConfig_ == null - ? com.google.container.v1.NetworkConfig.getDefaultInstance() - : networkConfig_; - } else { - return networkConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - public Builder setNetworkConfig(com.google.container.v1.NetworkConfig value) { - if (networkConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkConfig_ = value; - onChanged(); - } else { - networkConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - public Builder setNetworkConfig(com.google.container.v1.NetworkConfig.Builder builderForValue) { - if (networkConfigBuilder_ == null) { - networkConfig_ = builderForValue.build(); - onChanged(); - } else { - networkConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - public Builder mergeNetworkConfig(com.google.container.v1.NetworkConfig value) { - if (networkConfigBuilder_ == null) { - if (networkConfig_ != null) { - networkConfig_ = - com.google.container.v1.NetworkConfig.newBuilder(networkConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - networkConfig_ = value; - } - onChanged(); - } else { - networkConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - public Builder clearNetworkConfig() { - if (networkConfigBuilder_ == null) { - networkConfig_ = null; - onChanged(); - } else { - networkConfig_ = null; - networkConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - public com.google.container.v1.NetworkConfig.Builder getNetworkConfigBuilder() { - - onChanged(); - return getNetworkConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - public com.google.container.v1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { - if (networkConfigBuilder_ != null) { - return networkConfigBuilder_.getMessageOrBuilder(); - } else { - return networkConfig_ == null - ? com.google.container.v1.NetworkConfig.getDefaultInstance() - : networkConfig_; - } - } - /** - * - * - *
-     * Configuration for cluster networking.
-     * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkConfig, - com.google.container.v1.NetworkConfig.Builder, - com.google.container.v1.NetworkConfigOrBuilder> - getNetworkConfigFieldBuilder() { - if (networkConfigBuilder_ == null) { - networkConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkConfig, - com.google.container.v1.NetworkConfig.Builder, - com.google.container.v1.NetworkConfigOrBuilder>( - getNetworkConfig(), getParentForChildren(), isClean()); - networkConfig_ = null; - } - return networkConfigBuilder_; - } - - private com.google.container.v1.MaxPodsConstraint defaultMaxPodsConstraint_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaxPodsConstraint, - com.google.container.v1.MaxPodsConstraint.Builder, - com.google.container.v1.MaxPodsConstraintOrBuilder> - defaultMaxPodsConstraintBuilder_; - /** - * - * - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - * - * @return Whether the defaultMaxPodsConstraint field is set. - */ - public boolean hasDefaultMaxPodsConstraint() { - return defaultMaxPodsConstraintBuilder_ != null || defaultMaxPodsConstraint_ != null; - } - /** - * - * - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - * - * @return The defaultMaxPodsConstraint. - */ - public com.google.container.v1.MaxPodsConstraint getDefaultMaxPodsConstraint() { - if (defaultMaxPodsConstraintBuilder_ == null) { - return defaultMaxPodsConstraint_ == null - ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() - : defaultMaxPodsConstraint_; - } else { - return defaultMaxPodsConstraintBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public Builder setDefaultMaxPodsConstraint(com.google.container.v1.MaxPodsConstraint value) { - if (defaultMaxPodsConstraintBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - defaultMaxPodsConstraint_ = value; - onChanged(); - } else { - defaultMaxPodsConstraintBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public Builder setDefaultMaxPodsConstraint( - com.google.container.v1.MaxPodsConstraint.Builder builderForValue) { - if (defaultMaxPodsConstraintBuilder_ == null) { - defaultMaxPodsConstraint_ = builderForValue.build(); - onChanged(); - } else { - defaultMaxPodsConstraintBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public Builder mergeDefaultMaxPodsConstraint(com.google.container.v1.MaxPodsConstraint value) { - if (defaultMaxPodsConstraintBuilder_ == null) { - if (defaultMaxPodsConstraint_ != null) { - defaultMaxPodsConstraint_ = - com.google.container.v1.MaxPodsConstraint.newBuilder(defaultMaxPodsConstraint_) - .mergeFrom(value) - .buildPartial(); - } else { - defaultMaxPodsConstraint_ = value; - } - onChanged(); - } else { - defaultMaxPodsConstraintBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public Builder clearDefaultMaxPodsConstraint() { - if (defaultMaxPodsConstraintBuilder_ == null) { - defaultMaxPodsConstraint_ = null; - onChanged(); - } else { - defaultMaxPodsConstraint_ = null; - defaultMaxPodsConstraintBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public com.google.container.v1.MaxPodsConstraint.Builder getDefaultMaxPodsConstraintBuilder() { - - onChanged(); - return getDefaultMaxPodsConstraintFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - public com.google.container.v1.MaxPodsConstraintOrBuilder - getDefaultMaxPodsConstraintOrBuilder() { - if (defaultMaxPodsConstraintBuilder_ != null) { - return defaultMaxPodsConstraintBuilder_.getMessageOrBuilder(); - } else { - return defaultMaxPodsConstraint_ == null - ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() - : defaultMaxPodsConstraint_; - } - } - /** - * - * - *
-     * The default constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool of this cluster. Only honored
-     * if cluster created with IP Alias support.
-     * 
- * - * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaxPodsConstraint, - com.google.container.v1.MaxPodsConstraint.Builder, - com.google.container.v1.MaxPodsConstraintOrBuilder> - getDefaultMaxPodsConstraintFieldBuilder() { - if (defaultMaxPodsConstraintBuilder_ == null) { - defaultMaxPodsConstraintBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaxPodsConstraint, - com.google.container.v1.MaxPodsConstraint.Builder, - com.google.container.v1.MaxPodsConstraintOrBuilder>( - getDefaultMaxPodsConstraint(), getParentForChildren(), isClean()); - defaultMaxPodsConstraint_ = null; - } - return defaultMaxPodsConstraintBuilder_; - } - - private com.google.container.v1.ResourceUsageExportConfig resourceUsageExportConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig, - com.google.container.v1.ResourceUsageExportConfig.Builder, - com.google.container.v1.ResourceUsageExportConfigOrBuilder> - resourceUsageExportConfigBuilder_; - /** - * - * - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config is unspecified.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - * - * @return Whether the resourceUsageExportConfig field is set. - */ - public boolean hasResourceUsageExportConfig() { - return resourceUsageExportConfigBuilder_ != null || resourceUsageExportConfig_ != null; - } - /** - * - * - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config is unspecified.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - * - * @return The resourceUsageExportConfig. - */ - public com.google.container.v1.ResourceUsageExportConfig getResourceUsageExportConfig() { - if (resourceUsageExportConfigBuilder_ == null) { - return resourceUsageExportConfig_ == null - ? com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() - : resourceUsageExportConfig_; - } else { - return resourceUsageExportConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config is unspecified.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - */ - public Builder setResourceUsageExportConfig( - com.google.container.v1.ResourceUsageExportConfig value) { - if (resourceUsageExportConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resourceUsageExportConfig_ = value; - onChanged(); - } else { - resourceUsageExportConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config is unspecified.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - */ - public Builder setResourceUsageExportConfig( - com.google.container.v1.ResourceUsageExportConfig.Builder builderForValue) { - if (resourceUsageExportConfigBuilder_ == null) { - resourceUsageExportConfig_ = builderForValue.build(); - onChanged(); - } else { - resourceUsageExportConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config is unspecified.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - */ - public Builder mergeResourceUsageExportConfig( - com.google.container.v1.ResourceUsageExportConfig value) { - if (resourceUsageExportConfigBuilder_ == null) { - if (resourceUsageExportConfig_ != null) { - resourceUsageExportConfig_ = - com.google.container.v1.ResourceUsageExportConfig.newBuilder( - resourceUsageExportConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - resourceUsageExportConfig_ = value; - } - onChanged(); - } else { - resourceUsageExportConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config is unspecified.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - */ - public Builder clearResourceUsageExportConfig() { - if (resourceUsageExportConfigBuilder_ == null) { - resourceUsageExportConfig_ = null; - onChanged(); - } else { - resourceUsageExportConfig_ = null; - resourceUsageExportConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config is unspecified.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - */ - public com.google.container.v1.ResourceUsageExportConfig.Builder - getResourceUsageExportConfigBuilder() { - - onChanged(); - return getResourceUsageExportConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config is unspecified.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - */ - public com.google.container.v1.ResourceUsageExportConfigOrBuilder - getResourceUsageExportConfigOrBuilder() { - if (resourceUsageExportConfigBuilder_ != null) { - return resourceUsageExportConfigBuilder_.getMessageOrBuilder(); - } else { - return resourceUsageExportConfig_ == null - ? com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() - : resourceUsageExportConfig_; - } - } - /** - * - * - *
-     * Configuration for exporting resource usages. Resource usage export is
-     * disabled when this config is unspecified.
-     * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig, - com.google.container.v1.ResourceUsageExportConfig.Builder, - com.google.container.v1.ResourceUsageExportConfigOrBuilder> - getResourceUsageExportConfigFieldBuilder() { - if (resourceUsageExportConfigBuilder_ == null) { - resourceUsageExportConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig, - com.google.container.v1.ResourceUsageExportConfig.Builder, - com.google.container.v1.ResourceUsageExportConfigOrBuilder>( - getResourceUsageExportConfig(), getParentForChildren(), isClean()); - resourceUsageExportConfig_ = null; - } - return resourceUsageExportConfigBuilder_; - } - - private com.google.container.v1.AuthenticatorGroupsConfig authenticatorGroupsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AuthenticatorGroupsConfig, - com.google.container.v1.AuthenticatorGroupsConfig.Builder, - com.google.container.v1.AuthenticatorGroupsConfigOrBuilder> - authenticatorGroupsConfigBuilder_; - /** - * - * - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * - * @return Whether the authenticatorGroupsConfig field is set. - */ - public boolean hasAuthenticatorGroupsConfig() { - return authenticatorGroupsConfigBuilder_ != null || authenticatorGroupsConfig_ != null; - } - /** - * - * - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * - * @return The authenticatorGroupsConfig. - */ - public com.google.container.v1.AuthenticatorGroupsConfig getAuthenticatorGroupsConfig() { - if (authenticatorGroupsConfigBuilder_ == null) { - return authenticatorGroupsConfig_ == null - ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() - : authenticatorGroupsConfig_; - } else { - return authenticatorGroupsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - public Builder setAuthenticatorGroupsConfig( - com.google.container.v1.AuthenticatorGroupsConfig value) { - if (authenticatorGroupsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - authenticatorGroupsConfig_ = value; - onChanged(); - } else { - authenticatorGroupsConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - public Builder setAuthenticatorGroupsConfig( - com.google.container.v1.AuthenticatorGroupsConfig.Builder builderForValue) { - if (authenticatorGroupsConfigBuilder_ == null) { - authenticatorGroupsConfig_ = builderForValue.build(); - onChanged(); - } else { - authenticatorGroupsConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - public Builder mergeAuthenticatorGroupsConfig( - com.google.container.v1.AuthenticatorGroupsConfig value) { - if (authenticatorGroupsConfigBuilder_ == null) { - if (authenticatorGroupsConfig_ != null) { - authenticatorGroupsConfig_ = - com.google.container.v1.AuthenticatorGroupsConfig.newBuilder( - authenticatorGroupsConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - authenticatorGroupsConfig_ = value; - } - onChanged(); - } else { - authenticatorGroupsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - public Builder clearAuthenticatorGroupsConfig() { - if (authenticatorGroupsConfigBuilder_ == null) { - authenticatorGroupsConfig_ = null; - onChanged(); - } else { - authenticatorGroupsConfig_ = null; - authenticatorGroupsConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - public com.google.container.v1.AuthenticatorGroupsConfig.Builder - getAuthenticatorGroupsConfigBuilder() { - - onChanged(); - return getAuthenticatorGroupsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - public com.google.container.v1.AuthenticatorGroupsConfigOrBuilder - getAuthenticatorGroupsConfigOrBuilder() { - if (authenticatorGroupsConfigBuilder_ != null) { - return authenticatorGroupsConfigBuilder_.getMessageOrBuilder(); - } else { - return authenticatorGroupsConfig_ == null - ? com.google.container.v1.AuthenticatorGroupsConfig.getDefaultInstance() - : authenticatorGroupsConfig_; - } - } - /** - * - * - *
-     * Configuration controlling RBAC group membership information.
-     * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AuthenticatorGroupsConfig, - com.google.container.v1.AuthenticatorGroupsConfig.Builder, - com.google.container.v1.AuthenticatorGroupsConfigOrBuilder> - getAuthenticatorGroupsConfigFieldBuilder() { - if (authenticatorGroupsConfigBuilder_ == null) { - authenticatorGroupsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AuthenticatorGroupsConfig, - com.google.container.v1.AuthenticatorGroupsConfig.Builder, - com.google.container.v1.AuthenticatorGroupsConfigOrBuilder>( - getAuthenticatorGroupsConfig(), getParentForChildren(), isClean()); - authenticatorGroupsConfig_ = null; - } - return authenticatorGroupsConfigBuilder_; - } - - private com.google.container.v1.PrivateClusterConfig privateClusterConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterConfig, - com.google.container.v1.PrivateClusterConfig.Builder, - com.google.container.v1.PrivateClusterConfigOrBuilder> - privateClusterConfigBuilder_; - /** - * - * - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - * - * @return Whether the privateClusterConfig field is set. - */ - public boolean hasPrivateClusterConfig() { - return privateClusterConfigBuilder_ != null || privateClusterConfig_ != null; - } - /** - * - * - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - * - * @return The privateClusterConfig. - */ - public com.google.container.v1.PrivateClusterConfig getPrivateClusterConfig() { - if (privateClusterConfigBuilder_ == null) { - return privateClusterConfig_ == null - ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() - : privateClusterConfig_; - } else { - return privateClusterConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - public Builder setPrivateClusterConfig(com.google.container.v1.PrivateClusterConfig value) { - if (privateClusterConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - privateClusterConfig_ = value; - onChanged(); - } else { - privateClusterConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - public Builder setPrivateClusterConfig( - com.google.container.v1.PrivateClusterConfig.Builder builderForValue) { - if (privateClusterConfigBuilder_ == null) { - privateClusterConfig_ = builderForValue.build(); - onChanged(); - } else { - privateClusterConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - public Builder mergePrivateClusterConfig(com.google.container.v1.PrivateClusterConfig value) { - if (privateClusterConfigBuilder_ == null) { - if (privateClusterConfig_ != null) { - privateClusterConfig_ = - com.google.container.v1.PrivateClusterConfig.newBuilder(privateClusterConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - privateClusterConfig_ = value; - } - onChanged(); - } else { - privateClusterConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - public Builder clearPrivateClusterConfig() { - if (privateClusterConfigBuilder_ == null) { - privateClusterConfig_ = null; - onChanged(); - } else { - privateClusterConfig_ = null; - privateClusterConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - public com.google.container.v1.PrivateClusterConfig.Builder getPrivateClusterConfigBuilder() { - - onChanged(); - return getPrivateClusterConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - public com.google.container.v1.PrivateClusterConfigOrBuilder - getPrivateClusterConfigOrBuilder() { - if (privateClusterConfigBuilder_ != null) { - return privateClusterConfigBuilder_.getMessageOrBuilder(); - } else { - return privateClusterConfig_ == null - ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() - : privateClusterConfig_; - } - } - /** - * - * - *
-     * Configuration for private cluster.
-     * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterConfig, - com.google.container.v1.PrivateClusterConfig.Builder, - com.google.container.v1.PrivateClusterConfigOrBuilder> - getPrivateClusterConfigFieldBuilder() { - if (privateClusterConfigBuilder_ == null) { - privateClusterConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterConfig, - com.google.container.v1.PrivateClusterConfig.Builder, - com.google.container.v1.PrivateClusterConfigOrBuilder>( - getPrivateClusterConfig(), getParentForChildren(), isClean()); - privateClusterConfig_ = null; - } - return privateClusterConfigBuilder_; - } - - private com.google.container.v1.DatabaseEncryption databaseEncryption_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DatabaseEncryption, - com.google.container.v1.DatabaseEncryption.Builder, - com.google.container.v1.DatabaseEncryptionOrBuilder> - databaseEncryptionBuilder_; - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - * - * @return Whether the databaseEncryption field is set. - */ - public boolean hasDatabaseEncryption() { - return databaseEncryptionBuilder_ != null || databaseEncryption_ != null; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - * - * @return The databaseEncryption. - */ - public com.google.container.v1.DatabaseEncryption getDatabaseEncryption() { - if (databaseEncryptionBuilder_ == null) { - return databaseEncryption_ == null - ? com.google.container.v1.DatabaseEncryption.getDefaultInstance() - : databaseEncryption_; - } else { - return databaseEncryptionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - public Builder setDatabaseEncryption(com.google.container.v1.DatabaseEncryption value) { - if (databaseEncryptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - databaseEncryption_ = value; - onChanged(); - } else { - databaseEncryptionBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - public Builder setDatabaseEncryption( - com.google.container.v1.DatabaseEncryption.Builder builderForValue) { - if (databaseEncryptionBuilder_ == null) { - databaseEncryption_ = builderForValue.build(); - onChanged(); - } else { - databaseEncryptionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - public Builder mergeDatabaseEncryption(com.google.container.v1.DatabaseEncryption value) { - if (databaseEncryptionBuilder_ == null) { - if (databaseEncryption_ != null) { - databaseEncryption_ = - com.google.container.v1.DatabaseEncryption.newBuilder(databaseEncryption_) - .mergeFrom(value) - .buildPartial(); - } else { - databaseEncryption_ = value; - } - onChanged(); - } else { - databaseEncryptionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - public Builder clearDatabaseEncryption() { - if (databaseEncryptionBuilder_ == null) { - databaseEncryption_ = null; - onChanged(); - } else { - databaseEncryption_ = null; - databaseEncryptionBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - public com.google.container.v1.DatabaseEncryption.Builder getDatabaseEncryptionBuilder() { - - onChanged(); - return getDatabaseEncryptionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - public com.google.container.v1.DatabaseEncryptionOrBuilder getDatabaseEncryptionOrBuilder() { - if (databaseEncryptionBuilder_ != null) { - return databaseEncryptionBuilder_.getMessageOrBuilder(); - } else { - return databaseEncryption_ == null - ? com.google.container.v1.DatabaseEncryption.getDefaultInstance() - : databaseEncryption_; - } - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DatabaseEncryption, - com.google.container.v1.DatabaseEncryption.Builder, - com.google.container.v1.DatabaseEncryptionOrBuilder> - getDatabaseEncryptionFieldBuilder() { - if (databaseEncryptionBuilder_ == null) { - databaseEncryptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DatabaseEncryption, - com.google.container.v1.DatabaseEncryption.Builder, - com.google.container.v1.DatabaseEncryptionOrBuilder>( - getDatabaseEncryption(), getParentForChildren(), isClean()); - databaseEncryption_ = null; - } - return databaseEncryptionBuilder_; - } - - private com.google.container.v1.VerticalPodAutoscaling verticalPodAutoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VerticalPodAutoscaling, - com.google.container.v1.VerticalPodAutoscaling.Builder, - com.google.container.v1.VerticalPodAutoscalingOrBuilder> - verticalPodAutoscalingBuilder_; - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * - * @return Whether the verticalPodAutoscaling field is set. - */ - public boolean hasVerticalPodAutoscaling() { - return verticalPodAutoscalingBuilder_ != null || verticalPodAutoscaling_ != null; - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * - * @return The verticalPodAutoscaling. - */ - public com.google.container.v1.VerticalPodAutoscaling getVerticalPodAutoscaling() { - if (verticalPodAutoscalingBuilder_ == null) { - return verticalPodAutoscaling_ == null - ? com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() - : verticalPodAutoscaling_; - } else { - return verticalPodAutoscalingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public Builder setVerticalPodAutoscaling(com.google.container.v1.VerticalPodAutoscaling value) { - if (verticalPodAutoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - verticalPodAutoscaling_ = value; - onChanged(); - } else { - verticalPodAutoscalingBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public Builder setVerticalPodAutoscaling( - com.google.container.v1.VerticalPodAutoscaling.Builder builderForValue) { - if (verticalPodAutoscalingBuilder_ == null) { - verticalPodAutoscaling_ = builderForValue.build(); - onChanged(); - } else { - verticalPodAutoscalingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public Builder mergeVerticalPodAutoscaling( - com.google.container.v1.VerticalPodAutoscaling value) { - if (verticalPodAutoscalingBuilder_ == null) { - if (verticalPodAutoscaling_ != null) { - verticalPodAutoscaling_ = - com.google.container.v1.VerticalPodAutoscaling.newBuilder(verticalPodAutoscaling_) - .mergeFrom(value) - .buildPartial(); - } else { - verticalPodAutoscaling_ = value; - } - onChanged(); - } else { - verticalPodAutoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public Builder clearVerticalPodAutoscaling() { - if (verticalPodAutoscalingBuilder_ == null) { - verticalPodAutoscaling_ = null; - onChanged(); - } else { - verticalPodAutoscaling_ = null; - verticalPodAutoscalingBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public com.google.container.v1.VerticalPodAutoscaling.Builder - getVerticalPodAutoscalingBuilder() { - - onChanged(); - return getVerticalPodAutoscalingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - public com.google.container.v1.VerticalPodAutoscalingOrBuilder - getVerticalPodAutoscalingOrBuilder() { - if (verticalPodAutoscalingBuilder_ != null) { - return verticalPodAutoscalingBuilder_.getMessageOrBuilder(); - } else { - return verticalPodAutoscaling_ == null - ? com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() - : verticalPodAutoscaling_; - } - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VerticalPodAutoscaling, - com.google.container.v1.VerticalPodAutoscaling.Builder, - com.google.container.v1.VerticalPodAutoscalingOrBuilder> - getVerticalPodAutoscalingFieldBuilder() { - if (verticalPodAutoscalingBuilder_ == null) { - verticalPodAutoscalingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VerticalPodAutoscaling, - com.google.container.v1.VerticalPodAutoscaling.Builder, - com.google.container.v1.VerticalPodAutoscalingOrBuilder>( - getVerticalPodAutoscaling(), getParentForChildren(), isClean()); - verticalPodAutoscaling_ = null; - } - return verticalPodAutoscalingBuilder_; - } - - private com.google.container.v1.ShieldedNodes shieldedNodes_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedNodes, - com.google.container.v1.ShieldedNodes.Builder, - com.google.container.v1.ShieldedNodesOrBuilder> - shieldedNodesBuilder_; - /** - * - * - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - * - * @return Whether the shieldedNodes field is set. - */ - public boolean hasShieldedNodes() { - return shieldedNodesBuilder_ != null || shieldedNodes_ != null; - } - /** - * - * - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - * - * @return The shieldedNodes. - */ - public com.google.container.v1.ShieldedNodes getShieldedNodes() { - if (shieldedNodesBuilder_ == null) { - return shieldedNodes_ == null - ? com.google.container.v1.ShieldedNodes.getDefaultInstance() - : shieldedNodes_; - } else { - return shieldedNodesBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - public Builder setShieldedNodes(com.google.container.v1.ShieldedNodes value) { - if (shieldedNodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - shieldedNodes_ = value; - onChanged(); - } else { - shieldedNodesBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - public Builder setShieldedNodes(com.google.container.v1.ShieldedNodes.Builder builderForValue) { - if (shieldedNodesBuilder_ == null) { - shieldedNodes_ = builderForValue.build(); - onChanged(); - } else { - shieldedNodesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - public Builder mergeShieldedNodes(com.google.container.v1.ShieldedNodes value) { - if (shieldedNodesBuilder_ == null) { - if (shieldedNodes_ != null) { - shieldedNodes_ = - com.google.container.v1.ShieldedNodes.newBuilder(shieldedNodes_) - .mergeFrom(value) - .buildPartial(); - } else { - shieldedNodes_ = value; - } - onChanged(); - } else { - shieldedNodesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - public Builder clearShieldedNodes() { - if (shieldedNodesBuilder_ == null) { - shieldedNodes_ = null; - onChanged(); - } else { - shieldedNodes_ = null; - shieldedNodesBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - public com.google.container.v1.ShieldedNodes.Builder getShieldedNodesBuilder() { - - onChanged(); - return getShieldedNodesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - public com.google.container.v1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder() { - if (shieldedNodesBuilder_ != null) { - return shieldedNodesBuilder_.getMessageOrBuilder(); - } else { - return shieldedNodes_ == null - ? com.google.container.v1.ShieldedNodes.getDefaultInstance() - : shieldedNodes_; - } - } - /** - * - * - *
-     * Shielded Nodes configuration.
-     * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedNodes, - com.google.container.v1.ShieldedNodes.Builder, - com.google.container.v1.ShieldedNodesOrBuilder> - getShieldedNodesFieldBuilder() { - if (shieldedNodesBuilder_ == null) { - shieldedNodesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedNodes, - com.google.container.v1.ShieldedNodes.Builder, - com.google.container.v1.ShieldedNodesOrBuilder>( - getShieldedNodes(), getParentForChildren(), isClean()); - shieldedNodes_ = null; - } - return shieldedNodesBuilder_; - } - - private com.google.container.v1.ReleaseChannel releaseChannel_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, - com.google.container.v1.ReleaseChannel.Builder, - com.google.container.v1.ReleaseChannelOrBuilder> - releaseChannelBuilder_; - /** - * - * - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - * - * @return Whether the releaseChannel field is set. - */ - public boolean hasReleaseChannel() { - return releaseChannelBuilder_ != null || releaseChannel_ != null; - } - /** - * - * - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - * - * @return The releaseChannel. - */ - public com.google.container.v1.ReleaseChannel getReleaseChannel() { - if (releaseChannelBuilder_ == null) { - return releaseChannel_ == null - ? com.google.container.v1.ReleaseChannel.getDefaultInstance() - : releaseChannel_; - } else { - return releaseChannelBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - public Builder setReleaseChannel(com.google.container.v1.ReleaseChannel value) { - if (releaseChannelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - releaseChannel_ = value; - onChanged(); - } else { - releaseChannelBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - public Builder setReleaseChannel( - com.google.container.v1.ReleaseChannel.Builder builderForValue) { - if (releaseChannelBuilder_ == null) { - releaseChannel_ = builderForValue.build(); - onChanged(); - } else { - releaseChannelBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - public Builder mergeReleaseChannel(com.google.container.v1.ReleaseChannel value) { - if (releaseChannelBuilder_ == null) { - if (releaseChannel_ != null) { - releaseChannel_ = - com.google.container.v1.ReleaseChannel.newBuilder(releaseChannel_) - .mergeFrom(value) - .buildPartial(); - } else { - releaseChannel_ = value; - } - onChanged(); - } else { - releaseChannelBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - public Builder clearReleaseChannel() { - if (releaseChannelBuilder_ == null) { - releaseChannel_ = null; - onChanged(); - } else { - releaseChannel_ = null; - releaseChannelBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - public com.google.container.v1.ReleaseChannel.Builder getReleaseChannelBuilder() { - - onChanged(); - return getReleaseChannelFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - public com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder() { - if (releaseChannelBuilder_ != null) { - return releaseChannelBuilder_.getMessageOrBuilder(); - } else { - return releaseChannel_ == null - ? com.google.container.v1.ReleaseChannel.getDefaultInstance() - : releaseChannel_; - } - } - /** - * - * - *
-     * Release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, - com.google.container.v1.ReleaseChannel.Builder, - com.google.container.v1.ReleaseChannelOrBuilder> - getReleaseChannelFieldBuilder() { - if (releaseChannelBuilder_ == null) { - releaseChannelBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, - com.google.container.v1.ReleaseChannel.Builder, - com.google.container.v1.ReleaseChannelOrBuilder>( - getReleaseChannel(), getParentForChildren(), isClean()); - releaseChannel_ = null; - } - return releaseChannelBuilder_; - } - - private com.google.container.v1.WorkloadIdentityConfig workloadIdentityConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadIdentityConfig, - com.google.container.v1.WorkloadIdentityConfig.Builder, - com.google.container.v1.WorkloadIdentityConfigOrBuilder> - workloadIdentityConfigBuilder_; - /** - * - * - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * - * @return Whether the workloadIdentityConfig field is set. - */ - public boolean hasWorkloadIdentityConfig() { - return workloadIdentityConfigBuilder_ != null || workloadIdentityConfig_ != null; - } - /** - * - * - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * - * @return The workloadIdentityConfig. - */ - public com.google.container.v1.WorkloadIdentityConfig getWorkloadIdentityConfig() { - if (workloadIdentityConfigBuilder_ == null) { - return workloadIdentityConfig_ == null - ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() - : workloadIdentityConfig_; - } else { - return workloadIdentityConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public Builder setWorkloadIdentityConfig(com.google.container.v1.WorkloadIdentityConfig value) { - if (workloadIdentityConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workloadIdentityConfig_ = value; - onChanged(); - } else { - workloadIdentityConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public Builder setWorkloadIdentityConfig( - com.google.container.v1.WorkloadIdentityConfig.Builder builderForValue) { - if (workloadIdentityConfigBuilder_ == null) { - workloadIdentityConfig_ = builderForValue.build(); - onChanged(); - } else { - workloadIdentityConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public Builder mergeWorkloadIdentityConfig( - com.google.container.v1.WorkloadIdentityConfig value) { - if (workloadIdentityConfigBuilder_ == null) { - if (workloadIdentityConfig_ != null) { - workloadIdentityConfig_ = - com.google.container.v1.WorkloadIdentityConfig.newBuilder(workloadIdentityConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - workloadIdentityConfig_ = value; - } - onChanged(); - } else { - workloadIdentityConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public Builder clearWorkloadIdentityConfig() { - if (workloadIdentityConfigBuilder_ == null) { - workloadIdentityConfig_ = null; - onChanged(); - } else { - workloadIdentityConfig_ = null; - workloadIdentityConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public com.google.container.v1.WorkloadIdentityConfig.Builder - getWorkloadIdentityConfigBuilder() { - - onChanged(); - return getWorkloadIdentityConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - public com.google.container.v1.WorkloadIdentityConfigOrBuilder - getWorkloadIdentityConfigOrBuilder() { - if (workloadIdentityConfigBuilder_ != null) { - return workloadIdentityConfigBuilder_.getMessageOrBuilder(); - } else { - return workloadIdentityConfig_ == null - ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() - : workloadIdentityConfig_; - } - } - /** - * - * - *
-     * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-     * policies.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadIdentityConfig, - com.google.container.v1.WorkloadIdentityConfig.Builder, - com.google.container.v1.WorkloadIdentityConfigOrBuilder> - getWorkloadIdentityConfigFieldBuilder() { - if (workloadIdentityConfigBuilder_ == null) { - workloadIdentityConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadIdentityConfig, - com.google.container.v1.WorkloadIdentityConfig.Builder, - com.google.container.v1.WorkloadIdentityConfigOrBuilder>( - getWorkloadIdentityConfig(), getParentForChildren(), isClean()); - workloadIdentityConfig_ = null; - } - return workloadIdentityConfigBuilder_; - } - - private java.lang.Object selfLink_ = ""; - /** - * - * - *
-     * [Output only] Server-defined URL for the resource.
-     * 
- * - * string self_link = 100; - * - * @return The selfLink. - */ - public java.lang.String getSelfLink() { - java.lang.Object ref = selfLink_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selfLink_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] Server-defined URL for the resource.
-     * 
- * - * string self_link = 100; - * - * @return The bytes for selfLink. - */ - public com.google.protobuf.ByteString getSelfLinkBytes() { - java.lang.Object ref = selfLink_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - selfLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] Server-defined URL for the resource.
-     * 
- * - * string self_link = 100; - * - * @param value The selfLink to set. - * @return This builder for chaining. - */ - public Builder setSelfLink(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - selfLink_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Server-defined URL for the resource.
-     * 
- * - * string self_link = 100; - * - * @return This builder for chaining. - */ - public Builder clearSelfLink() { - - selfLink_ = getDefaultInstance().getSelfLink(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Server-defined URL for the resource.
-     * 
- * - * string self_link = 100; - * - * @param value The bytes for selfLink to set. - * @return This builder for chaining. - */ - public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - selfLink_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field is deprecated, use location instead.
-     * 
- * - * string zone = 101 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field is deprecated, use location instead.
-     * 
- * - * string zone = 101 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field is deprecated, use location instead.
-     * 
- * - * string zone = 101 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field is deprecated, use location instead.
-     * 
- * - * string zone = 101 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field is deprecated, use location instead.
-     * 
- * - * string zone = 101 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object endpoint_ = ""; - /** - * - * - *
-     * [Output only] The IP address of this cluster's master endpoint.
-     * The endpoint can be accessed from the internet at
-     * `https://username:password@endpoint/`.
-     * See the `masterAuth` property of this resource for username and
-     * password information.
-     * 
- * - * string endpoint = 102; - * - * @return The endpoint. - */ - public java.lang.String getEndpoint() { - java.lang.Object ref = endpoint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - endpoint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] The IP address of this cluster's master endpoint.
-     * The endpoint can be accessed from the internet at
-     * `https://username:password@endpoint/`.
-     * See the `masterAuth` property of this resource for username and
-     * password information.
-     * 
- * - * string endpoint = 102; - * - * @return The bytes for endpoint. - */ - public com.google.protobuf.ByteString getEndpointBytes() { - java.lang.Object ref = endpoint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - endpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] The IP address of this cluster's master endpoint.
-     * The endpoint can be accessed from the internet at
-     * `https://username:password@endpoint/`.
-     * See the `masterAuth` property of this resource for username and
-     * password information.
-     * 
- * - * string endpoint = 102; - * - * @param value The endpoint to set. - * @return This builder for chaining. - */ - public Builder setEndpoint(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - endpoint_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The IP address of this cluster's master endpoint.
-     * The endpoint can be accessed from the internet at
-     * `https://username:password@endpoint/`.
-     * See the `masterAuth` property of this resource for username and
-     * password information.
-     * 
- * - * string endpoint = 102; - * - * @return This builder for chaining. - */ - public Builder clearEndpoint() { - - endpoint_ = getDefaultInstance().getEndpoint(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The IP address of this cluster's master endpoint.
-     * The endpoint can be accessed from the internet at
-     * `https://username:password@endpoint/`.
-     * See the `masterAuth` property of this resource for username and
-     * password information.
-     * 
- * - * string endpoint = 102; - * - * @param value The bytes for endpoint to set. - * @return This builder for chaining. - */ - public Builder setEndpointBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - endpoint_ = value; - onChanged(); - return this; - } - - private java.lang.Object initialClusterVersion_ = ""; - /** - * - * - *
-     * The initial Kubernetes version for this cluster.  Valid versions are those
-     * found in validMasterVersions returned by getServerConfig.  The version can
-     * be upgraded over time; such upgrades are reflected in
-     * currentMasterVersion and currentNodeVersion.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "","-": picks the default Kubernetes version
-     * 
- * - * string initial_cluster_version = 103; - * - * @return The initialClusterVersion. - */ - public java.lang.String getInitialClusterVersion() { - java.lang.Object ref = initialClusterVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - initialClusterVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The initial Kubernetes version for this cluster.  Valid versions are those
-     * found in validMasterVersions returned by getServerConfig.  The version can
-     * be upgraded over time; such upgrades are reflected in
-     * currentMasterVersion and currentNodeVersion.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "","-": picks the default Kubernetes version
-     * 
- * - * string initial_cluster_version = 103; - * - * @return The bytes for initialClusterVersion. - */ - public com.google.protobuf.ByteString getInitialClusterVersionBytes() { - java.lang.Object ref = initialClusterVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - initialClusterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The initial Kubernetes version for this cluster.  Valid versions are those
-     * found in validMasterVersions returned by getServerConfig.  The version can
-     * be upgraded over time; such upgrades are reflected in
-     * currentMasterVersion and currentNodeVersion.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "","-": picks the default Kubernetes version
-     * 
- * - * string initial_cluster_version = 103; - * - * @param value The initialClusterVersion to set. - * @return This builder for chaining. - */ - public Builder setInitialClusterVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - initialClusterVersion_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The initial Kubernetes version for this cluster.  Valid versions are those
-     * found in validMasterVersions returned by getServerConfig.  The version can
-     * be upgraded over time; such upgrades are reflected in
-     * currentMasterVersion and currentNodeVersion.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "","-": picks the default Kubernetes version
-     * 
- * - * string initial_cluster_version = 103; - * - * @return This builder for chaining. - */ - public Builder clearInitialClusterVersion() { - - initialClusterVersion_ = getDefaultInstance().getInitialClusterVersion(); - onChanged(); - return this; - } - /** - * - * - *
-     * The initial Kubernetes version for this cluster.  Valid versions are those
-     * found in validMasterVersions returned by getServerConfig.  The version can
-     * be upgraded over time; such upgrades are reflected in
-     * currentMasterVersion and currentNodeVersion.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "","-": picks the default Kubernetes version
-     * 
- * - * string initial_cluster_version = 103; - * - * @param value The bytes for initialClusterVersion to set. - * @return This builder for chaining. - */ - public Builder setInitialClusterVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - initialClusterVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object currentMasterVersion_ = ""; - /** - * - * - *
-     * [Output only] The current software version of the master endpoint.
-     * 
- * - * string current_master_version = 104; - * - * @return The currentMasterVersion. - */ - public java.lang.String getCurrentMasterVersion() { - java.lang.Object ref = currentMasterVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentMasterVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] The current software version of the master endpoint.
-     * 
- * - * string current_master_version = 104; - * - * @return The bytes for currentMasterVersion. - */ - public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { - java.lang.Object ref = currentMasterVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currentMasterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] The current software version of the master endpoint.
-     * 
- * - * string current_master_version = 104; - * - * @param value The currentMasterVersion to set. - * @return This builder for chaining. - */ - public Builder setCurrentMasterVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - currentMasterVersion_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The current software version of the master endpoint.
-     * 
- * - * string current_master_version = 104; - * - * @return This builder for chaining. - */ - public Builder clearCurrentMasterVersion() { - - currentMasterVersion_ = getDefaultInstance().getCurrentMasterVersion(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The current software version of the master endpoint.
-     * 
- * - * string current_master_version = 104; - * - * @param value The bytes for currentMasterVersion to set. - * @return This builder for chaining. - */ - public Builder setCurrentMasterVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - currentMasterVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object currentNodeVersion_ = ""; - /** - * - * - *
-     * [Output only] Deprecated, use
-     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
-     * instead. The current version of the node software components. If they are
-     * currently at multiple versions because they're in the process of being
-     * upgraded, this reflects the minimum version of all nodes.
-     * 
- * - * string current_node_version = 105 [deprecated = true]; - * - * @return The currentNodeVersion. - */ - @java.lang.Deprecated - public java.lang.String getCurrentNodeVersion() { - java.lang.Object ref = currentNodeVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentNodeVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] Deprecated, use
-     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
-     * instead. The current version of the node software components. If they are
-     * currently at multiple versions because they're in the process of being
-     * upgraded, this reflects the minimum version of all nodes.
-     * 
- * - * string current_node_version = 105 [deprecated = true]; - * - * @return The bytes for currentNodeVersion. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { - java.lang.Object ref = currentNodeVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - currentNodeVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] Deprecated, use
-     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
-     * instead. The current version of the node software components. If they are
-     * currently at multiple versions because they're in the process of being
-     * upgraded, this reflects the minimum version of all nodes.
-     * 
- * - * string current_node_version = 105 [deprecated = true]; - * - * @param value The currentNodeVersion to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setCurrentNodeVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - currentNodeVersion_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Deprecated, use
-     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
-     * instead. The current version of the node software components. If they are
-     * currently at multiple versions because they're in the process of being
-     * upgraded, this reflects the minimum version of all nodes.
-     * 
- * - * string current_node_version = 105 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearCurrentNodeVersion() { - - currentNodeVersion_ = getDefaultInstance().getCurrentNodeVersion(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Deprecated, use
-     * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
-     * instead. The current version of the node software components. If they are
-     * currently at multiple versions because they're in the process of being
-     * upgraded, this reflects the minimum version of all nodes.
-     * 
- * - * string current_node_version = 105 [deprecated = true]; - * - * @param value The bytes for currentNodeVersion to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setCurrentNodeVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - currentNodeVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object createTime_ = ""; - /** - * - * - *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string create_time = 106; - * - * @return The createTime. - */ - public java.lang.String getCreateTime() { - java.lang.Object ref = createTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - createTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string create_time = 106; - * - * @return The bytes for createTime. - */ - public com.google.protobuf.ByteString getCreateTimeBytes() { - java.lang.Object ref = createTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - createTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string create_time = 106; - * - * @param value The createTime to set. - * @return This builder for chaining. - */ - public Builder setCreateTime(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - createTime_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string create_time = 106; - * - * @return This builder for chaining. - */ - public Builder clearCreateTime() { - - createTime_ = getDefaultInstance().getCreateTime(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string create_time = 106; - * - * @param value The bytes for createTime to set. - * @return This builder for chaining. - */ - public Builder setCreateTimeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - createTime_ = value; - onChanged(); - return this; - } - - private int status_ = 0; - /** - * - * - *
-     * [Output only] The current status of this cluster.
-     * 
- * - * .google.container.v1.Cluster.Status status = 107; - * - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override - public int getStatusValue() { - return status_; - } - /** - * - * - *
-     * [Output only] The current status of this cluster.
-     * 
- * - * .google.container.v1.Cluster.Status status = 107; - * - * @param value The enum numeric value on the wire for status to set. - * @return This builder for chaining. - */ - public Builder setStatusValue(int value) { - - status_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The current status of this cluster.
-     * 
- * - * .google.container.v1.Cluster.Status status = 107; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1.Cluster.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1.Cluster.Status result = - com.google.container.v1.Cluster.Status.valueOf(status_); - return result == null ? com.google.container.v1.Cluster.Status.UNRECOGNIZED : result; - } - /** - * - * - *
-     * [Output only] The current status of this cluster.
-     * 
- * - * .google.container.v1.Cluster.Status status = 107; - * - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(com.google.container.v1.Cluster.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The current status of this cluster.
-     * 
- * - * .google.container.v1.Cluster.Status status = 107; - * - * @return This builder for chaining. - */ - public Builder clearStatus() { - - status_ = 0; - onChanged(); - return this; - } - - private java.lang.Object statusMessage_ = ""; - /** - * - * - *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * cluster, if available.
-     * 
- * - * string status_message = 108 [deprecated = true]; - * - * @return The statusMessage. - */ - @java.lang.Deprecated - public java.lang.String getStatusMessage() { - java.lang.Object ref = statusMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusMessage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * cluster, if available.
-     * 
- * - * string status_message = 108 [deprecated = true]; - * - * @return The bytes for statusMessage. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * cluster, if available.
-     * 
- * - * string status_message = 108 [deprecated = true]; - * - * @param value The statusMessage to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setStatusMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusMessage_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * cluster, if available.
-     * 
- * - * string status_message = 108 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearStatusMessage() { - - statusMessage_ = getDefaultInstance().getStatusMessage(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * cluster, if available.
-     * 
- * - * string status_message = 108 [deprecated = true]; - * - * @param value The bytes for statusMessage to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusMessage_ = value; - onChanged(); - return this; - } - - private int nodeIpv4CidrSize_; - /** - * - * - *
-     * [Output only] The size of the address space on each node for hosting
-     * containers. This is provisioned from within the `container_ipv4_cidr`
-     * range. This field will only be set when cluster is in route-based network
-     * mode.
-     * 
- * - * int32 node_ipv4_cidr_size = 109; - * - * @return The nodeIpv4CidrSize. - */ - @java.lang.Override - public int getNodeIpv4CidrSize() { - return nodeIpv4CidrSize_; - } - /** - * - * - *
-     * [Output only] The size of the address space on each node for hosting
-     * containers. This is provisioned from within the `container_ipv4_cidr`
-     * range. This field will only be set when cluster is in route-based network
-     * mode.
-     * 
- * - * int32 node_ipv4_cidr_size = 109; - * - * @param value The nodeIpv4CidrSize to set. - * @return This builder for chaining. - */ - public Builder setNodeIpv4CidrSize(int value) { - - nodeIpv4CidrSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The size of the address space on each node for hosting
-     * containers. This is provisioned from within the `container_ipv4_cidr`
-     * range. This field will only be set when cluster is in route-based network
-     * mode.
-     * 
- * - * int32 node_ipv4_cidr_size = 109; - * - * @return This builder for chaining. - */ - public Builder clearNodeIpv4CidrSize() { - - nodeIpv4CidrSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object servicesIpv4Cidr_ = ""; - /** - * - * - *
-     * [Output only] The IP address range of the Kubernetes services in
-     * this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`). Service addresses are
-     * typically put in the last `/16` from the container CIDR.
-     * 
- * - * string services_ipv4_cidr = 110; - * - * @return The servicesIpv4Cidr. - */ - public java.lang.String getServicesIpv4Cidr() { - java.lang.Object ref = servicesIpv4Cidr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesIpv4Cidr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] The IP address range of the Kubernetes services in
-     * this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`). Service addresses are
-     * typically put in the last `/16` from the container CIDR.
-     * 
- * - * string services_ipv4_cidr = 110; - * - * @return The bytes for servicesIpv4Cidr. - */ - public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { - java.lang.Object ref = servicesIpv4Cidr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - servicesIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] The IP address range of the Kubernetes services in
-     * this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`). Service addresses are
-     * typically put in the last `/16` from the container CIDR.
-     * 
- * - * string services_ipv4_cidr = 110; - * - * @param value The servicesIpv4Cidr to set. - * @return This builder for chaining. - */ - public Builder setServicesIpv4Cidr(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - servicesIpv4Cidr_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The IP address range of the Kubernetes services in
-     * this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`). Service addresses are
-     * typically put in the last `/16` from the container CIDR.
-     * 
- * - * string services_ipv4_cidr = 110; - * - * @return This builder for chaining. - */ - public Builder clearServicesIpv4Cidr() { - - servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The IP address range of the Kubernetes services in
-     * this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`). Service addresses are
-     * typically put in the last `/16` from the container CIDR.
-     * 
- * - * string services_ipv4_cidr = 110; - * - * @param value The bytes for servicesIpv4Cidr to set. - * @return This builder for chaining. - */ - public Builder setServicesIpv4CidrBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - servicesIpv4Cidr_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList instanceGroupUrls_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureInstanceGroupUrlsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); - bitField0_ |= 0x00000008; - } - } - /** - * - * - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @return A list containing the instanceGroupUrls. - */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { - return instanceGroupUrls_.getUnmodifiableView(); - } - /** - * - * - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @return The count of instanceGroupUrls. - */ - @java.lang.Deprecated - public int getInstanceGroupUrlsCount() { - return instanceGroupUrls_.size(); - } - /** - * - * - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @param index The index of the element to return. - * @return The instanceGroupUrls at the given index. - */ - @java.lang.Deprecated - public java.lang.String getInstanceGroupUrls(int index) { - return instanceGroupUrls_.get(index); - } - /** - * - * - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @param index The index of the value to return. - * @return The bytes of the instanceGroupUrls at the given index. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { - return instanceGroupUrls_.getByteString(index); - } - /** - * - * - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @param index The index to set the value at. - * @param value The instanceGroupUrls to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setInstanceGroupUrls(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @param value The instanceGroupUrls to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder addInstanceGroupUrls(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @param values The instanceGroupUrls to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder addAllInstanceGroupUrls(java.lang.Iterable values) { - ensureInstanceGroupUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceGroupUrls_); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearInstanceGroupUrls() { - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. Use node_pools.instance_group_urls.
-     * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @param value The bytes of the instanceGroupUrls to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder addInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.add(value); - onChanged(); - return this; - } - - private int currentNodeCount_; - /** - * - * - *
-     * [Output only]  The number of nodes currently in the cluster. Deprecated.
-     * Call Kubernetes API directly to retrieve node information.
-     * 
- * - * int32 current_node_count = 112 [deprecated = true]; - * - * @return The currentNodeCount. - */ - @java.lang.Override - @java.lang.Deprecated - public int getCurrentNodeCount() { - return currentNodeCount_; - } - /** - * - * - *
-     * [Output only]  The number of nodes currently in the cluster. Deprecated.
-     * Call Kubernetes API directly to retrieve node information.
-     * 
- * - * int32 current_node_count = 112 [deprecated = true]; - * - * @param value The currentNodeCount to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setCurrentNodeCount(int value) { - - currentNodeCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only]  The number of nodes currently in the cluster. Deprecated.
-     * Call Kubernetes API directly to retrieve node information.
-     * 
- * - * int32 current_node_count = 112 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearCurrentNodeCount() { - - currentNodeCount_ = 0; - onChanged(); - return this; - } - - private java.lang.Object expireTime_ = ""; - /** - * - * - *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string expire_time = 113; - * - * @return The expireTime. - */ - public java.lang.String getExpireTime() { - java.lang.Object ref = expireTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expireTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string expire_time = 113; - * - * @return The bytes for expireTime. - */ - public com.google.protobuf.ByteString getExpireTimeBytes() { - java.lang.Object ref = expireTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - expireTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string expire_time = 113; - * - * @param value The expireTime to set. - * @return This builder for chaining. - */ - public Builder setExpireTime(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - expireTime_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string expire_time = 113; - * - * @return This builder for chaining. - */ - public Builder clearExpireTime() { - - expireTime_ = getDefaultInstance().getExpireTime(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string expire_time = 113; - * - * @param value The bytes for expireTime to set. - * @return This builder for chaining. - */ - public Builder setExpireTimeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - expireTime_ = value; - onChanged(); - return this; - } - - private java.lang.Object location_ = ""; - /** - * - * - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 114; - * - * @return The location. - */ - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 114; - * - * @return The bytes for location. - */ - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 114; - * - * @param value The location to set. - * @return This builder for chaining. - */ - public Builder setLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - location_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 114; - * - * @return This builder for chaining. - */ - public Builder clearLocation() { - - location_ = getDefaultInstance().getLocation(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 114; - * - * @param value The bytes for location to set. - * @return This builder for chaining. - */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - location_ = value; - onChanged(); - return this; - } - - private boolean enableTpu_; - /** - * - * - *
-     * Enable the ability to use Cloud TPUs in this cluster.
-     * 
- * - * bool enable_tpu = 115; - * - * @return The enableTpu. - */ - @java.lang.Override - public boolean getEnableTpu() { - return enableTpu_; - } - /** - * - * - *
-     * Enable the ability to use Cloud TPUs in this cluster.
-     * 
- * - * bool enable_tpu = 115; - * - * @param value The enableTpu to set. - * @return This builder for chaining. - */ - public Builder setEnableTpu(boolean value) { - - enableTpu_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Enable the ability to use Cloud TPUs in this cluster.
-     * 
- * - * bool enable_tpu = 115; - * - * @return This builder for chaining. - */ - public Builder clearEnableTpu() { - - enableTpu_ = false; - onChanged(); - return this; - } - - private java.lang.Object tpuIpv4CidrBlock_ = ""; - /** - * - * - *
-     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`).
-     * 
- * - * string tpu_ipv4_cidr_block = 116; - * - * @return The tpuIpv4CidrBlock. - */ - public java.lang.String getTpuIpv4CidrBlock() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tpuIpv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`).
-     * 
- * - * string tpu_ipv4_cidr_block = 116; - * - * @return The bytes for tpuIpv4CidrBlock. - */ - public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tpuIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`).
-     * 
- * - * string tpu_ipv4_cidr_block = 116; - * - * @param value The tpuIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setTpuIpv4CidrBlock(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tpuIpv4CidrBlock_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`).
-     * 
- * - * string tpu_ipv4_cidr_block = 116; - * - * @return This builder for chaining. - */ - public Builder clearTpuIpv4CidrBlock() { - - tpuIpv4CidrBlock_ = getDefaultInstance().getTpuIpv4CidrBlock(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`).
-     * 
- * - * string tpu_ipv4_cidr_block = 116; - * - * @param value The bytes for tpuIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setTpuIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tpuIpv4CidrBlock_ = value; - onChanged(); - return this; - } - - private java.util.List conditions_ = - java.util.Collections.emptyList(); - - private void ensureConditionsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - conditions_ = new java.util.ArrayList(conditions_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder> - conditionsBuilder_; - - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public java.util.List getConditionsList() { - if (conditionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(conditions_); - } else { - return conditionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public int getConditionsCount() { - if (conditionsBuilder_ == null) { - return conditions_.size(); - } else { - return conditionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public com.google.container.v1.StatusCondition getConditions(int index) { - if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { - return conditionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder setConditions(int index, com.google.container.v1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.set(index, value); - onChanged(); - } else { - conditionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder setConditions( - int index, com.google.container.v1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.set(index, builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder addConditions(com.google.container.v1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.add(value); - onChanged(); - } else { - conditionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder addConditions(int index, com.google.container.v1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.add(index, value); - onChanged(); - } else { - conditionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder addConditions(com.google.container.v1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder addConditions( - int index, com.google.container.v1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(index, builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder addAllConditions( - java.lang.Iterable values) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); - onChanged(); - } else { - conditionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder clearConditions() { - if (conditionsBuilder_ == null) { - conditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - conditionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public Builder removeConditions(int index) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.remove(index); - onChanged(); - } else { - conditionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public com.google.container.v1.StatusCondition.Builder getConditionsBuilder(int index) { - return getConditionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { - if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { - return conditionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public java.util.List - getConditionsOrBuilderList() { - if (conditionsBuilder_ != null) { - return conditionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(conditions_); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public com.google.container.v1.StatusCondition.Builder addConditionsBuilder() { - return getConditionsFieldBuilder() - .addBuilder(com.google.container.v1.StatusCondition.getDefaultInstance()); - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public com.google.container.v1.StatusCondition.Builder addConditionsBuilder(int index) { - return getConditionsFieldBuilder() - .addBuilder(index, com.google.container.v1.StatusCondition.getDefaultInstance()); - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - public java.util.List - getConditionsBuilderList() { - return getConditionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder> - getConditionsFieldBuilder() { - if (conditionsBuilder_ == null) { - conditionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder>( - conditions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); - conditions_ = null; - } - return conditionsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.Cluster) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.Cluster) - private static final com.google.container.v1.Cluster DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.Cluster(); - } - - public static com.google.container.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 { - 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.container.v1.Cluster getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscaling.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscaling.java deleted file mode 100644 index 9af8f7c3..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscaling.java +++ /dev/null @@ -1,1706 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * ClusterAutoscaling contains global, per-cluster information
- * required by Cluster Autoscaler to automatically adjust
- * the size of the cluster and create/delete
- * node pools based on the current needs.
- * 
- * - * Protobuf type {@code google.container.v1.ClusterAutoscaling} - */ -public final class ClusterAutoscaling extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ClusterAutoscaling) - ClusterAutoscalingOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterAutoscaling.newBuilder() to construct. - private ClusterAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ClusterAutoscaling() { - resourceLimits_ = java.util.Collections.emptyList(); - autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterAutoscaling(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ClusterAutoscaling( - 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: - { - enableNodeAutoprovisioning_ = input.readBool(); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resourceLimits_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - resourceLimits_.add( - input.readMessage( - com.google.container.v1.ResourceLimit.parser(), extensionRegistry)); - break; - } - case 34: - { - com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder subBuilder = null; - if (autoprovisioningNodePoolDefaults_ != null) { - subBuilder = autoprovisioningNodePoolDefaults_.toBuilder(); - } - autoprovisioningNodePoolDefaults_ = - input.readMessage( - com.google.container.v1.AutoprovisioningNodePoolDefaults.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(autoprovisioningNodePoolDefaults_); - autoprovisioningNodePoolDefaults_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - autoprovisioningLocations_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - autoprovisioningLocations_.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)) { - resourceLimits_ = java.util.Collections.unmodifiableList(resourceLimits_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - autoprovisioningLocations_ = autoprovisioningLocations_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClusterAutoscaling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClusterAutoscaling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ClusterAutoscaling.class, - com.google.container.v1.ClusterAutoscaling.Builder.class); - } - - public static final int ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER = 1; - private boolean enableNodeAutoprovisioning_; - /** - * - * - *
-   * Enables automatic node pool creation and deletion.
-   * 
- * - * bool enable_node_autoprovisioning = 1; - * - * @return The enableNodeAutoprovisioning. - */ - @java.lang.Override - public boolean getEnableNodeAutoprovisioning() { - return enableNodeAutoprovisioning_; - } - - public static final int RESOURCE_LIMITS_FIELD_NUMBER = 2; - private java.util.List resourceLimits_; - /** - * - * - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - @java.lang.Override - public java.util.List getResourceLimitsList() { - return resourceLimits_; - } - /** - * - * - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - @java.lang.Override - public java.util.List - getResourceLimitsOrBuilderList() { - return resourceLimits_; - } - /** - * - * - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - @java.lang.Override - public int getResourceLimitsCount() { - return resourceLimits_.size(); - } - /** - * - * - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - @java.lang.Override - public com.google.container.v1.ResourceLimit getResourceLimits(int index) { - return resourceLimits_.get(index); - } - /** - * - * - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - @java.lang.Override - public com.google.container.v1.ResourceLimitOrBuilder getResourceLimitsOrBuilder(int index) { - return resourceLimits_.get(index); - } - - public static final int AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER = 4; - private com.google.container.v1.AutoprovisioningNodePoolDefaults - autoprovisioningNodePoolDefaults_; - /** - * - * - *
-   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-   * created by NAP.
-   * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - * - * @return Whether the autoprovisioningNodePoolDefaults field is set. - */ - @java.lang.Override - public boolean hasAutoprovisioningNodePoolDefaults() { - return autoprovisioningNodePoolDefaults_ != null; - } - /** - * - * - *
-   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-   * created by NAP.
-   * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - * - * @return The autoprovisioningNodePoolDefaults. - */ - @java.lang.Override - public com.google.container.v1.AutoprovisioningNodePoolDefaults - getAutoprovisioningNodePoolDefaults() { - return autoprovisioningNodePoolDefaults_ == null - ? com.google.container.v1.AutoprovisioningNodePoolDefaults.getDefaultInstance() - : autoprovisioningNodePoolDefaults_; - } - /** - * - * - *
-   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-   * created by NAP.
-   * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - */ - @java.lang.Override - public com.google.container.v1.AutoprovisioningNodePoolDefaultsOrBuilder - getAutoprovisioningNodePoolDefaultsOrBuilder() { - return getAutoprovisioningNodePoolDefaults(); - } - - public static final int AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList autoprovisioningLocations_; - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes can be created by NAP.
-   * 
- * - * repeated string autoprovisioning_locations = 5; - * - * @return A list containing the autoprovisioningLocations. - */ - public com.google.protobuf.ProtocolStringList getAutoprovisioningLocationsList() { - return autoprovisioningLocations_; - } - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes can be created by NAP.
-   * 
- * - * repeated string autoprovisioning_locations = 5; - * - * @return The count of autoprovisioningLocations. - */ - public int getAutoprovisioningLocationsCount() { - return autoprovisioningLocations_.size(); - } - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes can be created by NAP.
-   * 
- * - * repeated string autoprovisioning_locations = 5; - * - * @param index The index of the element to return. - * @return The autoprovisioningLocations at the given index. - */ - public java.lang.String getAutoprovisioningLocations(int index) { - return autoprovisioningLocations_.get(index); - } - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes can be created by NAP.
-   * 
- * - * repeated string autoprovisioning_locations = 5; - * - * @param index The index of the value to return. - * @return The bytes of the autoprovisioningLocations at the given index. - */ - public com.google.protobuf.ByteString getAutoprovisioningLocationsBytes(int index) { - return autoprovisioningLocations_.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 (enableNodeAutoprovisioning_ != false) { - output.writeBool(1, enableNodeAutoprovisioning_); - } - for (int i = 0; i < resourceLimits_.size(); i++) { - output.writeMessage(2, resourceLimits_.get(i)); - } - if (autoprovisioningNodePoolDefaults_ != null) { - output.writeMessage(4, getAutoprovisioningNodePoolDefaults()); - } - for (int i = 0; i < autoprovisioningLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 5, autoprovisioningLocations_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enableNodeAutoprovisioning_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableNodeAutoprovisioning_); - } - for (int i = 0; i < resourceLimits_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, resourceLimits_.get(i)); - } - if (autoprovisioningNodePoolDefaults_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, getAutoprovisioningNodePoolDefaults()); - } - { - int dataSize = 0; - for (int i = 0; i < autoprovisioningLocations_.size(); i++) { - dataSize += computeStringSizeNoTag(autoprovisioningLocations_.getRaw(i)); - } - size += dataSize; - size += 1 * getAutoprovisioningLocationsList().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.container.v1.ClusterAutoscaling)) { - return super.equals(obj); - } - com.google.container.v1.ClusterAutoscaling other = - (com.google.container.v1.ClusterAutoscaling) obj; - - if (getEnableNodeAutoprovisioning() != other.getEnableNodeAutoprovisioning()) return false; - if (!getResourceLimitsList().equals(other.getResourceLimitsList())) return false; - if (hasAutoprovisioningNodePoolDefaults() != other.hasAutoprovisioningNodePoolDefaults()) - return false; - if (hasAutoprovisioningNodePoolDefaults()) { - if (!getAutoprovisioningNodePoolDefaults() - .equals(other.getAutoprovisioningNodePoolDefaults())) return false; - } - if (!getAutoprovisioningLocationsList().equals(other.getAutoprovisioningLocationsList())) - 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_NODE_AUTOPROVISIONING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableNodeAutoprovisioning()); - if (getResourceLimitsCount() > 0) { - hash = (37 * hash) + RESOURCE_LIMITS_FIELD_NUMBER; - hash = (53 * hash) + getResourceLimitsList().hashCode(); - } - if (hasAutoprovisioningNodePoolDefaults()) { - hash = (37 * hash) + AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER; - hash = (53 * hash) + getAutoprovisioningNodePoolDefaults().hashCode(); - } - if (getAutoprovisioningLocationsCount() > 0) { - hash = (37 * hash) + AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER; - hash = (53 * hash) + getAutoprovisioningLocationsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ClusterAutoscaling parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ClusterAutoscaling parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ClusterAutoscaling parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ClusterAutoscaling parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ClusterAutoscaling parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ClusterAutoscaling parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ClusterAutoscaling parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ClusterAutoscaling parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ClusterAutoscaling parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ClusterAutoscaling parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ClusterAutoscaling parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ClusterAutoscaling parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ClusterAutoscaling prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * ClusterAutoscaling contains global, per-cluster information
-   * required by Cluster Autoscaler to automatically adjust
-   * the size of the cluster and create/delete
-   * node pools based on the current needs.
-   * 
- * - * Protobuf type {@code google.container.v1.ClusterAutoscaling} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ClusterAutoscaling) - com.google.container.v1.ClusterAutoscalingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClusterAutoscaling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClusterAutoscaling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ClusterAutoscaling.class, - com.google.container.v1.ClusterAutoscaling.Builder.class); - } - - // Construct using com.google.container.v1.ClusterAutoscaling.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getResourceLimitsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - enableNodeAutoprovisioning_ = false; - - if (resourceLimitsBuilder_ == null) { - resourceLimits_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - resourceLimitsBuilder_.clear(); - } - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - autoprovisioningNodePoolDefaults_ = null; - } else { - autoprovisioningNodePoolDefaults_ = null; - autoprovisioningNodePoolDefaultsBuilder_ = null; - } - autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClusterAutoscaling_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ClusterAutoscaling getDefaultInstanceForType() { - return com.google.container.v1.ClusterAutoscaling.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ClusterAutoscaling build() { - com.google.container.v1.ClusterAutoscaling result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ClusterAutoscaling buildPartial() { - com.google.container.v1.ClusterAutoscaling result = - new com.google.container.v1.ClusterAutoscaling(this); - int from_bitField0_ = bitField0_; - result.enableNodeAutoprovisioning_ = enableNodeAutoprovisioning_; - if (resourceLimitsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - resourceLimits_ = java.util.Collections.unmodifiableList(resourceLimits_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.resourceLimits_ = resourceLimits_; - } else { - result.resourceLimits_ = resourceLimitsBuilder_.build(); - } - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - result.autoprovisioningNodePoolDefaults_ = autoprovisioningNodePoolDefaults_; - } else { - result.autoprovisioningNodePoolDefaults_ = autoprovisioningNodePoolDefaultsBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { - autoprovisioningLocations_ = autoprovisioningLocations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.autoprovisioningLocations_ = autoprovisioningLocations_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ClusterAutoscaling) { - return mergeFrom((com.google.container.v1.ClusterAutoscaling) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ClusterAutoscaling other) { - if (other == com.google.container.v1.ClusterAutoscaling.getDefaultInstance()) return this; - if (other.getEnableNodeAutoprovisioning() != false) { - setEnableNodeAutoprovisioning(other.getEnableNodeAutoprovisioning()); - } - if (resourceLimitsBuilder_ == null) { - if (!other.resourceLimits_.isEmpty()) { - if (resourceLimits_.isEmpty()) { - resourceLimits_ = other.resourceLimits_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureResourceLimitsIsMutable(); - resourceLimits_.addAll(other.resourceLimits_); - } - onChanged(); - } - } else { - if (!other.resourceLimits_.isEmpty()) { - if (resourceLimitsBuilder_.isEmpty()) { - resourceLimitsBuilder_.dispose(); - resourceLimitsBuilder_ = null; - resourceLimits_ = other.resourceLimits_; - bitField0_ = (bitField0_ & ~0x00000001); - resourceLimitsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResourceLimitsFieldBuilder() - : null; - } else { - resourceLimitsBuilder_.addAllMessages(other.resourceLimits_); - } - } - } - if (other.hasAutoprovisioningNodePoolDefaults()) { - mergeAutoprovisioningNodePoolDefaults(other.getAutoprovisioningNodePoolDefaults()); - } - if (!other.autoprovisioningLocations_.isEmpty()) { - if (autoprovisioningLocations_.isEmpty()) { - autoprovisioningLocations_ = other.autoprovisioningLocations_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAutoprovisioningLocationsIsMutable(); - autoprovisioningLocations_.addAll(other.autoprovisioningLocations_); - } - 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.container.v1.ClusterAutoscaling parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.ClusterAutoscaling) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private boolean enableNodeAutoprovisioning_; - /** - * - * - *
-     * Enables automatic node pool creation and deletion.
-     * 
- * - * bool enable_node_autoprovisioning = 1; - * - * @return The enableNodeAutoprovisioning. - */ - @java.lang.Override - public boolean getEnableNodeAutoprovisioning() { - return enableNodeAutoprovisioning_; - } - /** - * - * - *
-     * Enables automatic node pool creation and deletion.
-     * 
- * - * bool enable_node_autoprovisioning = 1; - * - * @param value The enableNodeAutoprovisioning to set. - * @return This builder for chaining. - */ - public Builder setEnableNodeAutoprovisioning(boolean value) { - - enableNodeAutoprovisioning_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Enables automatic node pool creation and deletion.
-     * 
- * - * bool enable_node_autoprovisioning = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnableNodeAutoprovisioning() { - - enableNodeAutoprovisioning_ = false; - onChanged(); - return this; - } - - private java.util.List resourceLimits_ = - java.util.Collections.emptyList(); - - private void ensureResourceLimitsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - resourceLimits_ = - new java.util.ArrayList(resourceLimits_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.ResourceLimit, - com.google.container.v1.ResourceLimit.Builder, - com.google.container.v1.ResourceLimitOrBuilder> - resourceLimitsBuilder_; - - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - public java.util.List getResourceLimitsList() { - if (resourceLimitsBuilder_ == null) { - return java.util.Collections.unmodifiableList(resourceLimits_); - } else { - return resourceLimitsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - public int getResourceLimitsCount() { - if (resourceLimitsBuilder_ == null) { - return resourceLimits_.size(); - } else { - return resourceLimitsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - public com.google.container.v1.ResourceLimit getResourceLimits(int index) { - if (resourceLimitsBuilder_ == null) { - return resourceLimits_.get(index); - } else { - return resourceLimitsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - public Builder setResourceLimits(int index, com.google.container.v1.ResourceLimit value) { - if (resourceLimitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResourceLimitsIsMutable(); - resourceLimits_.set(index, value); - onChanged(); - } else { - resourceLimitsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - public Builder setResourceLimits( - int index, com.google.container.v1.ResourceLimit.Builder builderForValue) { - if (resourceLimitsBuilder_ == null) { - ensureResourceLimitsIsMutable(); - resourceLimits_.set(index, builderForValue.build()); - onChanged(); - } else { - resourceLimitsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - public Builder addResourceLimits(com.google.container.v1.ResourceLimit value) { - if (resourceLimitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResourceLimitsIsMutable(); - resourceLimits_.add(value); - onChanged(); - } else { - resourceLimitsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - public Builder addResourceLimits(int index, com.google.container.v1.ResourceLimit value) { - if (resourceLimitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResourceLimitsIsMutable(); - resourceLimits_.add(index, value); - onChanged(); - } else { - resourceLimitsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - public Builder addResourceLimits( - com.google.container.v1.ResourceLimit.Builder builderForValue) { - if (resourceLimitsBuilder_ == null) { - ensureResourceLimitsIsMutable(); - resourceLimits_.add(builderForValue.build()); - onChanged(); - } else { - resourceLimitsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - public Builder addResourceLimits( - int index, com.google.container.v1.ResourceLimit.Builder builderForValue) { - if (resourceLimitsBuilder_ == null) { - ensureResourceLimitsIsMutable(); - resourceLimits_.add(index, builderForValue.build()); - onChanged(); - } else { - resourceLimitsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - public Builder addAllResourceLimits( - java.lang.Iterable values) { - if (resourceLimitsBuilder_ == null) { - ensureResourceLimitsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceLimits_); - onChanged(); - } else { - resourceLimitsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - public Builder clearResourceLimits() { - if (resourceLimitsBuilder_ == null) { - resourceLimits_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - resourceLimitsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - public Builder removeResourceLimits(int index) { - if (resourceLimitsBuilder_ == null) { - ensureResourceLimitsIsMutable(); - resourceLimits_.remove(index); - onChanged(); - } else { - resourceLimitsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - public com.google.container.v1.ResourceLimit.Builder getResourceLimitsBuilder(int index) { - return getResourceLimitsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - public com.google.container.v1.ResourceLimitOrBuilder getResourceLimitsOrBuilder(int index) { - if (resourceLimitsBuilder_ == null) { - return resourceLimits_.get(index); - } else { - return resourceLimitsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - public java.util.List - getResourceLimitsOrBuilderList() { - if (resourceLimitsBuilder_ != null) { - return resourceLimitsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(resourceLimits_); - } - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - public com.google.container.v1.ResourceLimit.Builder addResourceLimitsBuilder() { - return getResourceLimitsFieldBuilder() - .addBuilder(com.google.container.v1.ResourceLimit.getDefaultInstance()); - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - public com.google.container.v1.ResourceLimit.Builder addResourceLimitsBuilder(int index) { - return getResourceLimitsFieldBuilder() - .addBuilder(index, com.google.container.v1.ResourceLimit.getDefaultInstance()); - } - /** - * - * - *
-     * Contains global constraints regarding minimum and maximum
-     * amount of resources in the cluster.
-     * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - public java.util.List - getResourceLimitsBuilderList() { - return getResourceLimitsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.ResourceLimit, - com.google.container.v1.ResourceLimit.Builder, - com.google.container.v1.ResourceLimitOrBuilder> - getResourceLimitsFieldBuilder() { - if (resourceLimitsBuilder_ == null) { - resourceLimitsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.ResourceLimit, - com.google.container.v1.ResourceLimit.Builder, - com.google.container.v1.ResourceLimitOrBuilder>( - resourceLimits_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - resourceLimits_ = null; - } - return resourceLimitsBuilder_; - } - - private com.google.container.v1.AutoprovisioningNodePoolDefaults - autoprovisioningNodePoolDefaults_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AutoprovisioningNodePoolDefaults, - com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder, - com.google.container.v1.AutoprovisioningNodePoolDefaultsOrBuilder> - autoprovisioningNodePoolDefaultsBuilder_; - /** - * - * - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - * - * @return Whether the autoprovisioningNodePoolDefaults field is set. - */ - public boolean hasAutoprovisioningNodePoolDefaults() { - return autoprovisioningNodePoolDefaultsBuilder_ != null - || autoprovisioningNodePoolDefaults_ != null; - } - /** - * - * - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - * - * @return The autoprovisioningNodePoolDefaults. - */ - public com.google.container.v1.AutoprovisioningNodePoolDefaults - getAutoprovisioningNodePoolDefaults() { - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - return autoprovisioningNodePoolDefaults_ == null - ? com.google.container.v1.AutoprovisioningNodePoolDefaults.getDefaultInstance() - : autoprovisioningNodePoolDefaults_; - } else { - return autoprovisioningNodePoolDefaultsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - */ - public Builder setAutoprovisioningNodePoolDefaults( - com.google.container.v1.AutoprovisioningNodePoolDefaults value) { - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoprovisioningNodePoolDefaults_ = value; - onChanged(); - } else { - autoprovisioningNodePoolDefaultsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - */ - public Builder setAutoprovisioningNodePoolDefaults( - com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder builderForValue) { - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - autoprovisioningNodePoolDefaults_ = builderForValue.build(); - onChanged(); - } else { - autoprovisioningNodePoolDefaultsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - */ - public Builder mergeAutoprovisioningNodePoolDefaults( - com.google.container.v1.AutoprovisioningNodePoolDefaults value) { - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - if (autoprovisioningNodePoolDefaults_ != null) { - autoprovisioningNodePoolDefaults_ = - com.google.container.v1.AutoprovisioningNodePoolDefaults.newBuilder( - autoprovisioningNodePoolDefaults_) - .mergeFrom(value) - .buildPartial(); - } else { - autoprovisioningNodePoolDefaults_ = value; - } - onChanged(); - } else { - autoprovisioningNodePoolDefaultsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - */ - public Builder clearAutoprovisioningNodePoolDefaults() { - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - autoprovisioningNodePoolDefaults_ = null; - onChanged(); - } else { - autoprovisioningNodePoolDefaults_ = null; - autoprovisioningNodePoolDefaultsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - */ - public com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder - getAutoprovisioningNodePoolDefaultsBuilder() { - - onChanged(); - return getAutoprovisioningNodePoolDefaultsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - */ - public com.google.container.v1.AutoprovisioningNodePoolDefaultsOrBuilder - getAutoprovisioningNodePoolDefaultsOrBuilder() { - if (autoprovisioningNodePoolDefaultsBuilder_ != null) { - return autoprovisioningNodePoolDefaultsBuilder_.getMessageOrBuilder(); - } else { - return autoprovisioningNodePoolDefaults_ == null - ? com.google.container.v1.AutoprovisioningNodePoolDefaults.getDefaultInstance() - : autoprovisioningNodePoolDefaults_; - } - } - /** - * - * - *
-     * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-     * created by NAP.
-     * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AutoprovisioningNodePoolDefaults, - com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder, - com.google.container.v1.AutoprovisioningNodePoolDefaultsOrBuilder> - getAutoprovisioningNodePoolDefaultsFieldBuilder() { - if (autoprovisioningNodePoolDefaultsBuilder_ == null) { - autoprovisioningNodePoolDefaultsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AutoprovisioningNodePoolDefaults, - com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder, - com.google.container.v1.AutoprovisioningNodePoolDefaultsOrBuilder>( - getAutoprovisioningNodePoolDefaults(), getParentForChildren(), isClean()); - autoprovisioningNodePoolDefaults_ = null; - } - return autoprovisioningNodePoolDefaultsBuilder_; - } - - private com.google.protobuf.LazyStringList autoprovisioningLocations_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureAutoprovisioningLocationsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - autoprovisioningLocations_ = - new com.google.protobuf.LazyStringArrayList(autoprovisioningLocations_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * - * @return A list containing the autoprovisioningLocations. - */ - public com.google.protobuf.ProtocolStringList getAutoprovisioningLocationsList() { - return autoprovisioningLocations_.getUnmodifiableView(); - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * - * @return The count of autoprovisioningLocations. - */ - public int getAutoprovisioningLocationsCount() { - return autoprovisioningLocations_.size(); - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * - * @param index The index of the element to return. - * @return The autoprovisioningLocations at the given index. - */ - public java.lang.String getAutoprovisioningLocations(int index) { - return autoprovisioningLocations_.get(index); - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * - * @param index The index of the value to return. - * @return The bytes of the autoprovisioningLocations at the given index. - */ - public com.google.protobuf.ByteString getAutoprovisioningLocationsBytes(int index) { - return autoprovisioningLocations_.getByteString(index); - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * - * @param index The index to set the value at. - * @param value The autoprovisioningLocations to set. - * @return This builder for chaining. - */ - public Builder setAutoprovisioningLocations(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAutoprovisioningLocationsIsMutable(); - autoprovisioningLocations_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * - * @param value The autoprovisioningLocations to add. - * @return This builder for chaining. - */ - public Builder addAutoprovisioningLocations(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAutoprovisioningLocationsIsMutable(); - autoprovisioningLocations_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * - * @param values The autoprovisioningLocations to add. - * @return This builder for chaining. - */ - public Builder addAllAutoprovisioningLocations(java.lang.Iterable values) { - ensureAutoprovisioningLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, autoprovisioningLocations_); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * - * @return This builder for chaining. - */ - public Builder clearAutoprovisioningLocations() { - autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes can be created by NAP.
-     * 
- * - * repeated string autoprovisioning_locations = 5; - * - * @param value The bytes of the autoprovisioningLocations to add. - * @return This builder for chaining. - */ - public Builder addAutoprovisioningLocationsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureAutoprovisioningLocationsIsMutable(); - autoprovisioningLocations_.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.container.v1.ClusterAutoscaling) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ClusterAutoscaling) - private static final com.google.container.v1.ClusterAutoscaling DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ClusterAutoscaling(); - } - - public static com.google.container.v1.ClusterAutoscaling getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterAutoscaling parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterAutoscaling(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.container.v1.ClusterAutoscaling getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscalingOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscalingOrBuilder.java deleted file mode 100644 index de0b9900..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscalingOrBuilder.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ClusterAutoscalingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ClusterAutoscaling) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Enables automatic node pool creation and deletion.
-   * 
- * - * bool enable_node_autoprovisioning = 1; - * - * @return The enableNodeAutoprovisioning. - */ - boolean getEnableNodeAutoprovisioning(); - - /** - * - * - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - java.util.List getResourceLimitsList(); - /** - * - * - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - com.google.container.v1.ResourceLimit getResourceLimits(int index); - /** - * - * - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - int getResourceLimitsCount(); - /** - * - * - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - java.util.List - getResourceLimitsOrBuilderList(); - /** - * - * - *
-   * Contains global constraints regarding minimum and maximum
-   * amount of resources in the cluster.
-   * 
- * - * repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - com.google.container.v1.ResourceLimitOrBuilder getResourceLimitsOrBuilder(int index); - - /** - * - * - *
-   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-   * created by NAP.
-   * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - * - * @return Whether the autoprovisioningNodePoolDefaults field is set. - */ - boolean hasAutoprovisioningNodePoolDefaults(); - /** - * - * - *
-   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-   * created by NAP.
-   * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - * - * @return The autoprovisioningNodePoolDefaults. - */ - com.google.container.v1.AutoprovisioningNodePoolDefaults getAutoprovisioningNodePoolDefaults(); - /** - * - * - *
-   * AutoprovisioningNodePoolDefaults contains defaults for a node pool
-   * created by NAP.
-   * 
- * - * - * .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * - */ - com.google.container.v1.AutoprovisioningNodePoolDefaultsOrBuilder - getAutoprovisioningNodePoolDefaultsOrBuilder(); - - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes can be created by NAP.
-   * 
- * - * repeated string autoprovisioning_locations = 5; - * - * @return A list containing the autoprovisioningLocations. - */ - java.util.List getAutoprovisioningLocationsList(); - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes can be created by NAP.
-   * 
- * - * repeated string autoprovisioning_locations = 5; - * - * @return The count of autoprovisioningLocations. - */ - int getAutoprovisioningLocationsCount(); - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes can be created by NAP.
-   * 
- * - * repeated string autoprovisioning_locations = 5; - * - * @param index The index of the element to return. - * @return The autoprovisioningLocations at the given index. - */ - java.lang.String getAutoprovisioningLocations(int index); - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes can be created by NAP.
-   * 
- * - * repeated string autoprovisioning_locations = 5; - * - * @param index The index of the value to return. - * @return The bytes of the autoprovisioningLocations at the given index. - */ - com.google.protobuf.ByteString getAutoprovisioningLocationsBytes(int index); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java deleted file mode 100644 index b30a285f..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java +++ /dev/null @@ -1,1839 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ClusterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.Cluster) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The name of this cluster. The name must be unique within this project
-   * and location (e.g. zone or region), and can be up to 40 characters with
-   * the following restrictions:
-   * * Lowercase letters, numbers, and hyphens only.
-   * * Must start with a letter.
-   * * Must end with a number or a letter.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name of this cluster. The name must be unique within this project
-   * and location (e.g. zone or region), and can be up to 40 characters with
-   * the following restrictions:
-   * * Lowercase letters, numbers, and hyphens only.
-   * * Must start with a letter.
-   * * Must end with a number or a letter.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * An optional description of this cluster.
-   * 
- * - * string description = 2; - * - * @return The description. - */ - java.lang.String getDescription(); - /** - * - * - *
-   * An optional description of this cluster.
-   * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * The number of nodes to create in this cluster. You must ensure that your
-   * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-   * is sufficient for this number of instances. You must also have available
-   * firewall and routes quota.
-   * For requests, this field should only be used in lieu of a
-   * "node_pool" object, since this configuration (along with the
-   * "node_config") will be used to create a "NodePool" object with an
-   * auto-generated name. Do not use this and a node_pool at the same time.
-   * This field is deprecated, use node_pool.initial_node_count instead.
-   * 
- * - * int32 initial_node_count = 3 [deprecated = true]; - * - * @return The initialNodeCount. - */ - @java.lang.Deprecated - int getInitialNodeCount(); - - /** - * - * - *
-   * Parameters used in creating the cluster's nodes.
-   * For requests, this field should only be used in lieu of a
-   * "node_pool" object, since this configuration (along with the
-   * "initial_node_count") will be used to create a "NodePool" object with an
-   * auto-generated name. Do not use this and a node_pool at the same time.
-   * For responses, this field will be populated with the node configuration of
-   * the first node pool. (For configuration of each node pool, see
-   * `node_pool.config`)
-   * If unspecified, the defaults are used.
-   * This field is deprecated, use node_pool.config instead.
-   * 
- * - * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - * - * @return Whether the nodeConfig field is set. - */ - @java.lang.Deprecated - boolean hasNodeConfig(); - /** - * - * - *
-   * Parameters used in creating the cluster's nodes.
-   * For requests, this field should only be used in lieu of a
-   * "node_pool" object, since this configuration (along with the
-   * "initial_node_count") will be used to create a "NodePool" object with an
-   * auto-generated name. Do not use this and a node_pool at the same time.
-   * For responses, this field will be populated with the node configuration of
-   * the first node pool. (For configuration of each node pool, see
-   * `node_pool.config`)
-   * If unspecified, the defaults are used.
-   * This field is deprecated, use node_pool.config instead.
-   * 
- * - * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - * - * @return The nodeConfig. - */ - @java.lang.Deprecated - com.google.container.v1.NodeConfig getNodeConfig(); - /** - * - * - *
-   * Parameters used in creating the cluster's nodes.
-   * For requests, this field should only be used in lieu of a
-   * "node_pool" object, since this configuration (along with the
-   * "initial_node_count") will be used to create a "NodePool" object with an
-   * auto-generated name. Do not use this and a node_pool at the same time.
-   * For responses, this field will be populated with the node configuration of
-   * the first node pool. (For configuration of each node pool, see
-   * `node_pool.config`)
-   * If unspecified, the defaults are used.
-   * This field is deprecated, use node_pool.config instead.
-   * 
- * - * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - */ - @java.lang.Deprecated - com.google.container.v1.NodeConfigOrBuilder getNodeConfigOrBuilder(); - - /** - * - * - *
-   * The authentication information for accessing the master endpoint.
-   * If unspecified, the defaults are used:
-   * For clusters before v1.12, if master_auth is unspecified, `username` will
-   * be set to "admin", a random password will be generated, and a client
-   * certificate will be issued.
-   * 
- * - * .google.container.v1.MasterAuth master_auth = 5; - * - * @return Whether the masterAuth field is set. - */ - boolean hasMasterAuth(); - /** - * - * - *
-   * The authentication information for accessing the master endpoint.
-   * If unspecified, the defaults are used:
-   * For clusters before v1.12, if master_auth is unspecified, `username` will
-   * be set to "admin", a random password will be generated, and a client
-   * certificate will be issued.
-   * 
- * - * .google.container.v1.MasterAuth master_auth = 5; - * - * @return The masterAuth. - */ - com.google.container.v1.MasterAuth getMasterAuth(); - /** - * - * - *
-   * The authentication information for accessing the master endpoint.
-   * If unspecified, the defaults are used:
-   * For clusters before v1.12, if master_auth is unspecified, `username` will
-   * be set to "admin", a random password will be generated, and a client
-   * certificate will be issued.
-   * 
- * - * .google.container.v1.MasterAuth master_auth = 5; - */ - com.google.container.v1.MasterAuthOrBuilder getMasterAuthOrBuilder(); - - /** - * - * - *
-   * The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string logging_service = 6; - * - * @return The loggingService. - */ - java.lang.String getLoggingService(); - /** - * - * - *
-   * The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string logging_service = 6; - * - * @return The bytes for loggingService. - */ - com.google.protobuf.ByteString getLoggingServiceBytes(); - - /** - * - * - *
-   * The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string monitoring_service = 7; - * - * @return The monitoringService. - */ - java.lang.String getMonitoringService(); - /** - * - * - *
-   * The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string monitoring_service = 7; - * - * @return The bytes for monitoringService. - */ - com.google.protobuf.ByteString getMonitoringServiceBytes(); - - /** - * - * - *
-   * The name of the Google Compute Engine
-   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-   * to which the cluster is connected. If left unspecified, the `default`
-   * network will be used.
-   * 
- * - * string network = 8; - * - * @return The network. - */ - java.lang.String getNetwork(); - /** - * - * - *
-   * The name of the Google Compute Engine
-   * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-   * to which the cluster is connected. If left unspecified, the `default`
-   * network will be used.
-   * 
- * - * string network = 8; - * - * @return The bytes for network. - */ - com.google.protobuf.ByteString getNetworkBytes(); - - /** - * - * - *
-   * The IP address range of the container pods in this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`). Leave blank to have
-   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-   * 
- * - * string cluster_ipv4_cidr = 9; - * - * @return The clusterIpv4Cidr. - */ - java.lang.String getClusterIpv4Cidr(); - /** - * - * - *
-   * The IP address range of the container pods in this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`). Leave blank to have
-   * one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
-   * 
- * - * string cluster_ipv4_cidr = 9; - * - * @return The bytes for clusterIpv4Cidr. - */ - com.google.protobuf.ByteString getClusterIpv4CidrBytes(); - - /** - * - * - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - * - * @return Whether the addonsConfig field is set. - */ - boolean hasAddonsConfig(); - /** - * - * - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - * - * @return The addonsConfig. - */ - com.google.container.v1.AddonsConfig getAddonsConfig(); - /** - * - * - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1.AddonsConfig addons_config = 10; - */ - com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder(); - - /** - * - * - *
-   * The name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-   * the cluster is connected.
-   * 
- * - * string subnetwork = 11; - * - * @return The subnetwork. - */ - java.lang.String getSubnetwork(); - /** - * - * - *
-   * The name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which
-   * the cluster is connected.
-   * 
- * - * string subnetwork = 11; - * - * @return The bytes for subnetwork. - */ - com.google.protobuf.ByteString getSubnetworkBytes(); - - /** - * - * - *
-   * The node pools associated with this cluster.
-   * This field should not be set if "node_config" or "initial_node_count" are
-   * specified.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - java.util.List getNodePoolsList(); - /** - * - * - *
-   * The node pools associated with this cluster.
-   * This field should not be set if "node_config" or "initial_node_count" are
-   * specified.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - com.google.container.v1.NodePool getNodePools(int index); - /** - * - * - *
-   * The node pools associated with this cluster.
-   * This field should not be set if "node_config" or "initial_node_count" are
-   * specified.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - int getNodePoolsCount(); - /** - * - * - *
-   * The node pools associated with this cluster.
-   * This field should not be set if "node_config" or "initial_node_count" are
-   * specified.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - java.util.List getNodePoolsOrBuilderList(); - /** - * - * - *
-   * The node pools associated with this cluster.
-   * This field should not be set if "node_config" or "initial_node_count" are
-   * specified.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 12; - */ - com.google.container.v1.NodePoolOrBuilder getNodePoolsOrBuilder(int index); - - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This field provides a default value if
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * are not specified during node pool creation.
-   * Warning: changing cluster locations will update the
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * of all node pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string locations = 13; - * - * @return A list containing the locations. - */ - java.util.List getLocationsList(); - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This field provides a default value if
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * are not specified during node pool creation.
-   * Warning: changing cluster locations will update the
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * of all node pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string locations = 13; - * - * @return The count of locations. - */ - int getLocationsCount(); - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This field provides a default value if
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * are not specified during node pool creation.
-   * Warning: changing cluster locations will update the
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * of all node pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string locations = 13; - * - * @param index The index of the element to return. - * @return The locations at the given index. - */ - java.lang.String getLocations(int index); - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This field provides a default value if
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * are not specified during node pool creation.
-   * Warning: changing cluster locations will update the
-   * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations)
-   * of all node pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string locations = 13; - * - * @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); - - /** - * - * - *
-   * Kubernetes alpha features are enabled on this cluster. This includes alpha
-   * API groups (e.g. v1alpha1) and features that may not be production ready in
-   * the kubernetes version of the master and nodes.
-   * The cluster has no SLA for uptime and master/node upgrades are disabled.
-   * Alpha enabled clusters are automatically deleted thirty days after
-   * creation.
-   * 
- * - * bool enable_kubernetes_alpha = 14; - * - * @return The enableKubernetesAlpha. - */ - boolean getEnableKubernetesAlpha(); - - /** - * - * - *
-   * The resource labels for the cluster to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 15; - */ - int getResourceLabelsCount(); - /** - * - * - *
-   * The resource labels for the cluster to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 15; - */ - boolean containsResourceLabels(java.lang.String key); - /** Use {@link #getResourceLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getResourceLabels(); - /** - * - * - *
-   * The resource labels for the cluster to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 15; - */ - java.util.Map getResourceLabelsMap(); - /** - * - * - *
-   * The resource labels for the cluster to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 15; - */ - java.lang.String getResourceLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * The resource labels for the cluster to use to annotate any related
-   * Google Compute Engine resources.
-   * 
- * - * map<string, string> resource_labels = 15; - */ - java.lang.String getResourceLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * The fingerprint of the set of labels for this cluster.
-   * 
- * - * string label_fingerprint = 16; - * - * @return The labelFingerprint. - */ - java.lang.String getLabelFingerprint(); - /** - * - * - *
-   * The fingerprint of the set of labels for this cluster.
-   * 
- * - * string label_fingerprint = 16; - * - * @return The bytes for labelFingerprint. - */ - com.google.protobuf.ByteString getLabelFingerprintBytes(); - - /** - * - * - *
-   * Configuration for the legacy ABAC authorization mode.
-   * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - * - * @return Whether the legacyAbac field is set. - */ - boolean hasLegacyAbac(); - /** - * - * - *
-   * Configuration for the legacy ABAC authorization mode.
-   * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - * - * @return The legacyAbac. - */ - com.google.container.v1.LegacyAbac getLegacyAbac(); - /** - * - * - *
-   * Configuration for the legacy ABAC authorization mode.
-   * 
- * - * .google.container.v1.LegacyAbac legacy_abac = 18; - */ - com.google.container.v1.LegacyAbacOrBuilder getLegacyAbacOrBuilder(); - - /** - * - * - *
-   * Configuration options for the NetworkPolicy feature.
-   * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - * - * @return Whether the networkPolicy field is set. - */ - boolean hasNetworkPolicy(); - /** - * - * - *
-   * Configuration options for the NetworkPolicy feature.
-   * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - * - * @return The networkPolicy. - */ - com.google.container.v1.NetworkPolicy getNetworkPolicy(); - /** - * - * - *
-   * Configuration options for the NetworkPolicy feature.
-   * 
- * - * .google.container.v1.NetworkPolicy network_policy = 19; - */ - com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder(); - - /** - * - * - *
-   * Configuration for cluster IP allocation.
-   * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - * - * @return Whether the ipAllocationPolicy field is set. - */ - boolean hasIpAllocationPolicy(); - /** - * - * - *
-   * Configuration for cluster IP allocation.
-   * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - * - * @return The ipAllocationPolicy. - */ - com.google.container.v1.IPAllocationPolicy getIpAllocationPolicy(); - /** - * - * - *
-   * Configuration for cluster IP allocation.
-   * 
- * - * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - com.google.container.v1.IPAllocationPolicyOrBuilder getIpAllocationPolicyOrBuilder(); - - /** - * - * - *
-   * The configuration options for master authorized networks feature.
-   * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - * - * @return Whether the masterAuthorizedNetworksConfig field is set. - */ - boolean hasMasterAuthorizedNetworksConfig(); - /** - * - * - *
-   * The configuration options for master authorized networks feature.
-   * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - * - * @return The masterAuthorizedNetworksConfig. - */ - com.google.container.v1.MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig(); - /** - * - * - *
-   * The configuration options for master authorized networks feature.
-   * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - * - */ - com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder - getMasterAuthorizedNetworksConfigOrBuilder(); - - /** - * - * - *
-   * Configure the maintenance policy for this cluster.
-   * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - * - * @return Whether the maintenancePolicy field is set. - */ - boolean hasMaintenancePolicy(); - /** - * - * - *
-   * Configure the maintenance policy for this cluster.
-   * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - * - * @return The maintenancePolicy. - */ - com.google.container.v1.MaintenancePolicy getMaintenancePolicy(); - /** - * - * - *
-   * Configure the maintenance policy for this cluster.
-   * 
- * - * .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder(); - - /** - * - * - *
-   * Configuration for Binary Authorization.
-   * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - * - * @return Whether the binaryAuthorization field is set. - */ - boolean hasBinaryAuthorization(); - /** - * - * - *
-   * Configuration for Binary Authorization.
-   * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - * - * @return The binaryAuthorization. - */ - com.google.container.v1.BinaryAuthorization getBinaryAuthorization(); - /** - * - * - *
-   * Configuration for Binary Authorization.
-   * 
- * - * .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - com.google.container.v1.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder(); - - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - * - * @return Whether the autoscaling field is set. - */ - boolean hasAutoscaling(); - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - * - * @return The autoscaling. - */ - com.google.container.v1.ClusterAutoscaling getAutoscaling(); - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - com.google.container.v1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder(); - - /** - * - * - *
-   * Configuration for cluster networking.
-   * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - * - * @return Whether the networkConfig field is set. - */ - boolean hasNetworkConfig(); - /** - * - * - *
-   * Configuration for cluster networking.
-   * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - * - * @return The networkConfig. - */ - com.google.container.v1.NetworkConfig getNetworkConfig(); - /** - * - * - *
-   * Configuration for cluster networking.
-   * 
- * - * .google.container.v1.NetworkConfig network_config = 27; - */ - com.google.container.v1.NetworkConfigOrBuilder getNetworkConfigOrBuilder(); - - /** - * - * - *
-   * The default constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool of this cluster. Only honored
-   * if cluster created with IP Alias support.
-   * 
- * - * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - * - * @return Whether the defaultMaxPodsConstraint field is set. - */ - boolean hasDefaultMaxPodsConstraint(); - /** - * - * - *
-   * The default constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool of this cluster. Only honored
-   * if cluster created with IP Alias support.
-   * 
- * - * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - * - * @return The defaultMaxPodsConstraint. - */ - com.google.container.v1.MaxPodsConstraint getDefaultMaxPodsConstraint(); - /** - * - * - *
-   * The default constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool of this cluster. Only honored
-   * if cluster created with IP Alias support.
-   * 
- * - * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - com.google.container.v1.MaxPodsConstraintOrBuilder getDefaultMaxPodsConstraintOrBuilder(); - - /** - * - * - *
-   * Configuration for exporting resource usages. Resource usage export is
-   * disabled when this config is unspecified.
-   * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - * @return Whether the resourceUsageExportConfig field is set. - */ - boolean hasResourceUsageExportConfig(); - /** - * - * - *
-   * Configuration for exporting resource usages. Resource usage export is
-   * disabled when this config is unspecified.
-   * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * - * @return The resourceUsageExportConfig. - */ - com.google.container.v1.ResourceUsageExportConfig getResourceUsageExportConfig(); - /** - * - * - *
-   * Configuration for exporting resource usages. Resource usage export is
-   * disabled when this config is unspecified.
-   * 
- * - * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - */ - com.google.container.v1.ResourceUsageExportConfigOrBuilder - getResourceUsageExportConfigOrBuilder(); - - /** - * - * - *
-   * Configuration controlling RBAC group membership information.
-   * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * - * @return Whether the authenticatorGroupsConfig field is set. - */ - boolean hasAuthenticatorGroupsConfig(); - /** - * - * - *
-   * Configuration controlling RBAC group membership information.
-   * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * - * @return The authenticatorGroupsConfig. - */ - com.google.container.v1.AuthenticatorGroupsConfig getAuthenticatorGroupsConfig(); - /** - * - * - *
-   * Configuration controlling RBAC group membership information.
-   * 
- * - * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - com.google.container.v1.AuthenticatorGroupsConfigOrBuilder - getAuthenticatorGroupsConfigOrBuilder(); - - /** - * - * - *
-   * Configuration for private cluster.
-   * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - * - * @return Whether the privateClusterConfig field is set. - */ - boolean hasPrivateClusterConfig(); - /** - * - * - *
-   * Configuration for private cluster.
-   * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - * - * @return The privateClusterConfig. - */ - com.google.container.v1.PrivateClusterConfig getPrivateClusterConfig(); - /** - * - * - *
-   * Configuration for private cluster.
-   * 
- * - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - com.google.container.v1.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder(); - - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - * - * @return Whether the databaseEncryption field is set. - */ - boolean hasDatabaseEncryption(); - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - * - * @return The databaseEncryption. - */ - com.google.container.v1.DatabaseEncryption getDatabaseEncryption(); - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - com.google.container.v1.DatabaseEncryptionOrBuilder getDatabaseEncryptionOrBuilder(); - - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * - * @return Whether the verticalPodAutoscaling field is set. - */ - boolean hasVerticalPodAutoscaling(); - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * - * @return The verticalPodAutoscaling. - */ - com.google.container.v1.VerticalPodAutoscaling getVerticalPodAutoscaling(); - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - com.google.container.v1.VerticalPodAutoscalingOrBuilder getVerticalPodAutoscalingOrBuilder(); - - /** - * - * - *
-   * Shielded Nodes configuration.
-   * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - * - * @return Whether the shieldedNodes field is set. - */ - boolean hasShieldedNodes(); - /** - * - * - *
-   * Shielded Nodes configuration.
-   * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - * - * @return The shieldedNodes. - */ - com.google.container.v1.ShieldedNodes getShieldedNodes(); - /** - * - * - *
-   * Shielded Nodes configuration.
-   * 
- * - * .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - com.google.container.v1.ShieldedNodesOrBuilder getShieldedNodesOrBuilder(); - - /** - * - * - *
-   * Release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - * - * @return Whether the releaseChannel field is set. - */ - boolean hasReleaseChannel(); - /** - * - * - *
-   * Release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - * - * @return The releaseChannel. - */ - com.google.container.v1.ReleaseChannel getReleaseChannel(); - /** - * - * - *
-   * Release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel release_channel = 41; - */ - com.google.container.v1.ReleaseChannelOrBuilder getReleaseChannelOrBuilder(); - - /** - * - * - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * - * @return Whether the workloadIdentityConfig field is set. - */ - boolean hasWorkloadIdentityConfig(); - /** - * - * - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * - * @return The workloadIdentityConfig. - */ - com.google.container.v1.WorkloadIdentityConfig getWorkloadIdentityConfig(); - /** - * - * - *
-   * Configuration for the use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - com.google.container.v1.WorkloadIdentityConfigOrBuilder getWorkloadIdentityConfigOrBuilder(); - - /** - * - * - *
-   * [Output only] Server-defined URL for the resource.
-   * 
- * - * string self_link = 100; - * - * @return The selfLink. - */ - java.lang.String getSelfLink(); - /** - * - * - *
-   * [Output only] Server-defined URL for the resource.
-   * 
- * - * string self_link = 100; - * - * @return The bytes for selfLink. - */ - com.google.protobuf.ByteString getSelfLinkBytes(); - - /** - * - * - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field is deprecated, use location instead.
-   * 
- * - * string zone = 101 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field is deprecated, use location instead.
-   * 
- * - * string zone = 101 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * [Output only] The IP address of this cluster's master endpoint.
-   * The endpoint can be accessed from the internet at
-   * `https://username:password@endpoint/`.
-   * See the `masterAuth` property of this resource for username and
-   * password information.
-   * 
- * - * string endpoint = 102; - * - * @return The endpoint. - */ - java.lang.String getEndpoint(); - /** - * - * - *
-   * [Output only] The IP address of this cluster's master endpoint.
-   * The endpoint can be accessed from the internet at
-   * `https://username:password@endpoint/`.
-   * See the `masterAuth` property of this resource for username and
-   * password information.
-   * 
- * - * string endpoint = 102; - * - * @return The bytes for endpoint. - */ - com.google.protobuf.ByteString getEndpointBytes(); - - /** - * - * - *
-   * The initial Kubernetes version for this cluster.  Valid versions are those
-   * found in validMasterVersions returned by getServerConfig.  The version can
-   * be upgraded over time; such upgrades are reflected in
-   * currentMasterVersion and currentNodeVersion.
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "","-": picks the default Kubernetes version
-   * 
- * - * string initial_cluster_version = 103; - * - * @return The initialClusterVersion. - */ - java.lang.String getInitialClusterVersion(); - /** - * - * - *
-   * The initial Kubernetes version for this cluster.  Valid versions are those
-   * found in validMasterVersions returned by getServerConfig.  The version can
-   * be upgraded over time; such upgrades are reflected in
-   * currentMasterVersion and currentNodeVersion.
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "","-": picks the default Kubernetes version
-   * 
- * - * string initial_cluster_version = 103; - * - * @return The bytes for initialClusterVersion. - */ - com.google.protobuf.ByteString getInitialClusterVersionBytes(); - - /** - * - * - *
-   * [Output only] The current software version of the master endpoint.
-   * 
- * - * string current_master_version = 104; - * - * @return The currentMasterVersion. - */ - java.lang.String getCurrentMasterVersion(); - /** - * - * - *
-   * [Output only] The current software version of the master endpoint.
-   * 
- * - * string current_master_version = 104; - * - * @return The bytes for currentMasterVersion. - */ - com.google.protobuf.ByteString getCurrentMasterVersionBytes(); - - /** - * - * - *
-   * [Output only] Deprecated, use
-   * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
-   * instead. The current version of the node software components. If they are
-   * currently at multiple versions because they're in the process of being
-   * upgraded, this reflects the minimum version of all nodes.
-   * 
- * - * string current_node_version = 105 [deprecated = true]; - * - * @return The currentNodeVersion. - */ - @java.lang.Deprecated - java.lang.String getCurrentNodeVersion(); - /** - * - * - *
-   * [Output only] Deprecated, use
-   * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools)
-   * instead. The current version of the node software components. If they are
-   * currently at multiple versions because they're in the process of being
-   * upgraded, this reflects the minimum version of all nodes.
-   * 
- * - * string current_node_version = 105 [deprecated = true]; - * - * @return The bytes for currentNodeVersion. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getCurrentNodeVersionBytes(); - - /** - * - * - *
-   * [Output only] The time the cluster was created, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string create_time = 106; - * - * @return The createTime. - */ - java.lang.String getCreateTime(); - /** - * - * - *
-   * [Output only] The time the cluster was created, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string create_time = 106; - * - * @return The bytes for createTime. - */ - com.google.protobuf.ByteString getCreateTimeBytes(); - - /** - * - * - *
-   * [Output only] The current status of this cluster.
-   * 
- * - * .google.container.v1.Cluster.Status status = 107; - * - * @return The enum numeric value on the wire for status. - */ - int getStatusValue(); - /** - * - * - *
-   * [Output only] The current status of this cluster.
-   * 
- * - * .google.container.v1.Cluster.Status status = 107; - * - * @return The status. - */ - com.google.container.v1.Cluster.Status getStatus(); - - /** - * - * - *
-   * [Output only] Deprecated. Use conditions instead.
-   * Additional information about the current status of this
-   * cluster, if available.
-   * 
- * - * string status_message = 108 [deprecated = true]; - * - * @return The statusMessage. - */ - @java.lang.Deprecated - java.lang.String getStatusMessage(); - /** - * - * - *
-   * [Output only] Deprecated. Use conditions instead.
-   * Additional information about the current status of this
-   * cluster, if available.
-   * 
- * - * string status_message = 108 [deprecated = true]; - * - * @return The bytes for statusMessage. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getStatusMessageBytes(); - - /** - * - * - *
-   * [Output only] The size of the address space on each node for hosting
-   * containers. This is provisioned from within the `container_ipv4_cidr`
-   * range. This field will only be set when cluster is in route-based network
-   * mode.
-   * 
- * - * int32 node_ipv4_cidr_size = 109; - * - * @return The nodeIpv4CidrSize. - */ - int getNodeIpv4CidrSize(); - - /** - * - * - *
-   * [Output only] The IP address range of the Kubernetes services in
-   * this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `1.2.3.4/29`). Service addresses are
-   * typically put in the last `/16` from the container CIDR.
-   * 
- * - * string services_ipv4_cidr = 110; - * - * @return The servicesIpv4Cidr. - */ - java.lang.String getServicesIpv4Cidr(); - /** - * - * - *
-   * [Output only] The IP address range of the Kubernetes services in
-   * this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `1.2.3.4/29`). Service addresses are
-   * typically put in the last `/16` from the container CIDR.
-   * 
- * - * string services_ipv4_cidr = 110; - * - * @return The bytes for servicesIpv4Cidr. - */ - com.google.protobuf.ByteString getServicesIpv4CidrBytes(); - - /** - * - * - *
-   * Deprecated. Use node_pools.instance_group_urls.
-   * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @return A list containing the instanceGroupUrls. - */ - @java.lang.Deprecated - java.util.List getInstanceGroupUrlsList(); - /** - * - * - *
-   * Deprecated. Use node_pools.instance_group_urls.
-   * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @return The count of instanceGroupUrls. - */ - @java.lang.Deprecated - int getInstanceGroupUrlsCount(); - /** - * - * - *
-   * Deprecated. Use node_pools.instance_group_urls.
-   * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @param index The index of the element to return. - * @return The instanceGroupUrls at the given index. - */ - @java.lang.Deprecated - java.lang.String getInstanceGroupUrls(int index); - /** - * - * - *
-   * Deprecated. Use node_pools.instance_group_urls.
-   * 
- * - * repeated string instance_group_urls = 111 [deprecated = true]; - * - * @param index The index of the value to return. - * @return The bytes of the instanceGroupUrls at the given index. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index); - - /** - * - * - *
-   * [Output only]  The number of nodes currently in the cluster. Deprecated.
-   * Call Kubernetes API directly to retrieve node information.
-   * 
- * - * int32 current_node_count = 112 [deprecated = true]; - * - * @return The currentNodeCount. - */ - @java.lang.Deprecated - int getCurrentNodeCount(); - - /** - * - * - *
-   * [Output only] The time the cluster will be automatically
-   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string expire_time = 113; - * - * @return The expireTime. - */ - java.lang.String getExpireTime(); - /** - * - * - *
-   * [Output only] The time the cluster will be automatically
-   * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string expire_time = 113; - * - * @return The bytes for expireTime. - */ - com.google.protobuf.ByteString getExpireTimeBytes(); - - /** - * - * - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * in which the cluster resides.
-   * 
- * - * string location = 114; - * - * @return The location. - */ - java.lang.String getLocation(); - /** - * - * - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * in which the cluster resides.
-   * 
- * - * string location = 114; - * - * @return The bytes for location. - */ - com.google.protobuf.ByteString getLocationBytes(); - - /** - * - * - *
-   * Enable the ability to use Cloud TPUs in this cluster.
-   * 
- * - * bool enable_tpu = 115; - * - * @return The enableTpu. - */ - boolean getEnableTpu(); - - /** - * - * - *
-   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `1.2.3.4/29`).
-   * 
- * - * string tpu_ipv4_cidr_block = 116; - * - * @return The tpuIpv4CidrBlock. - */ - java.lang.String getTpuIpv4CidrBlock(); - /** - * - * - *
-   * [Output only] The IP address range of the Cloud TPUs in this cluster, in
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `1.2.3.4/29`).
-   * 
- * - * string tpu_ipv4_cidr_block = 116; - * - * @return The bytes for tpuIpv4CidrBlock. - */ - com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes(); - - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - java.util.List getConditionsList(); - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - com.google.container.v1.StatusCondition getConditions(int index); - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - int getConditionsCount(); - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - java.util.List - getConditionsOrBuilderList(); - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 118; - */ - com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder(int index); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java deleted file mode 100644 index f7682f18..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java +++ /dev/null @@ -1,2249 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public final class ClusterServiceProto { - private ClusterServiceProto() {} - - 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_container_v1_NodeConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodeConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodeConfig_MetadataEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodeConfig_MetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodeConfig_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodeConfig_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ShieldedInstanceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ShieldedInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SandboxConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SandboxConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ReservationAffinity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ReservationAffinity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodeTaint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodeTaint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_MasterAuth_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_MasterAuth_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ClientCertificateConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ClientCertificateConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_AddonsConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_AddonsConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_HttpLoadBalancing_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_HttpLoadBalancing_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_HorizontalPodAutoscaling_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_HorizontalPodAutoscaling_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_KubernetesDashboard_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_KubernetesDashboard_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NetworkPolicyConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NetworkPolicyConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_DnsCacheConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_DnsCacheConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_PrivateClusterConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_PrivateClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_AuthenticatorGroupsConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_AuthenticatorGroupsConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_CloudRunConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_CloudRunConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ConfigConnectorConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ConfigConnectorConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_MasterAuthorizedNetworksConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_MasterAuthorizedNetworksConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_LegacyAbac_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_LegacyAbac_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NetworkPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NetworkPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_BinaryAuthorization_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_BinaryAuthorization_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_IPAllocationPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_IPAllocationPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_Cluster_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_Cluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_Cluster_ResourceLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_Cluster_ResourceLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ClusterUpdate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ClusterUpdate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_Operation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_Operation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_OperationProgress_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_OperationProgress_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_OperationProgress_Metric_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_OperationProgress_Metric_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_CreateClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_CreateClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GetClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GetClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_UpdateClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_UpdateClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_UpdateNodePoolRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_UpdateNodePoolRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetNodePoolAutoscalingRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetNodePoolAutoscalingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetLoggingServiceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetLoggingServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetMonitoringServiceRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetMonitoringServiceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetAddonsConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetAddonsConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetLocationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetLocationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_UpdateMasterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_UpdateMasterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetMasterAuthRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetMasterAuthRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_DeleteClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_DeleteClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ListClustersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ListClustersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ListClustersResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ListClustersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GetOperationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GetOperationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ListOperationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ListOperationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_CancelOperationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_CancelOperationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ListOperationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ListOperationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GetServerConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GetServerConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ServerConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ServerConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_CreateNodePoolRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_CreateNodePoolRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_DeleteNodePoolRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_DeleteNodePoolRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ListNodePoolsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ListNodePoolsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GetNodePoolRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GetNodePoolRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodePool_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodePool_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodePool_UpgradeSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodePool_UpgradeSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodeManagement_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodeManagement_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_AutoUpgradeOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_AutoUpgradeOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_MaintenancePolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_MaintenancePolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_MaintenanceWindow_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_MaintenanceWindow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_MaintenanceWindow_MaintenanceExclusionsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_MaintenanceWindow_MaintenanceExclusionsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_TimeWindow_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_TimeWindow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_RecurringTimeWindow_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_RecurringTimeWindow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_DailyMaintenanceWindow_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_DailyMaintenanceWindow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetNodePoolManagementRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetNodePoolManagementRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetNodePoolSizeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetNodePoolSizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_RollbackNodePoolUpgradeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_RollbackNodePoolUpgradeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ListNodePoolsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ListNodePoolsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ClusterAutoscaling_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ClusterAutoscaling_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ResourceLimit_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ResourceLimit_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NodePoolAutoscaling_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NodePoolAutoscaling_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetLabelsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetLabelsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetLabelsRequest_ResourceLabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetLabelsRequest_ResourceLabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetLegacyAbacRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetLegacyAbacRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_StartIPRotationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_StartIPRotationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_CompleteIPRotationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_CompleteIPRotationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_AcceleratorConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_AcceleratorConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_WorkloadMetadataConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_WorkloadMetadataConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetNetworkPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetNetworkPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_SetMaintenancePolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_SetMaintenancePolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_StatusCondition_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_StatusCondition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_NetworkConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_NetworkConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GetOpenIDConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GetOpenIDConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GetOpenIDConfigResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GetOpenIDConfigResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GetJSONWebKeysRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GetJSONWebKeysRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_Jwk_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_Jwk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_GetJSONWebKeysResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_GetJSONWebKeysResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ReleaseChannel_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ReleaseChannel_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_IntraNodeVisibilityConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_IntraNodeVisibilityConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_MaxPodsConstraint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_MaxPodsConstraint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_WorkloadIdentityConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_WorkloadIdentityConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_DatabaseEncryption_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_DatabaseEncryption_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ListUsableSubnetworksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ListUsableSubnetworksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ListUsableSubnetworksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ListUsableSubnetworksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_UsableSubnetworkSecondaryRange_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_UsableSubnetworkSecondaryRange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_UsableSubnetwork_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_UsableSubnetwork_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ResourceUsageExportConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ResourceUsageExportConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ResourceUsageExportConfig_BigQueryDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ResourceUsageExportConfig_BigQueryDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ResourceUsageExportConfig_ConsumptionMeteringConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ResourceUsageExportConfig_ConsumptionMeteringConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_VerticalPodAutoscaling_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_VerticalPodAutoscaling_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_DefaultSnatStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_DefaultSnatStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_container_v1_ShieldedNodes_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_container_v1_ShieldedNodes_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/container/v1/cluster_service.pr" - + "oto\022\023google.container.v1\032\034google/api/ann" - + "otations.proto\032\027google/api/client.proto\032" - + "\037google/api/field_behavior.proto\032\033google" - + "/protobuf/empty.proto\032\037google/protobuf/t" - + "imestamp.proto\"\201\007\n\nNodeConfig\022\024\n\014machine" - + "_type\030\001 \001(\t\022\024\n\014disk_size_gb\030\002 \001(\005\022\024\n\014oau" - + "th_scopes\030\003 \003(\t\022\027\n\017service_account\030\t \001(\t" - + "\022?\n\010metadata\030\004 \003(\0132-.google.container.v1" - + ".NodeConfig.MetadataEntry\022\022\n\nimage_type\030" - + "\005 \001(\t\022;\n\006labels\030\006 \003(\0132+.google.container" - + ".v1.NodeConfig.LabelsEntry\022\027\n\017local_ssd_" - + "count\030\007 \001(\005\022\014\n\004tags\030\010 \003(\t\022\023\n\013preemptible" - + "\030\n \001(\010\022<\n\014accelerators\030\013 \003(\0132&.google.co" - + "ntainer.v1.AcceleratorConfig\022\021\n\tdisk_typ" - + "e\030\014 \001(\t\022\030\n\020min_cpu_platform\030\r \001(\t\022M\n\030wor" - + "kload_metadata_config\030\016 \001(\0132+.google.con" - + "tainer.v1.WorkloadMetadataConfig\022.\n\006tain" - + "ts\030\017 \003(\0132\036.google.container.v1.NodeTaint" - + "\022:\n\016sandbox_config\030\021 \001(\0132\".google.contai" - + "ner.v1.SandboxConfig\022\022\n\nnode_group\030\022 \001(\t" - + "\022F\n\024reservation_affinity\030\023 \001(\0132(.google." - + "container.v1.ReservationAffinity\022M\n\030shie" - + "lded_instance_config\030\024 \001(\0132+.google.cont" - + "ainer.v1.ShieldedInstanceConfig\022\031\n\021boot_" - + "disk_kms_key\030\027 \001(\t\032/\n\rMetadataEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"Y\n\026Sh" - + "ieldedInstanceConfig\022\032\n\022enable_secure_bo" - + "ot\030\001 \001(\010\022#\n\033enable_integrity_monitoring\030" - + "\002 \001(\010\"k\n\rSandboxConfig\0225\n\004type\030\002 \001(\0162\'.g" - + "oogle.container.v1.SandboxConfig.Type\"#\n" - + "\004Type\022\017\n\013UNSPECIFIED\020\000\022\n\n\006GVISOR\020\001\"\337\001\n\023R" - + "eservationAffinity\022O\n\030consume_reservatio" - + "n_type\030\001 \001(\0162-.google.container.v1.Reser" - + "vationAffinity.Type\022\013\n\003key\030\002 \001(\t\022\016\n\006valu" - + "es\030\003 \003(\t\"Z\n\004Type\022\017\n\013UNSPECIFIED\020\000\022\022\n\016NO_" - + "RESERVATION\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SP" - + "ECIFIC_RESERVATION\020\003\"\271\001\n\tNodeTaint\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\0225\n\006effect\030\003 \001(\0162%" - + ".google.container.v1.NodeTaint.Effect\"Y\n" - + "\006Effect\022\026\n\022EFFECT_UNSPECIFIED\020\000\022\017\n\013NO_SC" - + "HEDULE\020\001\022\026\n\022PREFER_NO_SCHEDULE\020\002\022\016\n\nNO_E" - + "XECUTE\020\003\"\331\001\n\nMasterAuth\022\024\n\010username\030\001 \001(" - + "\tB\002\030\001\022\024\n\010password\030\002 \001(\tB\002\030\001\022O\n\031client_ce" - + "rtificate_config\030\003 \001(\0132,.google.containe" - + "r.v1.ClientCertificateConfig\022\036\n\026cluster_" - + "ca_certificate\030d \001(\t\022\032\n\022client_certifica" - + "te\030e \001(\t\022\022\n\nclient_key\030f \001(\t\";\n\027ClientCe" - + "rtificateConfig\022 \n\030issue_client_certific" - + "ate\030\001 \001(\010\"\206\004\n\014AddonsConfig\022C\n\023http_load_" - + "balancing\030\001 \001(\0132&.google.container.v1.Ht" - + "tpLoadBalancing\022Q\n\032horizontal_pod_autosc" - + "aling\030\002 \001(\0132-.google.container.v1.Horizo" - + "ntalPodAutoscaling\022J\n\024kubernetes_dashboa" - + "rd\030\003 \001(\0132(.google.container.v1.Kubernete" - + "sDashboardB\002\030\001\022G\n\025network_policy_config\030" - + "\004 \001(\0132(.google.container.v1.NetworkPolic" - + "yConfig\022=\n\020cloud_run_config\030\007 \001(\0132#.goog" - + "le.container.v1.CloudRunConfig\022=\n\020dns_ca" - + "che_config\030\010 \001(\0132#.google.container.v1.D" - + "nsCacheConfig\022K\n\027config_connector_config" - + "\030\n \001(\0132*.google.container.v1.ConfigConne" - + "ctorConfig\"%\n\021HttpLoadBalancing\022\020\n\010disab" - + "led\030\001 \001(\010\",\n\030HorizontalPodAutoscaling\022\020\n" - + "\010disabled\030\001 \001(\010\"\'\n\023KubernetesDashboard\022\020" - + "\n\010disabled\030\001 \001(\010\"\'\n\023NetworkPolicyConfig\022" - + "\020\n\010disabled\030\001 \001(\010\"!\n\016DnsCacheConfig\022\017\n\007e" - + "nabled\030\001 \001(\010\"9\n&PrivateClusterMasterGlob" - + "alAccessConfig\022\017\n\007enabled\030\001 \001(\010\"\240\002\n\024Priv" - + "ateClusterConfig\022\034\n\024enable_private_nodes" - + "\030\001 \001(\010\022\037\n\027enable_private_endpoint\030\002 \001(\010\022" - + "\036\n\026master_ipv4_cidr_block\030\003 \001(\t\022\030\n\020priva" - + "te_endpoint\030\004 \001(\t\022\027\n\017public_endpoint\030\005 \001" - + "(\t\022\024\n\014peering_name\030\007 \001(\t\022`\n\033master_globa" - + "l_access_config\030\010 \001(\0132;.google.container" - + ".v1.PrivateClusterMasterGlobalAccessConf" - + "ig\"D\n\031AuthenticatorGroupsConfig\022\017\n\007enabl" - + "ed\030\001 \001(\010\022\026\n\016security_group\030\002 \001(\t\"\356\001\n\016Clo" - + "udRunConfig\022\020\n\010disabled\030\001 \001(\010\022P\n\022load_ba" - + "lancer_type\030\003 \001(\01624.google.container.v1." - + "CloudRunConfig.LoadBalancerType\"x\n\020LoadB" - + "alancerType\022\"\n\036LOAD_BALANCER_TYPE_UNSPEC" - + "IFIED\020\000\022\037\n\033LOAD_BALANCER_TYPE_EXTERNAL\020\001" - + "\022\037\n\033LOAD_BALANCER_TYPE_INTERNAL\020\002\"(\n\025Con" - + "figConnectorConfig\022\017\n\007enabled\030\001 \001(\010\"\274\001\n\036" - + "MasterAuthorizedNetworksConfig\022\017\n\007enable" - + "d\030\001 \001(\010\022R\n\013cidr_blocks\030\002 \003(\0132=.google.co" - + "ntainer.v1.MasterAuthorizedNetworksConfi" - + "g.CidrBlock\0325\n\tCidrBlock\022\024\n\014display_name" - + "\030\001 \001(\t\022\022\n\ncidr_block\030\002 \001(\t\"\035\n\nLegacyAbac" - + "\022\017\n\007enabled\030\001 \001(\010\"\221\001\n\rNetworkPolicy\022=\n\010p" - + "rovider\030\001 \001(\0162+.google.container.v1.Netw" - + "orkPolicy.Provider\022\017\n\007enabled\030\002 \001(\010\"0\n\010P" - + "rovider\022\030\n\024PROVIDER_UNSPECIFIED\020\000\022\n\n\006CAL" - + "ICO\020\001\"&\n\023BinaryAuthorization\022\017\n\007enabled\030" - + "\001 \001(\010\"\232\003\n\022IPAllocationPolicy\022\026\n\016use_ip_a" - + "liases\030\001 \001(\010\022\031\n\021create_subnetwork\030\002 \001(\010\022" - + "\027\n\017subnetwork_name\030\003 \001(\t\022\035\n\021cluster_ipv4" - + "_cidr\030\004 \001(\tB\002\030\001\022\032\n\016node_ipv4_cidr\030\005 \001(\tB" - + "\002\030\001\022\036\n\022services_ipv4_cidr\030\006 \001(\tB\002\030\001\022$\n\034c" - + "luster_secondary_range_name\030\007 \001(\t\022%\n\035ser" - + "vices_secondary_range_name\030\010 \001(\t\022\037\n\027clus" - + "ter_ipv4_cidr_block\030\t \001(\t\022\034\n\024node_ipv4_c" - + "idr_block\030\n \001(\t\022 \n\030services_ipv4_cidr_bl" - + "ock\030\013 \001(\t\022\033\n\023tpu_ipv4_cidr_block\030\r \001(\t\022\022" - + "\n\nuse_routes\030\017 \001(\010\"\264\023\n\007Cluster\022\014\n\004name\030\001" - + " \001(\t\022\023\n\013description\030\002 \001(\t\022\036\n\022initial_nod" - + "e_count\030\003 \001(\005B\002\030\001\0228\n\013node_config\030\004 \001(\0132\037" - + ".google.container.v1.NodeConfigB\002\030\001\0224\n\013m" - + "aster_auth\030\005 \001(\0132\037.google.container.v1.M" - + "asterAuth\022\027\n\017logging_service\030\006 \001(\t\022\032\n\022mo" - + "nitoring_service\030\007 \001(\t\022\017\n\007network\030\010 \001(\t\022" - + "\031\n\021cluster_ipv4_cidr\030\t \001(\t\0228\n\raddons_con" - + "fig\030\n \001(\0132!.google.container.v1.AddonsCo" - + "nfig\022\022\n\nsubnetwork\030\013 \001(\t\0221\n\nnode_pools\030\014" - + " \003(\0132\035.google.container.v1.NodePool\022\021\n\tl" - + "ocations\030\r \003(\t\022\037\n\027enable_kubernetes_alph" - + "a\030\016 \001(\010\022I\n\017resource_labels\030\017 \003(\01320.googl" - + "e.container.v1.Cluster.ResourceLabelsEnt" - + "ry\022\031\n\021label_fingerprint\030\020 \001(\t\0224\n\013legacy_" - + "abac\030\022 \001(\0132\037.google.container.v1.LegacyA" - + "bac\022:\n\016network_policy\030\023 \001(\0132\".google.con" - + "tainer.v1.NetworkPolicy\022E\n\024ip_allocation" - + "_policy\030\024 \001(\0132\'.google.container.v1.IPAl" - + "locationPolicy\022^\n!master_authorized_netw" - + "orks_config\030\026 \001(\01323.google.container.v1." - + "MasterAuthorizedNetworksConfig\022B\n\022mainte" - + "nance_policy\030\027 \001(\0132&.google.container.v1" - + ".MaintenancePolicy\022F\n\024binary_authorizati" - + "on\030\030 \001(\0132(.google.container.v1.BinaryAut" - + "horization\022<\n\013autoscaling\030\032 \001(\0132\'.google" - + ".container.v1.ClusterAutoscaling\022:\n\016netw" - + "ork_config\030\033 \001(\0132\".google.container.v1.N" - + "etworkConfig\022K\n\033default_max_pods_constra" - + "int\030\036 \001(\0132&.google.container.v1.MaxPodsC" - + "onstraint\022T\n\034resource_usage_export_confi" - + "g\030! \001(\0132..google.container.v1.ResourceUs" - + "ageExportConfig\022S\n\033authenticator_groups_" - + "config\030\" \001(\0132..google.container.v1.Authe" - + "nticatorGroupsConfig\022I\n\026private_cluster_" - + "config\030% \001(\0132).google.container.v1.Priva" - + "teClusterConfig\022D\n\023database_encryption\030&" - + " \001(\0132\'.google.container.v1.DatabaseEncry" - + "ption\022M\n\030vertical_pod_autoscaling\030\' \001(\0132" - + "+.google.container.v1.VerticalPodAutosca" - + "ling\022:\n\016shielded_nodes\030( \001(\0132\".google.co" - + "ntainer.v1.ShieldedNodes\022<\n\017release_chan" - + "nel\030) \001(\0132#.google.container.v1.ReleaseC" - + "hannel\022M\n\030workload_identity_config\030+ \001(\013" - + "2+.google.container.v1.WorkloadIdentityC" - + "onfig\022\021\n\tself_link\030d \001(\t\022\020\n\004zone\030e \001(\tB\002" - + "\030\001\022\020\n\010endpoint\030f \001(\t\022\037\n\027initial_cluster_" - + "version\030g \001(\t\022\036\n\026current_master_version\030" - + "h \001(\t\022 \n\024current_node_version\030i \001(\tB\002\030\001\022" - + "\023\n\013create_time\030j \001(\t\0223\n\006status\030k \001(\0162#.g" - + "oogle.container.v1.Cluster.Status\022\032\n\016sta" - + "tus_message\030l \001(\tB\002\030\001\022\033\n\023node_ipv4_cidr_" - + "size\030m \001(\005\022\032\n\022services_ipv4_cidr\030n \001(\t\022\037" - + "\n\023instance_group_urls\030o \003(\tB\002\030\001\022\036\n\022curre" - + "nt_node_count\030p \001(\005B\002\030\001\022\023\n\013expire_time\030q" - + " \001(\t\022\020\n\010location\030r \001(\t\022\022\n\nenable_tpu\030s \001" - + "(\010\022\033\n\023tpu_ipv4_cidr_block\030t \001(\t\0228\n\ncondi" - + "tions\030v \003(\0132$.google.container.v1.Status" - + "Condition\0325\n\023ResourceLabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\006Status\022\026\n\022ST" - + "ATUS_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007" - + "RUNNING\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010STOPPING\020\004" - + "\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006\"\342\n\n\rClusterUpd" - + "ate\022\034\n\024desired_node_version\030\004 \001(\t\022\"\n\032des" - + "ired_monitoring_service\030\005 \001(\t\022@\n\025desired" - + "_addons_config\030\006 \001(\0132!.google.container." - + "v1.AddonsConfig\022\034\n\024desired_node_pool_id\030" - + "\007 \001(\t\022\032\n\022desired_image_type\030\010 \001(\t\022L\n\033des" - + "ired_database_encryption\030. \001(\0132\'.google." - + "container.v1.DatabaseEncryption\022U\n desir" - + "ed_workload_identity_config\030/ \001(\0132+.goog" - + "le.container.v1.WorkloadIdentityConfig\022B" - + "\n\026desired_shielded_nodes\0300 \001(\0132\".google." - + "container.v1.ShieldedNodes\022O\n\035desired_no" - + "de_pool_autoscaling\030\t \001(\0132(.google.conta" - + "iner.v1.NodePoolAutoscaling\022\031\n\021desired_l" - + "ocations\030\n \003(\t\022f\n)desired_master_authori" - + "zed_networks_config\030\014 \001(\01323.google.conta" - + "iner.v1.MasterAuthorizedNetworksConfig\022L" - + "\n\033desired_cluster_autoscaling\030\017 \001(\0132\'.go" - + "ogle.container.v1.ClusterAutoscaling\022N\n\034" - + "desired_binary_authorization\030\020 \001(\0132(.goo" - + "gle.container.v1.BinaryAuthorization\022\037\n\027" - + "desired_logging_service\030\023 \001(\t\022\\\n$desired" - + "_resource_usage_export_config\030\025 \001(\0132..go" - + "ogle.container.v1.ResourceUsageExportCon" - + "fig\022U\n desired_vertical_pod_autoscaling\030" - + "\026 \001(\0132+.google.container.v1.VerticalPodA" - + "utoscaling\022Q\n\036desired_private_cluster_co" - + "nfig\030\031 \001(\0132).google.container.v1.Private" - + "ClusterConfig\022\\\n$desired_intra_node_visi" - + "bility_config\030\032 \001(\0132..google.container.v" - + "1.IntraNodeVisibilityConfig\022K\n\033desired_d" - + "efault_snat_status\030\034 \001(\0132&.google.contai" - + "ner.v1.DefaultSnatStatus\022D\n\027desired_rele" - + "ase_channel\030\037 \001(\0132#.google.container.v1." - + "ReleaseChannel\022\036\n\026desired_master_version" - + "\030d \001(\t\"\304\007\n\tOperation\022\014\n\004name\030\001 \001(\t\022\020\n\004zo" - + "ne\030\002 \001(\tB\002\030\001\022;\n\016operation_type\030\003 \001(\0162#.g" - + "oogle.container.v1.Operation.Type\0225\n\006sta" - + "tus\030\004 \001(\0162%.google.container.v1.Operatio" - + "n.Status\022\016\n\006detail\030\010 \001(\t\022\033\n\016status_messa" - + "ge\030\005 \001(\tB\003\340A\003\022\021\n\tself_link\030\006 \001(\t\022\023\n\013targ" - + "et_link\030\007 \001(\t\022\020\n\010location\030\t \001(\t\022\022\n\nstart" - + "_time\030\n \001(\t\022\020\n\010end_time\030\013 \001(\t\022=\n\010progres" - + "s\030\014 \001(\0132&.google.container.v1.OperationP" - + "rogressB\003\340A\003\022@\n\022cluster_conditions\030\r \003(\013" - + "2$.google.container.v1.StatusCondition\022A" - + "\n\023nodepool_conditions\030\016 \003(\0132$.google.con" - + "tainer.v1.StatusCondition\"R\n\006Status\022\026\n\022S" - + "TATUS_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNN" - + "ING\020\002\022\010\n\004DONE\020\003\022\014\n\010ABORTING\020\004\"\375\002\n\004Type\022\024" - + "\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016CREATE_CLUSTER\020\001" - + "\022\022\n\016DELETE_CLUSTER\020\002\022\022\n\016UPGRADE_MASTER\020\003" - + "\022\021\n\rUPGRADE_NODES\020\004\022\022\n\016REPAIR_CLUSTER\020\005\022" - + "\022\n\016UPDATE_CLUSTER\020\006\022\024\n\020CREATE_NODE_POOL\020" - + "\007\022\024\n\020DELETE_NODE_POOL\020\010\022\034\n\030SET_NODE_POOL" - + "_MANAGEMENT\020\t\022\025\n\021AUTO_REPAIR_NODES\020\n\022\026\n\022" - + "AUTO_UPGRADE_NODES\020\013\022\016\n\nSET_LABELS\020\014\022\023\n\017" - + "SET_MASTER_AUTH\020\r\022\026\n\022SET_NODE_POOL_SIZE\020" - + "\016\022\026\n\022SET_NETWORK_POLICY\020\017\022\032\n\026SET_MAINTEN" - + "ANCE_POLICY\020\020\"\273\002\n\021OperationProgress\022\014\n\004n" - + "ame\030\001 \001(\t\0225\n\006status\030\002 \001(\0162%.google.conta" - + "iner.v1.Operation.Status\022>\n\007metrics\030\003 \003(" - + "\0132-.google.container.v1.OperationProgres" - + "s.Metric\0226\n\006stages\030\004 \003(\0132&.google.contai" - + "ner.v1.OperationProgress\032i\n\006Metric\022\021\n\004na" - + "me\030\001 \001(\tB\003\340A\002\022\023\n\tint_value\030\002 \001(\003H\000\022\026\n\014do" - + "uble_value\030\003 \001(\001H\000\022\026\n\014string_value\030\004 \001(\t" - + "H\000B\007\n\005value\"\204\001\n\024CreateClusterRequest\022\026\n\n" - + "project_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\0222" - + "\n\007cluster\030\003 \001(\0132\034.google.container.v1.Cl" - + "usterB\003\340A\002\022\016\n\006parent\030\005 \001(\t\"c\n\021GetCluster" - + "Request\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030" - + "\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004nam" - + "e\030\005 \001(\t\"\237\001\n\024UpdateClusterRequest\022\026\n\nproj" - + "ect_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncl" - + "uster_id\030\003 \001(\tB\002\030\001\0227\n\006update\030\004 \001(\0132\".goo" - + "gle.container.v1.ClusterUpdateB\003\340A\002\022\014\n\004n" - + "ame\030\005 \001(\t\"\340\002\n\025UpdateNodePoolRequest\022\026\n\np" - + "roject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n" - + "\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 " - + "\001(\tB\002\030\001\022\031\n\014node_version\030\005 \001(\tB\003\340A\002\022\027\n\nim" - + "age_type\030\006 \001(\tB\003\340A\002\022\014\n\004name\030\010 \001(\t\022\021\n\tloc" - + "ations\030\r \003(\t\022M\n\030workload_metadata_config" - + "\030\016 \001(\0132+.google.container.v1.WorkloadMet" - + "adataConfig\022G\n\020upgrade_settings\030\017 \001(\0132-." - + "google.container.v1.NodePool.UpgradeSett" - + "ings\"\315\001\n\035SetNodePoolAutoscalingRequest\022\026" - + "\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001" - + "\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id" - + "\030\004 \001(\tB\002\030\001\022B\n\013autoscaling\030\005 \001(\0132(.google" - + ".container.v1.NodePoolAutoscalingB\003\340A\002\022\014" - + "\n\004name\030\006 \001(\t\"\210\001\n\030SetLoggingServiceReques" - + "t\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB" - + "\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\034\n\017logging_s" - + "ervice\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\216\001\n\033SetM" - + "onitoringServiceRequest\022\026\n\nproject_id\030\001 " - + "\001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030" - + "\003 \001(\tB\002\030\001\022\037\n\022monitoring_service\030\004 \001(\tB\003\340" - + "A\002\022\014\n\004name\030\006 \001(\t\"\247\001\n\026SetAddonsConfigRequ" - + "est\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(" - + "\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022=\n\raddons_" - + "config\030\004 \001(\0132!.google.container.v1.Addon" - + "sConfigB\003\340A\002\022\014\n\004name\030\006 \001(\t\"}\n\023SetLocatio" - + "nsRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zon" - + "e\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\026\n\tl" - + "ocations\030\004 \003(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\202\001\n\023Up" - + "dateMasterRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030" - + "\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB" - + "\002\030\001\022\033\n\016master_version\030\004 \001(\tB\003\340A\002\022\014\n\004name" - + "\030\007 \001(\t\"\265\002\n\024SetMasterAuthRequest\022\026\n\nproje" - + "ct_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclu" - + "ster_id\030\003 \001(\tB\002\030\001\022E\n\006action\030\004 \001(\01620.goog" - + "le.container.v1.SetMasterAuthRequest.Act" - + "ionB\003\340A\002\0224\n\006update\030\005 \001(\0132\037.google.contai" - + "ner.v1.MasterAuthB\003\340A\002\022\014\n\004name\030\007 \001(\t\"P\n\006" - + "Action\022\013\n\007UNKNOWN\020\000\022\020\n\014SET_PASSWORD\020\001\022\025\n" - + "\021GENERATE_PASSWORD\020\002\022\020\n\014SET_USERNAME\020\003\"f" - + "\n\024DeleteClusterRequest\022\026\n\nproject_id\030\001 \001" - + "(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003" - + " \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"O\n\023ListClustersRe" - + "quest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 " - + "\001(\tB\002\030\001\022\016\n\006parent\030\004 \001(\t\"]\n\024ListClustersR" - + "esponse\022.\n\010clusters\030\001 \003(\0132\034.google.conta" - + "iner.v1.Cluster\022\025\n\rmissing_zones\030\002 \003(\t\"g" - + "\n\023GetOperationRequest\022\026\n\nproject_id\030\001 \001(" - + "\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\030\n\014operation_id\030" - + "\003 \001(\tB\002\030\001\022\014\n\004name\030\005 \001(\t\"Q\n\025ListOperation" - + "sRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone" - + "\030\002 \001(\tB\002\030\001\022\016\n\006parent\030\004 \001(\t\"j\n\026CancelOper" - + "ationRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004" - + "zone\030\002 \001(\tB\002\030\001\022\030\n\014operation_id\030\003 \001(\tB\002\030\001" - + "\022\014\n\004name\030\004 \001(\t\"c\n\026ListOperationsResponse" - + "\0222\n\noperations\030\001 \003(\0132\036.google.container." - + "v1.Operation\022\025\n\rmissing_zones\030\002 \003(\t\"P\n\026G" - + "etServerConfigRequest\022\026\n\nproject_id\030\001 \001(" - + "\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"\364\002" - + "\n\014ServerConfig\022\037\n\027default_cluster_versio" - + "n\030\001 \001(\t\022\033\n\023valid_node_versions\030\003 \003(\t\022\032\n\022" - + "default_image_type\030\004 \001(\t\022\031\n\021valid_image_" - + "types\030\005 \003(\t\022\035\n\025valid_master_versions\030\006 \003" - + "(\t\022H\n\010channels\030\t \003(\01326.google.container." - + "v1.ServerConfig.ReleaseChannelConfig\032\205\001\n" - + "\024ReleaseChannelConfig\022<\n\007channel\030\001 \001(\0162+" - + ".google.container.v1.ReleaseChannel.Chan" - + "nel\022\027\n\017default_version\030\002 \001(\t\022\026\n\016valid_ve" - + "rsions\030\004 \003(\t\"\240\001\n\025CreateNodePoolRequest\022\026" - + "\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001" - + "\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\0225\n\tnode_pool\030\004 " - + "\001(\0132\035.google.container.v1.NodePoolB\003\340A\002\022" - + "\016\n\006parent\030\006 \001(\t\"\201\001\n\025DeleteNodePoolReques" - + "t\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB" - + "\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool" - + "_id\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\"h\n\024ListNodeP" - + "oolsRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004z" - + "one\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\016\n" - + "\006parent\030\005 \001(\t\"~\n\022GetNodePoolRequest\022\026\n\np" - + "roject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n" - + "\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 " - + "\001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\"\252\006\n\010NodePool\022\014\n\004na" - + "me\030\001 \001(\t\022/\n\006config\030\002 \001(\0132\037.google.contai" - + "ner.v1.NodeConfig\022\032\n\022initial_node_count\030" - + "\003 \001(\005\022\021\n\tlocations\030\r \003(\t\022\021\n\tself_link\030d " - + "\001(\t\022\017\n\007version\030e \001(\t\022\033\n\023instance_group_u" - + "rls\030f \003(\t\0224\n\006status\030g \001(\0162$.google.conta" - + "iner.v1.NodePool.Status\022\032\n\016status_messag" - + "e\030h \001(\tB\002\030\001\022=\n\013autoscaling\030\004 \001(\0132(.googl" - + "e.container.v1.NodePoolAutoscaling\0227\n\nma" - + "nagement\030\005 \001(\0132#.google.container.v1.Nod" - + "eManagement\022C\n\023max_pods_constraint\030\006 \001(\013" - + "2&.google.container.v1.MaxPodsConstraint" - + "\0228\n\nconditions\030i \003(\0132$.google.container." - + "v1.StatusCondition\022\032\n\022pod_ipv4_cidr_size" - + "\030\007 \001(\005\022G\n\020upgrade_settings\030k \001(\0132-.googl" - + "e.container.v1.NodePool.UpgradeSettings\032" - + "=\n\017UpgradeSettings\022\021\n\tmax_surge\030\001 \001(\005\022\027\n" - + "\017max_unavailable\030\002 \001(\005\"\201\001\n\006Status\022\026\n\022STA" - + "TUS_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007R" - + "UNNING\020\002\022\026\n\022RUNNING_WITH_ERROR\020\003\022\017\n\013RECO" - + "NCILING\020\004\022\014\n\010STOPPING\020\005\022\t\n\005ERROR\020\006\"}\n\016No" - + "deManagement\022\024\n\014auto_upgrade\030\001 \001(\010\022\023\n\013au" - + "to_repair\030\002 \001(\010\022@\n\017upgrade_options\030\n \001(\013" - + "2\'.google.container.v1.AutoUpgradeOption" - + "s\"J\n\022AutoUpgradeOptions\022\037\n\027auto_upgrade_" - + "start_time\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\"e\n" - + "\021MaintenancePolicy\0226\n\006window\030\001 \001(\0132&.goo" - + "gle.container.v1.MaintenanceWindow\022\030\n\020re" - + "source_version\030\003 \001(\t\"\366\002\n\021MaintenanceWind" - + "ow\022O\n\030daily_maintenance_window\030\002 \001(\0132+.g" - + "oogle.container.v1.DailyMaintenanceWindo" - + "wH\000\022D\n\020recurring_window\030\003 \001(\0132(.google.c" - + "ontainer.v1.RecurringTimeWindowH\000\022a\n\026mai" - + "ntenance_exclusions\030\004 \003(\0132A.google.conta" - + "iner.v1.MaintenanceWindow.MaintenanceExc" - + "lusionsEntry\032]\n\032MaintenanceExclusionsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022.\n\005value\030\002 \001(\0132\037.google." - + "container.v1.TimeWindow:\0028\001B\010\n\006policy\"j\n" - + "\nTimeWindow\022.\n\nstart_time\030\001 \001(\0132\032.google" - + ".protobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032." - + "google.protobuf.Timestamp\"Z\n\023RecurringTi" - + "meWindow\022/\n\006window\030\001 \001(\0132\037.google.contai" - + "ner.v1.TimeWindow\022\022\n\nrecurrence\030\002 \001(\t\">\n" - + "\026DailyMaintenanceWindow\022\022\n\nstart_time\030\002 " - + "\001(\t\022\020\n\010duration\030\003 \001(\t\"\306\001\n\034SetNodePoolMan" - + "agementRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020" - + "\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001" - + "\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022<\n\nmanagement" - + "\030\005 \001(\0132#.google.container.v1.NodeManagem" - + "entB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\233\001\n\026SetNodePoolSi" - + "zeRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zon" - + "e\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014n" - + "ode_pool_id\030\004 \001(\tB\002\030\001\022\027\n\nnode_count\030\005 \001(" - + "\005B\003\340A\002\022\014\n\004name\030\007 \001(\t\"\212\001\n\036RollbackNodePoo" - + "lUpgradeRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022" - + "\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030" - + "\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(" - + "\t\"J\n\025ListNodePoolsResponse\0221\n\nnode_pools" - + "\030\001 \003(\0132\035.google.container.v1.NodePool\"\377\001" - + "\n\022ClusterAutoscaling\022$\n\034enable_node_auto" - + "provisioning\030\001 \001(\010\022;\n\017resource_limits\030\002 " - + "\003(\0132\".google.container.v1.ResourceLimit\022" - + "b\n#autoprovisioning_node_pool_defaults\030\004" - + " \001(\01325.google.container.v1.Autoprovision" - + "ingNodePoolDefaults\022\"\n\032autoprovisioning_" - + "locations\030\005 \003(\t\"\200\003\n AutoprovisioningNode" - + "PoolDefaults\022\024\n\014oauth_scopes\030\001 \003(\t\022\027\n\017se" - + "rvice_account\030\002 \001(\t\022G\n\020upgrade_settings\030" - + "\003 \001(\0132-.google.container.v1.NodePool.Upg" - + "radeSettings\0227\n\nmanagement\030\004 \001(\0132#.googl" - + "e.container.v1.NodeManagement\022\030\n\020min_cpu" - + "_platform\030\005 \001(\t\022\024\n\014disk_size_gb\030\006 \001(\005\022\021\n" - + "\tdisk_type\030\007 \001(\t\022M\n\030shielded_instance_co" - + "nfig\030\010 \001(\0132+.google.container.v1.Shielde", - "dInstanceConfig\022\031\n\021boot_disk_kms_key\030\t \001" - + "(\t\"H\n\rResourceLimit\022\025\n\rresource_type\030\001 \001" - + "(\t\022\017\n\007minimum\030\002 \001(\003\022\017\n\007maximum\030\003 \001(\003\"o\n\023" - + "NodePoolAutoscaling\022\017\n\007enabled\030\001 \001(\010\022\026\n\016" - + "min_node_count\030\002 \001(\005\022\026\n\016max_node_count\030\003" - + " \001(\005\022\027\n\017autoprovisioned\030\004 \001(\010\"\222\002\n\020SetLab" - + "elsRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zo" - + "ne\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022W\n\017" - + "resource_labels\030\004 \003(\01329.google.container" - + ".v1.SetLabelsRequest.ResourceLabelsEntry" - + "B\003\340A\002\022\036\n\021label_fingerprint\030\005 \001(\tB\003\340A\002\022\014\n" - + "\004name\030\007 \001(\t\0325\n\023ResourceLabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"|\n\024SetLegacyA" - + "bacRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zo" - + "ne\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\024\n\007" - + "enabled\030\004 \001(\010B\003\340A\002\022\014\n\004name\030\006 \001(\t\"\204\001\n\026Sta" - + "rtIPRotationRequest\022\026\n\nproject_id\030\001 \001(\tB" - + "\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(" - + "\tB\002\030\001\022\014\n\004name\030\006 \001(\t\022\032\n\022rotate_credential" - + "s\030\007 \001(\010\"k\n\031CompleteIPRotationRequest\022\026\n\n" - + "project_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026" - + "\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\007 \001(\t\"H\n\021" - + "AcceleratorConfig\022\031\n\021accelerator_count\030\001" - + " \001(\003\022\030\n\020accelerator_type\030\002 \001(\t\"\232\001\n\026Workl" - + "oadMetadataConfig\022>\n\004mode\030\002 \001(\01620.google" - + ".container.v1.WorkloadMetadataConfig.Mod" - + "e\"@\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\020\n\014GCE_M" - + "ETADATA\020\001\022\020\n\014GKE_METADATA\020\002\"\252\001\n\027SetNetwo" - + "rkPolicyRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022" - + "\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030" - + "\001\022?\n\016network_policy\030\004 \001(\0132\".google.conta" - + "iner.v1.NetworkPolicyB\003\340A\002\022\014\n\004name\030\006 \001(\t" - + "\"\271\001\n\033SetMaintenancePolicyRequest\022\027\n\nproj" - + "ect_id\030\001 \001(\tB\003\340A\002\022\021\n\004zone\030\002 \001(\tB\003\340A\002\022\027\n\n" - + "cluster_id\030\003 \001(\tB\003\340A\002\022G\n\022maintenance_pol" - + "icy\030\004 \001(\0132&.google.container.v1.Maintena" - + "ncePolicyB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\352\001\n\017StatusC" - + "ondition\0227\n\004code\030\001 \001(\0162).google.containe" - + "r.v1.StatusCondition.Code\022\017\n\007message\030\002 \001" - + "(\t\"\214\001\n\004Code\022\013\n\007UNKNOWN\020\000\022\020\n\014GCE_STOCKOUT" - + "\020\001\022\037\n\033GKE_SERVICE_ACCOUNT_DELETED\020\002\022\026\n\022G" - + "CE_QUOTA_EXCEEDED\020\003\022\023\n\017SET_BY_OPERATOR\020\004" - + "\022\027\n\023CLOUD_KMS_KEY_ERROR\020\007\"\237\001\n\rNetworkCon" - + "fig\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t" - + "\022$\n\034enable_intra_node_visibility\030\005 \001(\010\022C" - + "\n\023default_snat_status\030\007 \001(\0132&.google.con" - + "tainer.v1.DefaultSnatStatus\"(\n\026GetOpenID" - + "ConfigRequest\022\016\n\006parent\030\001 \001(\t\"\334\001\n\027GetOpe" - + "nIDConfigResponse\022\016\n\006issuer\030\001 \001(\t\022\020\n\010jwk" - + "s_uri\030\002 \001(\t\022 \n\030response_types_supported\030" - + "\003 \003(\t\022\037\n\027subject_types_supported\030\004 \003(\t\022-" - + "\n%id_token_signing_alg_values_supported\030" - + "\005 \003(\t\022\030\n\020claims_supported\030\006 \003(\t\022\023\n\013grant" - + "_types\030\007 \003(\t\"\'\n\025GetJSONWebKeysRequest\022\016\n" - + "\006parent\030\001 \001(\t\"r\n\003Jwk\022\013\n\003kty\030\001 \001(\t\022\013\n\003alg" - + "\030\002 \001(\t\022\013\n\003use\030\003 \001(\t\022\013\n\003kid\030\004 \001(\t\022\t\n\001n\030\005 " - + "\001(\t\022\t\n\001e\030\006 \001(\t\022\t\n\001x\030\007 \001(\t\022\t\n\001y\030\010 \001(\t\022\013\n\003" - + "crv\030\t \001(\t\"@\n\026GetJSONWebKeysResponse\022&\n\004k" - + "eys\030\001 \003(\0132\030.google.container.v1.Jwk\"\216\001\n\016" - + "ReleaseChannel\022<\n\007channel\030\001 \001(\0162+.google" - + ".container.v1.ReleaseChannel.Channel\">\n\007" - + "Channel\022\017\n\013UNSPECIFIED\020\000\022\t\n\005RAPID\020\001\022\013\n\007R" - + "EGULAR\020\002\022\n\n\006STABLE\020\003\",\n\031IntraNodeVisibil" - + "ityConfig\022\017\n\007enabled\030\001 \001(\010\".\n\021MaxPodsCon" - + "straint\022\031\n\021max_pods_per_node\030\001 \001(\003\"/\n\026Wo" - + "rkloadIdentityConfig\022\025\n\rworkload_pool\030\002 " - + "\001(\t\"\230\001\n\022DatabaseEncryption\022<\n\005state\030\002 \001(" - + "\0162-.google.container.v1.DatabaseEncrypti" - + "on.State\022\020\n\010key_name\030\001 \001(\t\"2\n\005State\022\013\n\007U" - + "NKNOWN\020\000\022\r\n\tENCRYPTED\020\001\022\r\n\tDECRYPTED\020\002\"e" - + "\n\034ListUsableSubnetworksRequest\022\016\n\006parent" - + "\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(" - + "\005\022\022\n\npage_token\030\004 \001(\t\"t\n\035ListUsableSubne" - + "tworksResponse\022:\n\013subnetworks\030\001 \003(\0132%.go" - + "ogle.container.v1.UsableSubnetwork\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"\200\002\n\036UsableSubnetwork" - + "SecondaryRange\022\022\n\nrange_name\030\001 \001(\t\022\025\n\rip" - + "_cidr_range\030\002 \001(\t\022J\n\006status\030\003 \001(\0162:.goog" - + "le.container.v1.UsableSubnetworkSecondar" - + "yRange.Status\"g\n\006Status\022\013\n\007UNKNOWN\020\000\022\n\n\006" - + "UNUSED\020\001\022\022\n\016IN_USE_SERVICE\020\002\022\030\n\024IN_USE_S" - + "HAREABLE_POD\020\003\022\026\n\022IN_USE_MANAGED_POD\020\004\"\270" - + "\001\n\020UsableSubnetwork\022\022\n\nsubnetwork\030\001 \001(\t\022" - + "\017\n\007network\030\002 \001(\t\022\025\n\rip_cidr_range\030\003 \001(\t\022" - + "P\n\023secondary_ip_ranges\030\004 \003(\01323.google.co" - + "ntainer.v1.UsableSubnetworkSecondaryRang" - + "e\022\026\n\016status_message\030\005 \001(\t\"\355\002\n\031ResourceUs" - + "ageExportConfig\022`\n\024bigquery_destination\030" - + "\001 \001(\0132B.google.container.v1.ResourceUsag" - + "eExportConfig.BigQueryDestination\022&\n\036ena" - + "ble_network_egress_metering\030\002 \001(\010\022m\n\033con" - + "sumption_metering_config\030\003 \001(\0132H.google." - + "container.v1.ResourceUsageExportConfig.C" - + "onsumptionMeteringConfig\032)\n\023BigQueryDest" - + "ination\022\022\n\ndataset_id\030\001 \001(\t\032,\n\031Consumpti" - + "onMeteringConfig\022\017\n\007enabled\030\001 \001(\010\")\n\026Ver" - + "ticalPodAutoscaling\022\017\n\007enabled\030\001 \001(\010\"%\n\021" - + "DefaultSnatStatus\022\020\n\010disabled\030\001 \001(\010\" \n\rS" - + "hieldedNodes\022\017\n\007enabled\030\001 \001(\0102\205F\n\016Cluste" - + "rManager\022\350\001\n\014ListClusters\022(.google.conta" - + "iner.v1.ListClustersRequest\032).google.con" - + "tainer.v1.ListClustersResponse\"\202\001\202\323\344\223\002a\022" - + ",/v1/{parent=projects/*/locations/*}/clu" - + "stersZ1\022//v1/projects/{project_id}/zones" - + "/{zone}/clusters\332A\017project_id,zone\332A\006par" - + "ent\022\355\001\n\nGetCluster\022&.google.container.v1" - + ".GetClusterRequest\032\034.google.container.v1" - + ".Cluster\"\230\001\202\323\344\223\002n\022,/v1/{name=projects/*/" - + "locations/*/clusters/*}Z>\022*/v1/{name=projects/" - + "*/locations/*/clusters/*}:setResourceLab" - + "els:\001*ZP\"K/v1/projects/{project_id}/zone" - + "s/{zone}/clusters/{cluster_id}/resourceL" - + "abels:\001*\022\245\002\n\rSetLegacyAbac\022).google.cont" - + "ainer.v1.SetLegacyAbacRequest\032\036.google.c" - + "ontainer.v1.Operation\"\310\001\202\323\344\223\002\215\001\":/v1/{na" - + "me=projects/*/locations/*/clusters/*}:se" - + "tLegacyAbac:\001*ZL\"G/v1/projects/{project_" - + "id}/zones/{zone}/clusters/{cluster_id}/l" - + "egacyAbac:\001*\332A\"project_id,zone,cluster_i" - + "d,enabled\332A\014name,enabled\022\240\002\n\017StartIPRota" - + "tion\022+.google.container.v1.StartIPRotati" - + "onRequest\032\036.google.container.v1.Operatio" - + "n\"\277\001\202\323\344\223\002\224\001\" - * ClusterUpdate describes an update to the cluster. Exactly one update can - * be applied to a cluster with each request, so at most one field can be - * provided. - * - * - * Protobuf type {@code google.container.v1.ClusterUpdate} - */ -public final class ClusterUpdate extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ClusterUpdate) - ClusterUpdateOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterUpdate.newBuilder() to construct. - private ClusterUpdate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ClusterUpdate() { - desiredNodeVersion_ = ""; - desiredMonitoringService_ = ""; - desiredNodePoolId_ = ""; - desiredImageType_ = ""; - desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - desiredLoggingService_ = ""; - desiredMasterVersion_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ClusterUpdate(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ClusterUpdate( - 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 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - desiredNodeVersion_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - desiredMonitoringService_ = s; - break; - } - case 50: - { - com.google.container.v1.AddonsConfig.Builder subBuilder = null; - if (desiredAddonsConfig_ != null) { - subBuilder = desiredAddonsConfig_.toBuilder(); - } - desiredAddonsConfig_ = - input.readMessage( - com.google.container.v1.AddonsConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(desiredAddonsConfig_); - desiredAddonsConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - desiredNodePoolId_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - desiredImageType_ = s; - break; - } - case 74: - { - com.google.container.v1.NodePoolAutoscaling.Builder subBuilder = null; - if (desiredNodePoolAutoscaling_ != null) { - subBuilder = desiredNodePoolAutoscaling_.toBuilder(); - } - desiredNodePoolAutoscaling_ = - input.readMessage( - com.google.container.v1.NodePoolAutoscaling.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(desiredNodePoolAutoscaling_); - desiredNodePoolAutoscaling_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - desiredLocations_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - desiredLocations_.add(s); - break; - } - case 98: - { - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder subBuilder = null; - if (desiredMasterAuthorizedNetworksConfig_ != null) { - subBuilder = desiredMasterAuthorizedNetworksConfig_.toBuilder(); - } - desiredMasterAuthorizedNetworksConfig_ = - input.readMessage( - com.google.container.v1.MasterAuthorizedNetworksConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(desiredMasterAuthorizedNetworksConfig_); - desiredMasterAuthorizedNetworksConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 122: - { - com.google.container.v1.ClusterAutoscaling.Builder subBuilder = null; - if (desiredClusterAutoscaling_ != null) { - subBuilder = desiredClusterAutoscaling_.toBuilder(); - } - desiredClusterAutoscaling_ = - input.readMessage( - com.google.container.v1.ClusterAutoscaling.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(desiredClusterAutoscaling_); - desiredClusterAutoscaling_ = subBuilder.buildPartial(); - } - - break; - } - case 130: - { - com.google.container.v1.BinaryAuthorization.Builder subBuilder = null; - if (desiredBinaryAuthorization_ != null) { - subBuilder = desiredBinaryAuthorization_.toBuilder(); - } - desiredBinaryAuthorization_ = - input.readMessage( - com.google.container.v1.BinaryAuthorization.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(desiredBinaryAuthorization_); - desiredBinaryAuthorization_ = subBuilder.buildPartial(); - } - - break; - } - case 154: - { - java.lang.String s = input.readStringRequireUtf8(); - - desiredLoggingService_ = s; - break; - } - case 170: - { - com.google.container.v1.ResourceUsageExportConfig.Builder subBuilder = null; - if (desiredResourceUsageExportConfig_ != null) { - subBuilder = desiredResourceUsageExportConfig_.toBuilder(); - } - desiredResourceUsageExportConfig_ = - input.readMessage( - com.google.container.v1.ResourceUsageExportConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(desiredResourceUsageExportConfig_); - desiredResourceUsageExportConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 178: - { - com.google.container.v1.VerticalPodAutoscaling.Builder subBuilder = null; - if (desiredVerticalPodAutoscaling_ != null) { - subBuilder = desiredVerticalPodAutoscaling_.toBuilder(); - } - desiredVerticalPodAutoscaling_ = - input.readMessage( - com.google.container.v1.VerticalPodAutoscaling.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(desiredVerticalPodAutoscaling_); - desiredVerticalPodAutoscaling_ = subBuilder.buildPartial(); - } - - break; - } - case 202: - { - com.google.container.v1.PrivateClusterConfig.Builder subBuilder = null; - if (desiredPrivateClusterConfig_ != null) { - subBuilder = desiredPrivateClusterConfig_.toBuilder(); - } - desiredPrivateClusterConfig_ = - input.readMessage( - com.google.container.v1.PrivateClusterConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(desiredPrivateClusterConfig_); - desiredPrivateClusterConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 210: - { - com.google.container.v1.IntraNodeVisibilityConfig.Builder subBuilder = null; - if (desiredIntraNodeVisibilityConfig_ != null) { - subBuilder = desiredIntraNodeVisibilityConfig_.toBuilder(); - } - desiredIntraNodeVisibilityConfig_ = - input.readMessage( - com.google.container.v1.IntraNodeVisibilityConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(desiredIntraNodeVisibilityConfig_); - desiredIntraNodeVisibilityConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 226: - { - com.google.container.v1.DefaultSnatStatus.Builder subBuilder = null; - if (desiredDefaultSnatStatus_ != null) { - subBuilder = desiredDefaultSnatStatus_.toBuilder(); - } - desiredDefaultSnatStatus_ = - input.readMessage( - com.google.container.v1.DefaultSnatStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(desiredDefaultSnatStatus_); - desiredDefaultSnatStatus_ = subBuilder.buildPartial(); - } - - break; - } - case 250: - { - com.google.container.v1.ReleaseChannel.Builder subBuilder = null; - if (desiredReleaseChannel_ != null) { - subBuilder = desiredReleaseChannel_.toBuilder(); - } - desiredReleaseChannel_ = - input.readMessage( - com.google.container.v1.ReleaseChannel.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(desiredReleaseChannel_); - desiredReleaseChannel_ = subBuilder.buildPartial(); - } - - break; - } - case 370: - { - com.google.container.v1.DatabaseEncryption.Builder subBuilder = null; - if (desiredDatabaseEncryption_ != null) { - subBuilder = desiredDatabaseEncryption_.toBuilder(); - } - desiredDatabaseEncryption_ = - input.readMessage( - com.google.container.v1.DatabaseEncryption.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(desiredDatabaseEncryption_); - desiredDatabaseEncryption_ = subBuilder.buildPartial(); - } - - break; - } - case 378: - { - com.google.container.v1.WorkloadIdentityConfig.Builder subBuilder = null; - if (desiredWorkloadIdentityConfig_ != null) { - subBuilder = desiredWorkloadIdentityConfig_.toBuilder(); - } - desiredWorkloadIdentityConfig_ = - input.readMessage( - com.google.container.v1.WorkloadIdentityConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(desiredWorkloadIdentityConfig_); - desiredWorkloadIdentityConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 386: - { - com.google.container.v1.ShieldedNodes.Builder subBuilder = null; - if (desiredShieldedNodes_ != null) { - subBuilder = desiredShieldedNodes_.toBuilder(); - } - desiredShieldedNodes_ = - input.readMessage( - com.google.container.v1.ShieldedNodes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(desiredShieldedNodes_); - desiredShieldedNodes_ = subBuilder.buildPartial(); - } - - break; - } - case 802: - { - java.lang.String s = input.readStringRequireUtf8(); - - desiredMasterVersion_ = 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)) { - desiredLocations_ = desiredLocations_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClusterUpdate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClusterUpdate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ClusterUpdate.class, - com.google.container.v1.ClusterUpdate.Builder.class); - } - - public static final int DESIRED_NODE_VERSION_FIELD_NUMBER = 4; - private volatile java.lang.Object desiredNodeVersion_; - /** - * - * - *
-   * The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string desired_node_version = 4; - * - * @return The desiredNodeVersion. - */ - @java.lang.Override - public java.lang.String getDesiredNodeVersion() { - java.lang.Object ref = desiredNodeVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredNodeVersion_ = s; - return s; - } - } - /** - * - * - *
-   * The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string desired_node_version = 4; - * - * @return The bytes for desiredNodeVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDesiredNodeVersionBytes() { - java.lang.Object ref = desiredNodeVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - desiredNodeVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESIRED_MONITORING_SERVICE_FIELD_NUMBER = 5; - private volatile java.lang.Object desiredMonitoringService_; - /** - * - * - *
-   * The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string desired_monitoring_service = 5; - * - * @return The desiredMonitoringService. - */ - @java.lang.Override - public java.lang.String getDesiredMonitoringService() { - java.lang.Object ref = desiredMonitoringService_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredMonitoringService_ = s; - return s; - } - } - /** - * - * - *
-   * The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string desired_monitoring_service = 5; - * - * @return The bytes for desiredMonitoringService. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDesiredMonitoringServiceBytes() { - java.lang.Object ref = desiredMonitoringService_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - desiredMonitoringService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESIRED_ADDONS_CONFIG_FIELD_NUMBER = 6; - private com.google.container.v1.AddonsConfig desiredAddonsConfig_; - /** - * - * - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - * - * @return Whether the desiredAddonsConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredAddonsConfig() { - return desiredAddonsConfig_ != null; - } - /** - * - * - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - * - * @return The desiredAddonsConfig. - */ - @java.lang.Override - public com.google.container.v1.AddonsConfig getDesiredAddonsConfig() { - return desiredAddonsConfig_ == null - ? com.google.container.v1.AddonsConfig.getDefaultInstance() - : desiredAddonsConfig_; - } - /** - * - * - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - @java.lang.Override - public com.google.container.v1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder() { - return getDesiredAddonsConfig(); - } - - public static final int DESIRED_NODE_POOL_ID_FIELD_NUMBER = 7; - private volatile java.lang.Object desiredNodePoolId_; - /** - * - * - *
-   * The node pool to be upgraded. This field is mandatory if
-   * "desired_node_version", "desired_image_family" or
-   * "desired_node_pool_autoscaling" is specified and there is more than one
-   * node pool on the cluster.
-   * 
- * - * string desired_node_pool_id = 7; - * - * @return The desiredNodePoolId. - */ - @java.lang.Override - public java.lang.String getDesiredNodePoolId() { - java.lang.Object ref = desiredNodePoolId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredNodePoolId_ = s; - return s; - } - } - /** - * - * - *
-   * The node pool to be upgraded. This field is mandatory if
-   * "desired_node_version", "desired_image_family" or
-   * "desired_node_pool_autoscaling" is specified and there is more than one
-   * node pool on the cluster.
-   * 
- * - * string desired_node_pool_id = 7; - * - * @return The bytes for desiredNodePoolId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDesiredNodePoolIdBytes() { - java.lang.Object ref = desiredNodePoolId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - desiredNodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESIRED_IMAGE_TYPE_FIELD_NUMBER = 8; - private volatile java.lang.Object desiredImageType_; - /** - * - * - *
-   * The desired image type for the node pool.
-   * NOTE: Set the "desired_node_pool" field as well.
-   * 
- * - * string desired_image_type = 8; - * - * @return The desiredImageType. - */ - @java.lang.Override - public java.lang.String getDesiredImageType() { - java.lang.Object ref = desiredImageType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredImageType_ = s; - return s; - } - } - /** - * - * - *
-   * The desired image type for the node pool.
-   * NOTE: Set the "desired_node_pool" field as well.
-   * 
- * - * string desired_image_type = 8; - * - * @return The bytes for desiredImageType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDesiredImageTypeBytes() { - java.lang.Object ref = desiredImageType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - desiredImageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESIRED_DATABASE_ENCRYPTION_FIELD_NUMBER = 46; - private com.google.container.v1.DatabaseEncryption desiredDatabaseEncryption_; - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - * - * @return Whether the desiredDatabaseEncryption field is set. - */ - @java.lang.Override - public boolean hasDesiredDatabaseEncryption() { - return desiredDatabaseEncryption_ != null; - } - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - * - * @return The desiredDatabaseEncryption. - */ - @java.lang.Override - public com.google.container.v1.DatabaseEncryption getDesiredDatabaseEncryption() { - return desiredDatabaseEncryption_ == null - ? com.google.container.v1.DatabaseEncryption.getDefaultInstance() - : desiredDatabaseEncryption_; - } - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - @java.lang.Override - public com.google.container.v1.DatabaseEncryptionOrBuilder - getDesiredDatabaseEncryptionOrBuilder() { - return getDesiredDatabaseEncryption(); - } - - public static final int DESIRED_WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER = 47; - private com.google.container.v1.WorkloadIdentityConfig desiredWorkloadIdentityConfig_; - /** - * - * - *
-   * Configuration for Workload Identity.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - * @return Whether the desiredWorkloadIdentityConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredWorkloadIdentityConfig() { - return desiredWorkloadIdentityConfig_ != null; - } - /** - * - * - *
-   * Configuration for Workload Identity.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - * @return The desiredWorkloadIdentityConfig. - */ - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig() { - return desiredWorkloadIdentityConfig_ == null - ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() - : desiredWorkloadIdentityConfig_; - } - /** - * - * - *
-   * Configuration for Workload Identity.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfigOrBuilder - getDesiredWorkloadIdentityConfigOrBuilder() { - return getDesiredWorkloadIdentityConfig(); - } - - public static final int DESIRED_SHIELDED_NODES_FIELD_NUMBER = 48; - private com.google.container.v1.ShieldedNodes desiredShieldedNodes_; - /** - * - * - *
-   * Configuration for Shielded Nodes.
-   * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * - * @return Whether the desiredShieldedNodes field is set. - */ - @java.lang.Override - public boolean hasDesiredShieldedNodes() { - return desiredShieldedNodes_ != null; - } - /** - * - * - *
-   * Configuration for Shielded Nodes.
-   * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * - * @return The desiredShieldedNodes. - */ - @java.lang.Override - public com.google.container.v1.ShieldedNodes getDesiredShieldedNodes() { - return desiredShieldedNodes_ == null - ? com.google.container.v1.ShieldedNodes.getDefaultInstance() - : desiredShieldedNodes_; - } - /** - * - * - *
-   * Configuration for Shielded Nodes.
-   * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - @java.lang.Override - public com.google.container.v1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder() { - return getDesiredShieldedNodes(); - } - - public static final int DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER = 9; - private com.google.container.v1.NodePoolAutoscaling desiredNodePoolAutoscaling_; - /** - * - * - *
-   * Autoscaler configuration for the node pool specified in
-   * desired_node_pool_id. If there is only one pool in the
-   * cluster and desired_node_pool_id is not provided then
-   * the change applies to that single node pool.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * - * @return Whether the desiredNodePoolAutoscaling field is set. - */ - @java.lang.Override - public boolean hasDesiredNodePoolAutoscaling() { - return desiredNodePoolAutoscaling_ != null; - } - /** - * - * - *
-   * Autoscaler configuration for the node pool specified in
-   * desired_node_pool_id. If there is only one pool in the
-   * cluster and desired_node_pool_id is not provided then
-   * the change applies to that single node pool.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * - * @return The desiredNodePoolAutoscaling. - */ - @java.lang.Override - public com.google.container.v1.NodePoolAutoscaling getDesiredNodePoolAutoscaling() { - return desiredNodePoolAutoscaling_ == null - ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() - : desiredNodePoolAutoscaling_; - } - /** - * - * - *
-   * Autoscaler configuration for the node pool specified in
-   * desired_node_pool_id. If there is only one pool in the
-   * cluster and desired_node_pool_id is not provided then
-   * the change applies to that single node pool.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - @java.lang.Override - public com.google.container.v1.NodePoolAutoscalingOrBuilder - getDesiredNodePoolAutoscalingOrBuilder() { - return getDesiredNodePoolAutoscaling(); - } - - public static final int DESIRED_LOCATIONS_FIELD_NUMBER = 10; - private com.google.protobuf.LazyStringList desiredLocations_; - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This list must always include the cluster's primary zone.
-   * Warning: changing cluster locations will update the locations of all node
-   * pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string desired_locations = 10; - * - * @return A list containing the desiredLocations. - */ - public com.google.protobuf.ProtocolStringList getDesiredLocationsList() { - return desiredLocations_; - } - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This list must always include the cluster's primary zone.
-   * Warning: changing cluster locations will update the locations of all node
-   * pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string desired_locations = 10; - * - * @return The count of desiredLocations. - */ - public int getDesiredLocationsCount() { - return desiredLocations_.size(); - } - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This list must always include the cluster's primary zone.
-   * Warning: changing cluster locations will update the locations of all node
-   * pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string desired_locations = 10; - * - * @param index The index of the element to return. - * @return The desiredLocations at the given index. - */ - public java.lang.String getDesiredLocations(int index) { - return desiredLocations_.get(index); - } - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This list must always include the cluster's primary zone.
-   * Warning: changing cluster locations will update the locations of all node
-   * pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string desired_locations = 10; - * - * @param index The index of the value to return. - * @return The bytes of the desiredLocations at the given index. - */ - public com.google.protobuf.ByteString getDesiredLocationsBytes(int index) { - return desiredLocations_.getByteString(index); - } - - public static final int DESIRED_MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER = 12; - private com.google.container.v1.MasterAuthorizedNetworksConfig - desiredMasterAuthorizedNetworksConfig_; - /** - * - * - *
-   * The desired configuration options for master authorized networks feature.
-   * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - * - * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredMasterAuthorizedNetworksConfig() { - return desiredMasterAuthorizedNetworksConfig_ != null; - } - /** - * - * - *
-   * The desired configuration options for master authorized networks feature.
-   * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - * - * @return The desiredMasterAuthorizedNetworksConfig. - */ - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig - getDesiredMasterAuthorizedNetworksConfig() { - return desiredMasterAuthorizedNetworksConfig_ == null - ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() - : desiredMasterAuthorizedNetworksConfig_; - } - /** - * - * - *
-   * The desired configuration options for master authorized networks feature.
-   * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - */ - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder - getDesiredMasterAuthorizedNetworksConfigOrBuilder() { - return getDesiredMasterAuthorizedNetworksConfig(); - } - - public static final int DESIRED_CLUSTER_AUTOSCALING_FIELD_NUMBER = 15; - private com.google.container.v1.ClusterAutoscaling desiredClusterAutoscaling_; - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * - * @return Whether the desiredClusterAutoscaling field is set. - */ - @java.lang.Override - public boolean hasDesiredClusterAutoscaling() { - return desiredClusterAutoscaling_ != null; - } - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * - * @return The desiredClusterAutoscaling. - */ - @java.lang.Override - public com.google.container.v1.ClusterAutoscaling getDesiredClusterAutoscaling() { - return desiredClusterAutoscaling_ == null - ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() - : desiredClusterAutoscaling_; - } - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - @java.lang.Override - public com.google.container.v1.ClusterAutoscalingOrBuilder - getDesiredClusterAutoscalingOrBuilder() { - return getDesiredClusterAutoscaling(); - } - - public static final int DESIRED_BINARY_AUTHORIZATION_FIELD_NUMBER = 16; - private com.google.container.v1.BinaryAuthorization desiredBinaryAuthorization_; - /** - * - * - *
-   * The desired configuration options for the Binary Authorization feature.
-   * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - * - * @return Whether the desiredBinaryAuthorization field is set. - */ - @java.lang.Override - public boolean hasDesiredBinaryAuthorization() { - return desiredBinaryAuthorization_ != null; - } - /** - * - * - *
-   * The desired configuration options for the Binary Authorization feature.
-   * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - * - * @return The desiredBinaryAuthorization. - */ - @java.lang.Override - public com.google.container.v1.BinaryAuthorization getDesiredBinaryAuthorization() { - return desiredBinaryAuthorization_ == null - ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() - : desiredBinaryAuthorization_; - } - /** - * - * - *
-   * The desired configuration options for the Binary Authorization feature.
-   * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - @java.lang.Override - public com.google.container.v1.BinaryAuthorizationOrBuilder - getDesiredBinaryAuthorizationOrBuilder() { - return getDesiredBinaryAuthorization(); - } - - public static final int DESIRED_LOGGING_SERVICE_FIELD_NUMBER = 19; - private volatile java.lang.Object desiredLoggingService_; - /** - * - * - *
-   * The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string desired_logging_service = 19; - * - * @return The desiredLoggingService. - */ - @java.lang.Override - public java.lang.String getDesiredLoggingService() { - java.lang.Object ref = desiredLoggingService_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredLoggingService_ = s; - return s; - } - } - /** - * - * - *
-   * The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string desired_logging_service = 19; - * - * @return The bytes for desiredLoggingService. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDesiredLoggingServiceBytes() { - java.lang.Object ref = desiredLoggingService_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - desiredLoggingService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESIRED_RESOURCE_USAGE_EXPORT_CONFIG_FIELD_NUMBER = 21; - private com.google.container.v1.ResourceUsageExportConfig desiredResourceUsageExportConfig_; - /** - * - * - *
-   * The desired configuration for exporting resource usage.
-   * 
- * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - * - * @return Whether the desiredResourceUsageExportConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredResourceUsageExportConfig() { - return desiredResourceUsageExportConfig_ != null; - } - /** - * - * - *
-   * The desired configuration for exporting resource usage.
-   * 
- * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - * - * @return The desiredResourceUsageExportConfig. - */ - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig getDesiredResourceUsageExportConfig() { - return desiredResourceUsageExportConfig_ == null - ? com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() - : desiredResourceUsageExportConfig_; - } - /** - * - * - *
-   * The desired configuration for exporting resource usage.
-   * 
- * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - */ - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfigOrBuilder - getDesiredResourceUsageExportConfigOrBuilder() { - return getDesiredResourceUsageExportConfig(); - } - - public static final int DESIRED_VERTICAL_POD_AUTOSCALING_FIELD_NUMBER = 22; - private com.google.container.v1.VerticalPodAutoscaling desiredVerticalPodAutoscaling_; - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - * @return Whether the desiredVerticalPodAutoscaling field is set. - */ - @java.lang.Override - public boolean hasDesiredVerticalPodAutoscaling() { - return desiredVerticalPodAutoscaling_ != null; - } - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - * @return The desiredVerticalPodAutoscaling. - */ - @java.lang.Override - public com.google.container.v1.VerticalPodAutoscaling getDesiredVerticalPodAutoscaling() { - return desiredVerticalPodAutoscaling_ == null - ? com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() - : desiredVerticalPodAutoscaling_; - } - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - */ - @java.lang.Override - public com.google.container.v1.VerticalPodAutoscalingOrBuilder - getDesiredVerticalPodAutoscalingOrBuilder() { - return getDesiredVerticalPodAutoscaling(); - } - - public static final int DESIRED_PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 25; - private com.google.container.v1.PrivateClusterConfig desiredPrivateClusterConfig_; - /** - * - * - *
-   * The desired private cluster configuration.
-   * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - * - * @return Whether the desiredPrivateClusterConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredPrivateClusterConfig() { - return desiredPrivateClusterConfig_ != null; - } - /** - * - * - *
-   * The desired private cluster configuration.
-   * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - * - * @return The desiredPrivateClusterConfig. - */ - @java.lang.Override - public com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConfig() { - return desiredPrivateClusterConfig_ == null - ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() - : desiredPrivateClusterConfig_; - } - /** - * - * - *
-   * The desired private cluster configuration.
-   * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - @java.lang.Override - public com.google.container.v1.PrivateClusterConfigOrBuilder - getDesiredPrivateClusterConfigOrBuilder() { - return getDesiredPrivateClusterConfig(); - } - - public static final int DESIRED_INTRA_NODE_VISIBILITY_CONFIG_FIELD_NUMBER = 26; - private com.google.container.v1.IntraNodeVisibilityConfig desiredIntraNodeVisibilityConfig_; - /** - * - * - *
-   * The desired config of Intra-node visibility.
-   * 
- * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - * - * @return Whether the desiredIntraNodeVisibilityConfig field is set. - */ - @java.lang.Override - public boolean hasDesiredIntraNodeVisibilityConfig() { - return desiredIntraNodeVisibilityConfig_ != null; - } - /** - * - * - *
-   * The desired config of Intra-node visibility.
-   * 
- * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - * - * @return The desiredIntraNodeVisibilityConfig. - */ - @java.lang.Override - public com.google.container.v1.IntraNodeVisibilityConfig getDesiredIntraNodeVisibilityConfig() { - return desiredIntraNodeVisibilityConfig_ == null - ? com.google.container.v1.IntraNodeVisibilityConfig.getDefaultInstance() - : desiredIntraNodeVisibilityConfig_; - } - /** - * - * - *
-   * The desired config of Intra-node visibility.
-   * 
- * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - */ - @java.lang.Override - public com.google.container.v1.IntraNodeVisibilityConfigOrBuilder - getDesiredIntraNodeVisibilityConfigOrBuilder() { - return getDesiredIntraNodeVisibilityConfig(); - } - - public static final int DESIRED_DEFAULT_SNAT_STATUS_FIELD_NUMBER = 28; - private com.google.container.v1.DefaultSnatStatus desiredDefaultSnatStatus_; - /** - * - * - *
-   * The desired status of whether to disable default sNAT for this cluster.
-   * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - * - * @return Whether the desiredDefaultSnatStatus field is set. - */ - @java.lang.Override - public boolean hasDesiredDefaultSnatStatus() { - return desiredDefaultSnatStatus_ != null; - } - /** - * - * - *
-   * The desired status of whether to disable default sNAT for this cluster.
-   * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - * - * @return The desiredDefaultSnatStatus. - */ - @java.lang.Override - public com.google.container.v1.DefaultSnatStatus getDesiredDefaultSnatStatus() { - return desiredDefaultSnatStatus_ == null - ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() - : desiredDefaultSnatStatus_; - } - /** - * - * - *
-   * The desired status of whether to disable default sNAT for this cluster.
-   * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - @java.lang.Override - public com.google.container.v1.DefaultSnatStatusOrBuilder getDesiredDefaultSnatStatusOrBuilder() { - return getDesiredDefaultSnatStatus(); - } - - public static final int DESIRED_RELEASE_CHANNEL_FIELD_NUMBER = 31; - private com.google.container.v1.ReleaseChannel desiredReleaseChannel_; - /** - * - * - *
-   * The desired release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - * - * @return Whether the desiredReleaseChannel field is set. - */ - @java.lang.Override - public boolean hasDesiredReleaseChannel() { - return desiredReleaseChannel_ != null; - } - /** - * - * - *
-   * The desired release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - * - * @return The desiredReleaseChannel. - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannel getDesiredReleaseChannel() { - return desiredReleaseChannel_ == null - ? com.google.container.v1.ReleaseChannel.getDefaultInstance() - : desiredReleaseChannel_; - } - /** - * - * - *
-   * The desired release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder() { - return getDesiredReleaseChannel(); - } - - public static final int DESIRED_MASTER_VERSION_FIELD_NUMBER = 100; - private volatile java.lang.Object desiredMasterVersion_; - /** - * - * - *
-   * The Kubernetes version to change the master to.
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the default Kubernetes version
-   * 
- * - * string desired_master_version = 100; - * - * @return The desiredMasterVersion. - */ - @java.lang.Override - public java.lang.String getDesiredMasterVersion() { - java.lang.Object ref = desiredMasterVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredMasterVersion_ = s; - return s; - } - } - /** - * - * - *
-   * The Kubernetes version to change the master to.
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the default Kubernetes version
-   * 
- * - * string desired_master_version = 100; - * - * @return The bytes for desiredMasterVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDesiredMasterVersionBytes() { - java.lang.Object ref = desiredMasterVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - desiredMasterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDesiredNodeVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, desiredNodeVersion_); - } - if (!getDesiredMonitoringServiceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, desiredMonitoringService_); - } - if (desiredAddonsConfig_ != null) { - output.writeMessage(6, getDesiredAddonsConfig()); - } - if (!getDesiredNodePoolIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, desiredNodePoolId_); - } - if (!getDesiredImageTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, desiredImageType_); - } - if (desiredNodePoolAutoscaling_ != null) { - output.writeMessage(9, getDesiredNodePoolAutoscaling()); - } - for (int i = 0; i < desiredLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, desiredLocations_.getRaw(i)); - } - if (desiredMasterAuthorizedNetworksConfig_ != null) { - output.writeMessage(12, getDesiredMasterAuthorizedNetworksConfig()); - } - if (desiredClusterAutoscaling_ != null) { - output.writeMessage(15, getDesiredClusterAutoscaling()); - } - if (desiredBinaryAuthorization_ != null) { - output.writeMessage(16, getDesiredBinaryAuthorization()); - } - if (!getDesiredLoggingServiceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 19, desiredLoggingService_); - } - if (desiredResourceUsageExportConfig_ != null) { - output.writeMessage(21, getDesiredResourceUsageExportConfig()); - } - if (desiredVerticalPodAutoscaling_ != null) { - output.writeMessage(22, getDesiredVerticalPodAutoscaling()); - } - if (desiredPrivateClusterConfig_ != null) { - output.writeMessage(25, getDesiredPrivateClusterConfig()); - } - if (desiredIntraNodeVisibilityConfig_ != null) { - output.writeMessage(26, getDesiredIntraNodeVisibilityConfig()); - } - if (desiredDefaultSnatStatus_ != null) { - output.writeMessage(28, getDesiredDefaultSnatStatus()); - } - if (desiredReleaseChannel_ != null) { - output.writeMessage(31, getDesiredReleaseChannel()); - } - if (desiredDatabaseEncryption_ != null) { - output.writeMessage(46, getDesiredDatabaseEncryption()); - } - if (desiredWorkloadIdentityConfig_ != null) { - output.writeMessage(47, getDesiredWorkloadIdentityConfig()); - } - if (desiredShieldedNodes_ != null) { - output.writeMessage(48, getDesiredShieldedNodes()); - } - if (!getDesiredMasterVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 100, desiredMasterVersion_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDesiredNodeVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, desiredNodeVersion_); - } - if (!getDesiredMonitoringServiceBytes().isEmpty()) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(5, desiredMonitoringService_); - } - if (desiredAddonsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDesiredAddonsConfig()); - } - if (!getDesiredNodePoolIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, desiredNodePoolId_); - } - if (!getDesiredImageTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, desiredImageType_); - } - if (desiredNodePoolAutoscaling_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, getDesiredNodePoolAutoscaling()); - } - { - int dataSize = 0; - for (int i = 0; i < desiredLocations_.size(); i++) { - dataSize += computeStringSizeNoTag(desiredLocations_.getRaw(i)); - } - size += dataSize; - size += 1 * getDesiredLocationsList().size(); - } - if (desiredMasterAuthorizedNetworksConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, getDesiredMasterAuthorizedNetworksConfig()); - } - if (desiredClusterAutoscaling_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 15, getDesiredClusterAutoscaling()); - } - if (desiredBinaryAuthorization_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 16, getDesiredBinaryAuthorization()); - } - if (!getDesiredLoggingServiceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, desiredLoggingService_); - } - if (desiredResourceUsageExportConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 21, getDesiredResourceUsageExportConfig()); - } - if (desiredVerticalPodAutoscaling_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 22, getDesiredVerticalPodAutoscaling()); - } - if (desiredPrivateClusterConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 25, getDesiredPrivateClusterConfig()); - } - if (desiredIntraNodeVisibilityConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 26, getDesiredIntraNodeVisibilityConfig()); - } - if (desiredDefaultSnatStatus_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 28, getDesiredDefaultSnatStatus()); - } - if (desiredReleaseChannel_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(31, getDesiredReleaseChannel()); - } - if (desiredDatabaseEncryption_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 46, getDesiredDatabaseEncryption()); - } - if (desiredWorkloadIdentityConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 47, getDesiredWorkloadIdentityConfig()); - } - if (desiredShieldedNodes_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(48, getDesiredShieldedNodes()); - } - if (!getDesiredMasterVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, desiredMasterVersion_); - } - 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.container.v1.ClusterUpdate)) { - return super.equals(obj); - } - com.google.container.v1.ClusterUpdate other = (com.google.container.v1.ClusterUpdate) obj; - - if (!getDesiredNodeVersion().equals(other.getDesiredNodeVersion())) return false; - if (!getDesiredMonitoringService().equals(other.getDesiredMonitoringService())) return false; - if (hasDesiredAddonsConfig() != other.hasDesiredAddonsConfig()) return false; - if (hasDesiredAddonsConfig()) { - if (!getDesiredAddonsConfig().equals(other.getDesiredAddonsConfig())) return false; - } - if (!getDesiredNodePoolId().equals(other.getDesiredNodePoolId())) return false; - if (!getDesiredImageType().equals(other.getDesiredImageType())) return false; - if (hasDesiredDatabaseEncryption() != other.hasDesiredDatabaseEncryption()) return false; - if (hasDesiredDatabaseEncryption()) { - if (!getDesiredDatabaseEncryption().equals(other.getDesiredDatabaseEncryption())) - return false; - } - if (hasDesiredWorkloadIdentityConfig() != other.hasDesiredWorkloadIdentityConfig()) - return false; - if (hasDesiredWorkloadIdentityConfig()) { - if (!getDesiredWorkloadIdentityConfig().equals(other.getDesiredWorkloadIdentityConfig())) - return false; - } - if (hasDesiredShieldedNodes() != other.hasDesiredShieldedNodes()) return false; - if (hasDesiredShieldedNodes()) { - if (!getDesiredShieldedNodes().equals(other.getDesiredShieldedNodes())) return false; - } - if (hasDesiredNodePoolAutoscaling() != other.hasDesiredNodePoolAutoscaling()) return false; - if (hasDesiredNodePoolAutoscaling()) { - if (!getDesiredNodePoolAutoscaling().equals(other.getDesiredNodePoolAutoscaling())) - return false; - } - if (!getDesiredLocationsList().equals(other.getDesiredLocationsList())) return false; - if (hasDesiredMasterAuthorizedNetworksConfig() - != other.hasDesiredMasterAuthorizedNetworksConfig()) return false; - if (hasDesiredMasterAuthorizedNetworksConfig()) { - if (!getDesiredMasterAuthorizedNetworksConfig() - .equals(other.getDesiredMasterAuthorizedNetworksConfig())) return false; - } - if (hasDesiredClusterAutoscaling() != other.hasDesiredClusterAutoscaling()) return false; - if (hasDesiredClusterAutoscaling()) { - if (!getDesiredClusterAutoscaling().equals(other.getDesiredClusterAutoscaling())) - return false; - } - if (hasDesiredBinaryAuthorization() != other.hasDesiredBinaryAuthorization()) return false; - if (hasDesiredBinaryAuthorization()) { - if (!getDesiredBinaryAuthorization().equals(other.getDesiredBinaryAuthorization())) - return false; - } - if (!getDesiredLoggingService().equals(other.getDesiredLoggingService())) return false; - if (hasDesiredResourceUsageExportConfig() != other.hasDesiredResourceUsageExportConfig()) - return false; - if (hasDesiredResourceUsageExportConfig()) { - if (!getDesiredResourceUsageExportConfig() - .equals(other.getDesiredResourceUsageExportConfig())) return false; - } - if (hasDesiredVerticalPodAutoscaling() != other.hasDesiredVerticalPodAutoscaling()) - return false; - if (hasDesiredVerticalPodAutoscaling()) { - if (!getDesiredVerticalPodAutoscaling().equals(other.getDesiredVerticalPodAutoscaling())) - return false; - } - if (hasDesiredPrivateClusterConfig() != other.hasDesiredPrivateClusterConfig()) return false; - if (hasDesiredPrivateClusterConfig()) { - if (!getDesiredPrivateClusterConfig().equals(other.getDesiredPrivateClusterConfig())) - return false; - } - if (hasDesiredIntraNodeVisibilityConfig() != other.hasDesiredIntraNodeVisibilityConfig()) - return false; - if (hasDesiredIntraNodeVisibilityConfig()) { - if (!getDesiredIntraNodeVisibilityConfig() - .equals(other.getDesiredIntraNodeVisibilityConfig())) return false; - } - if (hasDesiredDefaultSnatStatus() != other.hasDesiredDefaultSnatStatus()) return false; - if (hasDesiredDefaultSnatStatus()) { - if (!getDesiredDefaultSnatStatus().equals(other.getDesiredDefaultSnatStatus())) return false; - } - if (hasDesiredReleaseChannel() != other.hasDesiredReleaseChannel()) return false; - if (hasDesiredReleaseChannel()) { - if (!getDesiredReleaseChannel().equals(other.getDesiredReleaseChannel())) return false; - } - if (!getDesiredMasterVersion().equals(other.getDesiredMasterVersion())) 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) + DESIRED_NODE_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getDesiredNodeVersion().hashCode(); - hash = (37 * hash) + DESIRED_MONITORING_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getDesiredMonitoringService().hashCode(); - if (hasDesiredAddonsConfig()) { - hash = (37 * hash) + DESIRED_ADDONS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredAddonsConfig().hashCode(); - } - hash = (37 * hash) + DESIRED_NODE_POOL_ID_FIELD_NUMBER; - hash = (53 * hash) + getDesiredNodePoolId().hashCode(); - hash = (37 * hash) + DESIRED_IMAGE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getDesiredImageType().hashCode(); - if (hasDesiredDatabaseEncryption()) { - hash = (37 * hash) + DESIRED_DATABASE_ENCRYPTION_FIELD_NUMBER; - hash = (53 * hash) + getDesiredDatabaseEncryption().hashCode(); - } - if (hasDesiredWorkloadIdentityConfig()) { - hash = (37 * hash) + DESIRED_WORKLOAD_IDENTITY_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredWorkloadIdentityConfig().hashCode(); - } - if (hasDesiredShieldedNodes()) { - hash = (37 * hash) + DESIRED_SHIELDED_NODES_FIELD_NUMBER; - hash = (53 * hash) + getDesiredShieldedNodes().hashCode(); - } - if (hasDesiredNodePoolAutoscaling()) { - hash = (37 * hash) + DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER; - hash = (53 * hash) + getDesiredNodePoolAutoscaling().hashCode(); - } - if (getDesiredLocationsCount() > 0) { - hash = (37 * hash) + DESIRED_LOCATIONS_FIELD_NUMBER; - hash = (53 * hash) + getDesiredLocationsList().hashCode(); - } - if (hasDesiredMasterAuthorizedNetworksConfig()) { - hash = (37 * hash) + DESIRED_MASTER_AUTHORIZED_NETWORKS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredMasterAuthorizedNetworksConfig().hashCode(); - } - if (hasDesiredClusterAutoscaling()) { - hash = (37 * hash) + DESIRED_CLUSTER_AUTOSCALING_FIELD_NUMBER; - hash = (53 * hash) + getDesiredClusterAutoscaling().hashCode(); - } - if (hasDesiredBinaryAuthorization()) { - hash = (37 * hash) + DESIRED_BINARY_AUTHORIZATION_FIELD_NUMBER; - hash = (53 * hash) + getDesiredBinaryAuthorization().hashCode(); - } - hash = (37 * hash) + DESIRED_LOGGING_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getDesiredLoggingService().hashCode(); - if (hasDesiredResourceUsageExportConfig()) { - hash = (37 * hash) + DESIRED_RESOURCE_USAGE_EXPORT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredResourceUsageExportConfig().hashCode(); - } - if (hasDesiredVerticalPodAutoscaling()) { - hash = (37 * hash) + DESIRED_VERTICAL_POD_AUTOSCALING_FIELD_NUMBER; - hash = (53 * hash) + getDesiredVerticalPodAutoscaling().hashCode(); - } - if (hasDesiredPrivateClusterConfig()) { - hash = (37 * hash) + DESIRED_PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredPrivateClusterConfig().hashCode(); - } - if (hasDesiredIntraNodeVisibilityConfig()) { - hash = (37 * hash) + DESIRED_INTRA_NODE_VISIBILITY_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDesiredIntraNodeVisibilityConfig().hashCode(); - } - if (hasDesiredDefaultSnatStatus()) { - hash = (37 * hash) + DESIRED_DEFAULT_SNAT_STATUS_FIELD_NUMBER; - hash = (53 * hash) + getDesiredDefaultSnatStatus().hashCode(); - } - if (hasDesiredReleaseChannel()) { - hash = (37 * hash) + DESIRED_RELEASE_CHANNEL_FIELD_NUMBER; - hash = (53 * hash) + getDesiredReleaseChannel().hashCode(); - } - hash = (37 * hash) + DESIRED_MASTER_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getDesiredMasterVersion().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ClusterUpdate parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ClusterUpdate parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ClusterUpdate parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ClusterUpdate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ClusterUpdate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ClusterUpdate parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ClusterUpdate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ClusterUpdate parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ClusterUpdate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ClusterUpdate parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ClusterUpdate parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ClusterUpdate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ClusterUpdate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * ClusterUpdate describes an update to the cluster. Exactly one update can
-   * be applied to a cluster with each request, so at most one field can be
-   * provided.
-   * 
- * - * Protobuf type {@code google.container.v1.ClusterUpdate} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ClusterUpdate) - com.google.container.v1.ClusterUpdateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClusterUpdate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClusterUpdate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ClusterUpdate.class, - com.google.container.v1.ClusterUpdate.Builder.class); - } - - // Construct using com.google.container.v1.ClusterUpdate.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(); - desiredNodeVersion_ = ""; - - desiredMonitoringService_ = ""; - - if (desiredAddonsConfigBuilder_ == null) { - desiredAddonsConfig_ = null; - } else { - desiredAddonsConfig_ = null; - desiredAddonsConfigBuilder_ = null; - } - desiredNodePoolId_ = ""; - - desiredImageType_ = ""; - - if (desiredDatabaseEncryptionBuilder_ == null) { - desiredDatabaseEncryption_ = null; - } else { - desiredDatabaseEncryption_ = null; - desiredDatabaseEncryptionBuilder_ = null; - } - if (desiredWorkloadIdentityConfigBuilder_ == null) { - desiredWorkloadIdentityConfig_ = null; - } else { - desiredWorkloadIdentityConfig_ = null; - desiredWorkloadIdentityConfigBuilder_ = null; - } - if (desiredShieldedNodesBuilder_ == null) { - desiredShieldedNodes_ = null; - } else { - desiredShieldedNodes_ = null; - desiredShieldedNodesBuilder_ = null; - } - if (desiredNodePoolAutoscalingBuilder_ == null) { - desiredNodePoolAutoscaling_ = null; - } else { - desiredNodePoolAutoscaling_ = null; - desiredNodePoolAutoscalingBuilder_ = null; - } - desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - desiredMasterAuthorizedNetworksConfig_ = null; - } else { - desiredMasterAuthorizedNetworksConfig_ = null; - desiredMasterAuthorizedNetworksConfigBuilder_ = null; - } - if (desiredClusterAutoscalingBuilder_ == null) { - desiredClusterAutoscaling_ = null; - } else { - desiredClusterAutoscaling_ = null; - desiredClusterAutoscalingBuilder_ = null; - } - if (desiredBinaryAuthorizationBuilder_ == null) { - desiredBinaryAuthorization_ = null; - } else { - desiredBinaryAuthorization_ = null; - desiredBinaryAuthorizationBuilder_ = null; - } - desiredLoggingService_ = ""; - - if (desiredResourceUsageExportConfigBuilder_ == null) { - desiredResourceUsageExportConfig_ = null; - } else { - desiredResourceUsageExportConfig_ = null; - desiredResourceUsageExportConfigBuilder_ = null; - } - if (desiredVerticalPodAutoscalingBuilder_ == null) { - desiredVerticalPodAutoscaling_ = null; - } else { - desiredVerticalPodAutoscaling_ = null; - desiredVerticalPodAutoscalingBuilder_ = null; - } - if (desiredPrivateClusterConfigBuilder_ == null) { - desiredPrivateClusterConfig_ = null; - } else { - desiredPrivateClusterConfig_ = null; - desiredPrivateClusterConfigBuilder_ = null; - } - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - desiredIntraNodeVisibilityConfig_ = null; - } else { - desiredIntraNodeVisibilityConfig_ = null; - desiredIntraNodeVisibilityConfigBuilder_ = null; - } - if (desiredDefaultSnatStatusBuilder_ == null) { - desiredDefaultSnatStatus_ = null; - } else { - desiredDefaultSnatStatus_ = null; - desiredDefaultSnatStatusBuilder_ = null; - } - if (desiredReleaseChannelBuilder_ == null) { - desiredReleaseChannel_ = null; - } else { - desiredReleaseChannel_ = null; - desiredReleaseChannelBuilder_ = null; - } - desiredMasterVersion_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ClusterUpdate_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ClusterUpdate getDefaultInstanceForType() { - return com.google.container.v1.ClusterUpdate.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ClusterUpdate build() { - com.google.container.v1.ClusterUpdate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ClusterUpdate buildPartial() { - com.google.container.v1.ClusterUpdate result = - new com.google.container.v1.ClusterUpdate(this); - int from_bitField0_ = bitField0_; - result.desiredNodeVersion_ = desiredNodeVersion_; - result.desiredMonitoringService_ = desiredMonitoringService_; - if (desiredAddonsConfigBuilder_ == null) { - result.desiredAddonsConfig_ = desiredAddonsConfig_; - } else { - result.desiredAddonsConfig_ = desiredAddonsConfigBuilder_.build(); - } - result.desiredNodePoolId_ = desiredNodePoolId_; - result.desiredImageType_ = desiredImageType_; - if (desiredDatabaseEncryptionBuilder_ == null) { - result.desiredDatabaseEncryption_ = desiredDatabaseEncryption_; - } else { - result.desiredDatabaseEncryption_ = desiredDatabaseEncryptionBuilder_.build(); - } - if (desiredWorkloadIdentityConfigBuilder_ == null) { - result.desiredWorkloadIdentityConfig_ = desiredWorkloadIdentityConfig_; - } else { - result.desiredWorkloadIdentityConfig_ = desiredWorkloadIdentityConfigBuilder_.build(); - } - if (desiredShieldedNodesBuilder_ == null) { - result.desiredShieldedNodes_ = desiredShieldedNodes_; - } else { - result.desiredShieldedNodes_ = desiredShieldedNodesBuilder_.build(); - } - if (desiredNodePoolAutoscalingBuilder_ == null) { - result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscaling_; - } else { - result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscalingBuilder_.build(); - } - if (((bitField0_ & 0x00000001) != 0)) { - desiredLocations_ = desiredLocations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.desiredLocations_ = desiredLocations_; - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - result.desiredMasterAuthorizedNetworksConfig_ = desiredMasterAuthorizedNetworksConfig_; - } else { - result.desiredMasterAuthorizedNetworksConfig_ = - desiredMasterAuthorizedNetworksConfigBuilder_.build(); - } - if (desiredClusterAutoscalingBuilder_ == null) { - result.desiredClusterAutoscaling_ = desiredClusterAutoscaling_; - } else { - result.desiredClusterAutoscaling_ = desiredClusterAutoscalingBuilder_.build(); - } - if (desiredBinaryAuthorizationBuilder_ == null) { - result.desiredBinaryAuthorization_ = desiredBinaryAuthorization_; - } else { - result.desiredBinaryAuthorization_ = desiredBinaryAuthorizationBuilder_.build(); - } - result.desiredLoggingService_ = desiredLoggingService_; - if (desiredResourceUsageExportConfigBuilder_ == null) { - result.desiredResourceUsageExportConfig_ = desiredResourceUsageExportConfig_; - } else { - result.desiredResourceUsageExportConfig_ = desiredResourceUsageExportConfigBuilder_.build(); - } - if (desiredVerticalPodAutoscalingBuilder_ == null) { - result.desiredVerticalPodAutoscaling_ = desiredVerticalPodAutoscaling_; - } else { - result.desiredVerticalPodAutoscaling_ = desiredVerticalPodAutoscalingBuilder_.build(); - } - if (desiredPrivateClusterConfigBuilder_ == null) { - result.desiredPrivateClusterConfig_ = desiredPrivateClusterConfig_; - } else { - result.desiredPrivateClusterConfig_ = desiredPrivateClusterConfigBuilder_.build(); - } - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - result.desiredIntraNodeVisibilityConfig_ = desiredIntraNodeVisibilityConfig_; - } else { - result.desiredIntraNodeVisibilityConfig_ = desiredIntraNodeVisibilityConfigBuilder_.build(); - } - if (desiredDefaultSnatStatusBuilder_ == null) { - result.desiredDefaultSnatStatus_ = desiredDefaultSnatStatus_; - } else { - result.desiredDefaultSnatStatus_ = desiredDefaultSnatStatusBuilder_.build(); - } - if (desiredReleaseChannelBuilder_ == null) { - result.desiredReleaseChannel_ = desiredReleaseChannel_; - } else { - result.desiredReleaseChannel_ = desiredReleaseChannelBuilder_.build(); - } - result.desiredMasterVersion_ = desiredMasterVersion_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ClusterUpdate) { - return mergeFrom((com.google.container.v1.ClusterUpdate) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ClusterUpdate other) { - if (other == com.google.container.v1.ClusterUpdate.getDefaultInstance()) return this; - if (!other.getDesiredNodeVersion().isEmpty()) { - desiredNodeVersion_ = other.desiredNodeVersion_; - onChanged(); - } - if (!other.getDesiredMonitoringService().isEmpty()) { - desiredMonitoringService_ = other.desiredMonitoringService_; - onChanged(); - } - if (other.hasDesiredAddonsConfig()) { - mergeDesiredAddonsConfig(other.getDesiredAddonsConfig()); - } - if (!other.getDesiredNodePoolId().isEmpty()) { - desiredNodePoolId_ = other.desiredNodePoolId_; - onChanged(); - } - if (!other.getDesiredImageType().isEmpty()) { - desiredImageType_ = other.desiredImageType_; - onChanged(); - } - if (other.hasDesiredDatabaseEncryption()) { - mergeDesiredDatabaseEncryption(other.getDesiredDatabaseEncryption()); - } - if (other.hasDesiredWorkloadIdentityConfig()) { - mergeDesiredWorkloadIdentityConfig(other.getDesiredWorkloadIdentityConfig()); - } - if (other.hasDesiredShieldedNodes()) { - mergeDesiredShieldedNodes(other.getDesiredShieldedNodes()); - } - if (other.hasDesiredNodePoolAutoscaling()) { - mergeDesiredNodePoolAutoscaling(other.getDesiredNodePoolAutoscaling()); - } - if (!other.desiredLocations_.isEmpty()) { - if (desiredLocations_.isEmpty()) { - desiredLocations_ = other.desiredLocations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDesiredLocationsIsMutable(); - desiredLocations_.addAll(other.desiredLocations_); - } - onChanged(); - } - if (other.hasDesiredMasterAuthorizedNetworksConfig()) { - mergeDesiredMasterAuthorizedNetworksConfig( - other.getDesiredMasterAuthorizedNetworksConfig()); - } - if (other.hasDesiredClusterAutoscaling()) { - mergeDesiredClusterAutoscaling(other.getDesiredClusterAutoscaling()); - } - if (other.hasDesiredBinaryAuthorization()) { - mergeDesiredBinaryAuthorization(other.getDesiredBinaryAuthorization()); - } - if (!other.getDesiredLoggingService().isEmpty()) { - desiredLoggingService_ = other.desiredLoggingService_; - onChanged(); - } - if (other.hasDesiredResourceUsageExportConfig()) { - mergeDesiredResourceUsageExportConfig(other.getDesiredResourceUsageExportConfig()); - } - if (other.hasDesiredVerticalPodAutoscaling()) { - mergeDesiredVerticalPodAutoscaling(other.getDesiredVerticalPodAutoscaling()); - } - if (other.hasDesiredPrivateClusterConfig()) { - mergeDesiredPrivateClusterConfig(other.getDesiredPrivateClusterConfig()); - } - if (other.hasDesiredIntraNodeVisibilityConfig()) { - mergeDesiredIntraNodeVisibilityConfig(other.getDesiredIntraNodeVisibilityConfig()); - } - if (other.hasDesiredDefaultSnatStatus()) { - mergeDesiredDefaultSnatStatus(other.getDesiredDefaultSnatStatus()); - } - if (other.hasDesiredReleaseChannel()) { - mergeDesiredReleaseChannel(other.getDesiredReleaseChannel()); - } - if (!other.getDesiredMasterVersion().isEmpty()) { - desiredMasterVersion_ = other.desiredMasterVersion_; - 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.container.v1.ClusterUpdate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.ClusterUpdate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object desiredNodeVersion_ = ""; - /** - * - * - *
-     * The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string desired_node_version = 4; - * - * @return The desiredNodeVersion. - */ - public java.lang.String getDesiredNodeVersion() { - java.lang.Object ref = desiredNodeVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredNodeVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string desired_node_version = 4; - * - * @return The bytes for desiredNodeVersion. - */ - public com.google.protobuf.ByteString getDesiredNodeVersionBytes() { - java.lang.Object ref = desiredNodeVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - desiredNodeVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string desired_node_version = 4; - * - * @param value The desiredNodeVersion to set. - * @return This builder for chaining. - */ - public Builder setDesiredNodeVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - desiredNodeVersion_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string desired_node_version = 4; - * - * @return This builder for chaining. - */ - public Builder clearDesiredNodeVersion() { - - desiredNodeVersion_ = getDefaultInstance().getDesiredNodeVersion(); - onChanged(); - return this; - } - /** - * - * - *
-     * The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string desired_node_version = 4; - * - * @param value The bytes for desiredNodeVersion to set. - * @return This builder for chaining. - */ - public Builder setDesiredNodeVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - desiredNodeVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object desiredMonitoringService_ = ""; - /** - * - * - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string desired_monitoring_service = 5; - * - * @return The desiredMonitoringService. - */ - public java.lang.String getDesiredMonitoringService() { - java.lang.Object ref = desiredMonitoringService_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredMonitoringService_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string desired_monitoring_service = 5; - * - * @return The bytes for desiredMonitoringService. - */ - public com.google.protobuf.ByteString getDesiredMonitoringServiceBytes() { - java.lang.Object ref = desiredMonitoringService_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - desiredMonitoringService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string desired_monitoring_service = 5; - * - * @param value The desiredMonitoringService to set. - * @return This builder for chaining. - */ - public Builder setDesiredMonitoringService(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - desiredMonitoringService_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string desired_monitoring_service = 5; - * - * @return This builder for chaining. - */ - public Builder clearDesiredMonitoringService() { - - desiredMonitoringService_ = getDefaultInstance().getDesiredMonitoringService(); - onChanged(); - return this; - } - /** - * - * - *
-     * The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string desired_monitoring_service = 5; - * - * @param value The bytes for desiredMonitoringService to set. - * @return This builder for chaining. - */ - public Builder setDesiredMonitoringServiceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - desiredMonitoringService_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.AddonsConfig desiredAddonsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AddonsConfig, - com.google.container.v1.AddonsConfig.Builder, - com.google.container.v1.AddonsConfigOrBuilder> - desiredAddonsConfigBuilder_; - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - * - * @return Whether the desiredAddonsConfig field is set. - */ - public boolean hasDesiredAddonsConfig() { - return desiredAddonsConfigBuilder_ != null || desiredAddonsConfig_ != null; - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - * - * @return The desiredAddonsConfig. - */ - public com.google.container.v1.AddonsConfig getDesiredAddonsConfig() { - if (desiredAddonsConfigBuilder_ == null) { - return desiredAddonsConfig_ == null - ? com.google.container.v1.AddonsConfig.getDefaultInstance() - : desiredAddonsConfig_; - } else { - return desiredAddonsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - public Builder setDesiredAddonsConfig(com.google.container.v1.AddonsConfig value) { - if (desiredAddonsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredAddonsConfig_ = value; - onChanged(); - } else { - desiredAddonsConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - public Builder setDesiredAddonsConfig( - com.google.container.v1.AddonsConfig.Builder builderForValue) { - if (desiredAddonsConfigBuilder_ == null) { - desiredAddonsConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredAddonsConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - public Builder mergeDesiredAddonsConfig(com.google.container.v1.AddonsConfig value) { - if (desiredAddonsConfigBuilder_ == null) { - if (desiredAddonsConfig_ != null) { - desiredAddonsConfig_ = - com.google.container.v1.AddonsConfig.newBuilder(desiredAddonsConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - desiredAddonsConfig_ = value; - } - onChanged(); - } else { - desiredAddonsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - public Builder clearDesiredAddonsConfig() { - if (desiredAddonsConfigBuilder_ == null) { - desiredAddonsConfig_ = null; - onChanged(); - } else { - desiredAddonsConfig_ = null; - desiredAddonsConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - public com.google.container.v1.AddonsConfig.Builder getDesiredAddonsConfigBuilder() { - - onChanged(); - return getDesiredAddonsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - public com.google.container.v1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder() { - if (desiredAddonsConfigBuilder_ != null) { - return desiredAddonsConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredAddonsConfig_ == null - ? com.google.container.v1.AddonsConfig.getDefaultInstance() - : desiredAddonsConfig_; - } - } - /** - * - * - *
-     * Configurations for the various addons available to run in the cluster.
-     * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AddonsConfig, - com.google.container.v1.AddonsConfig.Builder, - com.google.container.v1.AddonsConfigOrBuilder> - getDesiredAddonsConfigFieldBuilder() { - if (desiredAddonsConfigBuilder_ == null) { - desiredAddonsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AddonsConfig, - com.google.container.v1.AddonsConfig.Builder, - com.google.container.v1.AddonsConfigOrBuilder>( - getDesiredAddonsConfig(), getParentForChildren(), isClean()); - desiredAddonsConfig_ = null; - } - return desiredAddonsConfigBuilder_; - } - - private java.lang.Object desiredNodePoolId_ = ""; - /** - * - * - *
-     * The node pool to be upgraded. This field is mandatory if
-     * "desired_node_version", "desired_image_family" or
-     * "desired_node_pool_autoscaling" is specified and there is more than one
-     * node pool on the cluster.
-     * 
- * - * string desired_node_pool_id = 7; - * - * @return The desiredNodePoolId. - */ - public java.lang.String getDesiredNodePoolId() { - java.lang.Object ref = desiredNodePoolId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredNodePoolId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The node pool to be upgraded. This field is mandatory if
-     * "desired_node_version", "desired_image_family" or
-     * "desired_node_pool_autoscaling" is specified and there is more than one
-     * node pool on the cluster.
-     * 
- * - * string desired_node_pool_id = 7; - * - * @return The bytes for desiredNodePoolId. - */ - public com.google.protobuf.ByteString getDesiredNodePoolIdBytes() { - java.lang.Object ref = desiredNodePoolId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - desiredNodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The node pool to be upgraded. This field is mandatory if
-     * "desired_node_version", "desired_image_family" or
-     * "desired_node_pool_autoscaling" is specified and there is more than one
-     * node pool on the cluster.
-     * 
- * - * string desired_node_pool_id = 7; - * - * @param value The desiredNodePoolId to set. - * @return This builder for chaining. - */ - public Builder setDesiredNodePoolId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - desiredNodePoolId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The node pool to be upgraded. This field is mandatory if
-     * "desired_node_version", "desired_image_family" or
-     * "desired_node_pool_autoscaling" is specified and there is more than one
-     * node pool on the cluster.
-     * 
- * - * string desired_node_pool_id = 7; - * - * @return This builder for chaining. - */ - public Builder clearDesiredNodePoolId() { - - desiredNodePoolId_ = getDefaultInstance().getDesiredNodePoolId(); - onChanged(); - return this; - } - /** - * - * - *
-     * The node pool to be upgraded. This field is mandatory if
-     * "desired_node_version", "desired_image_family" or
-     * "desired_node_pool_autoscaling" is specified and there is more than one
-     * node pool on the cluster.
-     * 
- * - * string desired_node_pool_id = 7; - * - * @param value The bytes for desiredNodePoolId to set. - * @return This builder for chaining. - */ - public Builder setDesiredNodePoolIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - desiredNodePoolId_ = value; - onChanged(); - return this; - } - - private java.lang.Object desiredImageType_ = ""; - /** - * - * - *
-     * The desired image type for the node pool.
-     * NOTE: Set the "desired_node_pool" field as well.
-     * 
- * - * string desired_image_type = 8; - * - * @return The desiredImageType. - */ - public java.lang.String getDesiredImageType() { - java.lang.Object ref = desiredImageType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredImageType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The desired image type for the node pool.
-     * NOTE: Set the "desired_node_pool" field as well.
-     * 
- * - * string desired_image_type = 8; - * - * @return The bytes for desiredImageType. - */ - public com.google.protobuf.ByteString getDesiredImageTypeBytes() { - java.lang.Object ref = desiredImageType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - desiredImageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The desired image type for the node pool.
-     * NOTE: Set the "desired_node_pool" field as well.
-     * 
- * - * string desired_image_type = 8; - * - * @param value The desiredImageType to set. - * @return This builder for chaining. - */ - public Builder setDesiredImageType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - desiredImageType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The desired image type for the node pool.
-     * NOTE: Set the "desired_node_pool" field as well.
-     * 
- * - * string desired_image_type = 8; - * - * @return This builder for chaining. - */ - public Builder clearDesiredImageType() { - - desiredImageType_ = getDefaultInstance().getDesiredImageType(); - onChanged(); - return this; - } - /** - * - * - *
-     * The desired image type for the node pool.
-     * NOTE: Set the "desired_node_pool" field as well.
-     * 
- * - * string desired_image_type = 8; - * - * @param value The bytes for desiredImageType to set. - * @return This builder for chaining. - */ - public Builder setDesiredImageTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - desiredImageType_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.DatabaseEncryption desiredDatabaseEncryption_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DatabaseEncryption, - com.google.container.v1.DatabaseEncryption.Builder, - com.google.container.v1.DatabaseEncryptionOrBuilder> - desiredDatabaseEncryptionBuilder_; - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - * - * @return Whether the desiredDatabaseEncryption field is set. - */ - public boolean hasDesiredDatabaseEncryption() { - return desiredDatabaseEncryptionBuilder_ != null || desiredDatabaseEncryption_ != null; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - * - * @return The desiredDatabaseEncryption. - */ - public com.google.container.v1.DatabaseEncryption getDesiredDatabaseEncryption() { - if (desiredDatabaseEncryptionBuilder_ == null) { - return desiredDatabaseEncryption_ == null - ? com.google.container.v1.DatabaseEncryption.getDefaultInstance() - : desiredDatabaseEncryption_; - } else { - return desiredDatabaseEncryptionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - public Builder setDesiredDatabaseEncryption(com.google.container.v1.DatabaseEncryption value) { - if (desiredDatabaseEncryptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredDatabaseEncryption_ = value; - onChanged(); - } else { - desiredDatabaseEncryptionBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - public Builder setDesiredDatabaseEncryption( - com.google.container.v1.DatabaseEncryption.Builder builderForValue) { - if (desiredDatabaseEncryptionBuilder_ == null) { - desiredDatabaseEncryption_ = builderForValue.build(); - onChanged(); - } else { - desiredDatabaseEncryptionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - public Builder mergeDesiredDatabaseEncryption( - com.google.container.v1.DatabaseEncryption value) { - if (desiredDatabaseEncryptionBuilder_ == null) { - if (desiredDatabaseEncryption_ != null) { - desiredDatabaseEncryption_ = - com.google.container.v1.DatabaseEncryption.newBuilder(desiredDatabaseEncryption_) - .mergeFrom(value) - .buildPartial(); - } else { - desiredDatabaseEncryption_ = value; - } - onChanged(); - } else { - desiredDatabaseEncryptionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - public Builder clearDesiredDatabaseEncryption() { - if (desiredDatabaseEncryptionBuilder_ == null) { - desiredDatabaseEncryption_ = null; - onChanged(); - } else { - desiredDatabaseEncryption_ = null; - desiredDatabaseEncryptionBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - public com.google.container.v1.DatabaseEncryption.Builder - getDesiredDatabaseEncryptionBuilder() { - - onChanged(); - return getDesiredDatabaseEncryptionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - public com.google.container.v1.DatabaseEncryptionOrBuilder - getDesiredDatabaseEncryptionOrBuilder() { - if (desiredDatabaseEncryptionBuilder_ != null) { - return desiredDatabaseEncryptionBuilder_.getMessageOrBuilder(); - } else { - return desiredDatabaseEncryption_ == null - ? com.google.container.v1.DatabaseEncryption.getDefaultInstance() - : desiredDatabaseEncryption_; - } - } - /** - * - * - *
-     * Configuration of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DatabaseEncryption, - com.google.container.v1.DatabaseEncryption.Builder, - com.google.container.v1.DatabaseEncryptionOrBuilder> - getDesiredDatabaseEncryptionFieldBuilder() { - if (desiredDatabaseEncryptionBuilder_ == null) { - desiredDatabaseEncryptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DatabaseEncryption, - com.google.container.v1.DatabaseEncryption.Builder, - com.google.container.v1.DatabaseEncryptionOrBuilder>( - getDesiredDatabaseEncryption(), getParentForChildren(), isClean()); - desiredDatabaseEncryption_ = null; - } - return desiredDatabaseEncryptionBuilder_; - } - - private com.google.container.v1.WorkloadIdentityConfig desiredWorkloadIdentityConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadIdentityConfig, - com.google.container.v1.WorkloadIdentityConfig.Builder, - com.google.container.v1.WorkloadIdentityConfigOrBuilder> - desiredWorkloadIdentityConfigBuilder_; - /** - * - * - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - * - * @return Whether the desiredWorkloadIdentityConfig field is set. - */ - public boolean hasDesiredWorkloadIdentityConfig() { - return desiredWorkloadIdentityConfigBuilder_ != null - || desiredWorkloadIdentityConfig_ != null; - } - /** - * - * - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - * - * @return The desiredWorkloadIdentityConfig. - */ - public com.google.container.v1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig() { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - return desiredWorkloadIdentityConfig_ == null - ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() - : desiredWorkloadIdentityConfig_; - } else { - return desiredWorkloadIdentityConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - */ - public Builder setDesiredWorkloadIdentityConfig( - com.google.container.v1.WorkloadIdentityConfig value) { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredWorkloadIdentityConfig_ = value; - onChanged(); - } else { - desiredWorkloadIdentityConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - */ - public Builder setDesiredWorkloadIdentityConfig( - com.google.container.v1.WorkloadIdentityConfig.Builder builderForValue) { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - desiredWorkloadIdentityConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredWorkloadIdentityConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - */ - public Builder mergeDesiredWorkloadIdentityConfig( - com.google.container.v1.WorkloadIdentityConfig value) { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - if (desiredWorkloadIdentityConfig_ != null) { - desiredWorkloadIdentityConfig_ = - com.google.container.v1.WorkloadIdentityConfig.newBuilder( - desiredWorkloadIdentityConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - desiredWorkloadIdentityConfig_ = value; - } - onChanged(); - } else { - desiredWorkloadIdentityConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - */ - public Builder clearDesiredWorkloadIdentityConfig() { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - desiredWorkloadIdentityConfig_ = null; - onChanged(); - } else { - desiredWorkloadIdentityConfig_ = null; - desiredWorkloadIdentityConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - */ - public com.google.container.v1.WorkloadIdentityConfig.Builder - getDesiredWorkloadIdentityConfigBuilder() { - - onChanged(); - return getDesiredWorkloadIdentityConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - */ - public com.google.container.v1.WorkloadIdentityConfigOrBuilder - getDesiredWorkloadIdentityConfigOrBuilder() { - if (desiredWorkloadIdentityConfigBuilder_ != null) { - return desiredWorkloadIdentityConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredWorkloadIdentityConfig_ == null - ? com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance() - : desiredWorkloadIdentityConfig_; - } - } - /** - * - * - *
-     * Configuration for Workload Identity.
-     * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadIdentityConfig, - com.google.container.v1.WorkloadIdentityConfig.Builder, - com.google.container.v1.WorkloadIdentityConfigOrBuilder> - getDesiredWorkloadIdentityConfigFieldBuilder() { - if (desiredWorkloadIdentityConfigBuilder_ == null) { - desiredWorkloadIdentityConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadIdentityConfig, - com.google.container.v1.WorkloadIdentityConfig.Builder, - com.google.container.v1.WorkloadIdentityConfigOrBuilder>( - getDesiredWorkloadIdentityConfig(), getParentForChildren(), isClean()); - desiredWorkloadIdentityConfig_ = null; - } - return desiredWorkloadIdentityConfigBuilder_; - } - - private com.google.container.v1.ShieldedNodes desiredShieldedNodes_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedNodes, - com.google.container.v1.ShieldedNodes.Builder, - com.google.container.v1.ShieldedNodesOrBuilder> - desiredShieldedNodesBuilder_; - /** - * - * - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * - * @return Whether the desiredShieldedNodes field is set. - */ - public boolean hasDesiredShieldedNodes() { - return desiredShieldedNodesBuilder_ != null || desiredShieldedNodes_ != null; - } - /** - * - * - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * - * @return The desiredShieldedNodes. - */ - public com.google.container.v1.ShieldedNodes getDesiredShieldedNodes() { - if (desiredShieldedNodesBuilder_ == null) { - return desiredShieldedNodes_ == null - ? com.google.container.v1.ShieldedNodes.getDefaultInstance() - : desiredShieldedNodes_; - } else { - return desiredShieldedNodesBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - public Builder setDesiredShieldedNodes(com.google.container.v1.ShieldedNodes value) { - if (desiredShieldedNodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredShieldedNodes_ = value; - onChanged(); - } else { - desiredShieldedNodesBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - public Builder setDesiredShieldedNodes( - com.google.container.v1.ShieldedNodes.Builder builderForValue) { - if (desiredShieldedNodesBuilder_ == null) { - desiredShieldedNodes_ = builderForValue.build(); - onChanged(); - } else { - desiredShieldedNodesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - public Builder mergeDesiredShieldedNodes(com.google.container.v1.ShieldedNodes value) { - if (desiredShieldedNodesBuilder_ == null) { - if (desiredShieldedNodes_ != null) { - desiredShieldedNodes_ = - com.google.container.v1.ShieldedNodes.newBuilder(desiredShieldedNodes_) - .mergeFrom(value) - .buildPartial(); - } else { - desiredShieldedNodes_ = value; - } - onChanged(); - } else { - desiredShieldedNodesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - public Builder clearDesiredShieldedNodes() { - if (desiredShieldedNodesBuilder_ == null) { - desiredShieldedNodes_ = null; - onChanged(); - } else { - desiredShieldedNodes_ = null; - desiredShieldedNodesBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - public com.google.container.v1.ShieldedNodes.Builder getDesiredShieldedNodesBuilder() { - - onChanged(); - return getDesiredShieldedNodesFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - public com.google.container.v1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder() { - if (desiredShieldedNodesBuilder_ != null) { - return desiredShieldedNodesBuilder_.getMessageOrBuilder(); - } else { - return desiredShieldedNodes_ == null - ? com.google.container.v1.ShieldedNodes.getDefaultInstance() - : desiredShieldedNodes_; - } - } - /** - * - * - *
-     * Configuration for Shielded Nodes.
-     * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedNodes, - com.google.container.v1.ShieldedNodes.Builder, - com.google.container.v1.ShieldedNodesOrBuilder> - getDesiredShieldedNodesFieldBuilder() { - if (desiredShieldedNodesBuilder_ == null) { - desiredShieldedNodesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedNodes, - com.google.container.v1.ShieldedNodes.Builder, - com.google.container.v1.ShieldedNodesOrBuilder>( - getDesiredShieldedNodes(), getParentForChildren(), isClean()); - desiredShieldedNodes_ = null; - } - return desiredShieldedNodesBuilder_; - } - - private com.google.container.v1.NodePoolAutoscaling desiredNodePoolAutoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoscaling, - com.google.container.v1.NodePoolAutoscaling.Builder, - com.google.container.v1.NodePoolAutoscalingOrBuilder> - desiredNodePoolAutoscalingBuilder_; - /** - * - * - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * - * @return Whether the desiredNodePoolAutoscaling field is set. - */ - public boolean hasDesiredNodePoolAutoscaling() { - return desiredNodePoolAutoscalingBuilder_ != null || desiredNodePoolAutoscaling_ != null; - } - /** - * - * - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * - * @return The desiredNodePoolAutoscaling. - */ - public com.google.container.v1.NodePoolAutoscaling getDesiredNodePoolAutoscaling() { - if (desiredNodePoolAutoscalingBuilder_ == null) { - return desiredNodePoolAutoscaling_ == null - ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() - : desiredNodePoolAutoscaling_; - } else { - return desiredNodePoolAutoscalingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public Builder setDesiredNodePoolAutoscaling( - com.google.container.v1.NodePoolAutoscaling value) { - if (desiredNodePoolAutoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredNodePoolAutoscaling_ = value; - onChanged(); - } else { - desiredNodePoolAutoscalingBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public Builder setDesiredNodePoolAutoscaling( - com.google.container.v1.NodePoolAutoscaling.Builder builderForValue) { - if (desiredNodePoolAutoscalingBuilder_ == null) { - desiredNodePoolAutoscaling_ = builderForValue.build(); - onChanged(); - } else { - desiredNodePoolAutoscalingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public Builder mergeDesiredNodePoolAutoscaling( - com.google.container.v1.NodePoolAutoscaling value) { - if (desiredNodePoolAutoscalingBuilder_ == null) { - if (desiredNodePoolAutoscaling_ != null) { - desiredNodePoolAutoscaling_ = - com.google.container.v1.NodePoolAutoscaling.newBuilder(desiredNodePoolAutoscaling_) - .mergeFrom(value) - .buildPartial(); - } else { - desiredNodePoolAutoscaling_ = value; - } - onChanged(); - } else { - desiredNodePoolAutoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public Builder clearDesiredNodePoolAutoscaling() { - if (desiredNodePoolAutoscalingBuilder_ == null) { - desiredNodePoolAutoscaling_ = null; - onChanged(); - } else { - desiredNodePoolAutoscaling_ = null; - desiredNodePoolAutoscalingBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public com.google.container.v1.NodePoolAutoscaling.Builder - getDesiredNodePoolAutoscalingBuilder() { - - onChanged(); - return getDesiredNodePoolAutoscalingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - public com.google.container.v1.NodePoolAutoscalingOrBuilder - getDesiredNodePoolAutoscalingOrBuilder() { - if (desiredNodePoolAutoscalingBuilder_ != null) { - return desiredNodePoolAutoscalingBuilder_.getMessageOrBuilder(); - } else { - return desiredNodePoolAutoscaling_ == null - ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() - : desiredNodePoolAutoscaling_; - } - } - /** - * - * - *
-     * Autoscaler configuration for the node pool specified in
-     * desired_node_pool_id. If there is only one pool in the
-     * cluster and desired_node_pool_id is not provided then
-     * the change applies to that single node pool.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoscaling, - com.google.container.v1.NodePoolAutoscaling.Builder, - com.google.container.v1.NodePoolAutoscalingOrBuilder> - getDesiredNodePoolAutoscalingFieldBuilder() { - if (desiredNodePoolAutoscalingBuilder_ == null) { - desiredNodePoolAutoscalingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoscaling, - com.google.container.v1.NodePoolAutoscaling.Builder, - com.google.container.v1.NodePoolAutoscalingOrBuilder>( - getDesiredNodePoolAutoscaling(), getParentForChildren(), isClean()); - desiredNodePoolAutoscaling_ = null; - } - return desiredNodePoolAutoscalingBuilder_; - } - - private com.google.protobuf.LazyStringList desiredLocations_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureDesiredLocationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - desiredLocations_ = new com.google.protobuf.LazyStringArrayList(desiredLocations_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * - * @return A list containing the desiredLocations. - */ - public com.google.protobuf.ProtocolStringList getDesiredLocationsList() { - return desiredLocations_.getUnmodifiableView(); - } - /** - * - * - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * - * @return The count of desiredLocations. - */ - public int getDesiredLocationsCount() { - return desiredLocations_.size(); - } - /** - * - * - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * - * @param index The index of the element to return. - * @return The desiredLocations at the given index. - */ - public java.lang.String getDesiredLocations(int index) { - return desiredLocations_.get(index); - } - /** - * - * - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * - * @param index The index of the value to return. - * @return The bytes of the desiredLocations at the given index. - */ - public com.google.protobuf.ByteString getDesiredLocationsBytes(int index) { - return desiredLocations_.getByteString(index); - } - /** - * - * - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * - * @param index The index to set the value at. - * @param value The desiredLocations to set. - * @return This builder for chaining. - */ - public Builder setDesiredLocations(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDesiredLocationsIsMutable(); - desiredLocations_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * - * @param value The desiredLocations to add. - * @return This builder for chaining. - */ - public Builder addDesiredLocations(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDesiredLocationsIsMutable(); - desiredLocations_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * - * @param values The desiredLocations to add. - * @return This builder for chaining. - */ - public Builder addAllDesiredLocations(java.lang.Iterable values) { - ensureDesiredLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, desiredLocations_); - onChanged(); - return this; - } - /** - * - * - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * - * @return This builder for chaining. - */ - public Builder clearDesiredLocations() { - desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located.
-     * This list must always include the cluster's primary zone.
-     * Warning: changing cluster locations will update the locations of all node
-     * pools and will result in nodes being added and/or removed.
-     * 
- * - * repeated string desired_locations = 10; - * - * @param value The bytes of the desiredLocations to add. - * @return This builder for chaining. - */ - public Builder addDesiredLocationsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureDesiredLocationsIsMutable(); - desiredLocations_.add(value); - onChanged(); - return this; - } - - private com.google.container.v1.MasterAuthorizedNetworksConfig - desiredMasterAuthorizedNetworksConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuthorizedNetworksConfig, - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, - com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder> - desiredMasterAuthorizedNetworksConfigBuilder_; - /** - * - * - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - * - * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. - */ - public boolean hasDesiredMasterAuthorizedNetworksConfig() { - return desiredMasterAuthorizedNetworksConfigBuilder_ != null - || desiredMasterAuthorizedNetworksConfig_ != null; - } - /** - * - * - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - * - * @return The desiredMasterAuthorizedNetworksConfig. - */ - public com.google.container.v1.MasterAuthorizedNetworksConfig - getDesiredMasterAuthorizedNetworksConfig() { - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - return desiredMasterAuthorizedNetworksConfig_ == null - ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() - : desiredMasterAuthorizedNetworksConfig_; - } else { - return desiredMasterAuthorizedNetworksConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - */ - public Builder setDesiredMasterAuthorizedNetworksConfig( - com.google.container.v1.MasterAuthorizedNetworksConfig value) { - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredMasterAuthorizedNetworksConfig_ = value; - onChanged(); - } else { - desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - */ - public Builder setDesiredMasterAuthorizedNetworksConfig( - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder builderForValue) { - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - desiredMasterAuthorizedNetworksConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredMasterAuthorizedNetworksConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - */ - public Builder mergeDesiredMasterAuthorizedNetworksConfig( - com.google.container.v1.MasterAuthorizedNetworksConfig value) { - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - if (desiredMasterAuthorizedNetworksConfig_ != null) { - desiredMasterAuthorizedNetworksConfig_ = - com.google.container.v1.MasterAuthorizedNetworksConfig.newBuilder( - desiredMasterAuthorizedNetworksConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - desiredMasterAuthorizedNetworksConfig_ = value; - } - onChanged(); - } else { - desiredMasterAuthorizedNetworksConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - */ - public Builder clearDesiredMasterAuthorizedNetworksConfig() { - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - desiredMasterAuthorizedNetworksConfig_ = null; - onChanged(); - } else { - desiredMasterAuthorizedNetworksConfig_ = null; - desiredMasterAuthorizedNetworksConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - */ - public com.google.container.v1.MasterAuthorizedNetworksConfig.Builder - getDesiredMasterAuthorizedNetworksConfigBuilder() { - - onChanged(); - return getDesiredMasterAuthorizedNetworksConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - */ - public com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder - getDesiredMasterAuthorizedNetworksConfigOrBuilder() { - if (desiredMasterAuthorizedNetworksConfigBuilder_ != null) { - return desiredMasterAuthorizedNetworksConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredMasterAuthorizedNetworksConfig_ == null - ? com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance() - : desiredMasterAuthorizedNetworksConfig_; - } - } - /** - * - * - *
-     * The desired configuration options for master authorized networks feature.
-     * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuthorizedNetworksConfig, - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, - com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder> - getDesiredMasterAuthorizedNetworksConfigFieldBuilder() { - if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { - desiredMasterAuthorizedNetworksConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuthorizedNetworksConfig, - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder, - com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder>( - getDesiredMasterAuthorizedNetworksConfig(), getParentForChildren(), isClean()); - desiredMasterAuthorizedNetworksConfig_ = null; - } - return desiredMasterAuthorizedNetworksConfigBuilder_; - } - - private com.google.container.v1.ClusterAutoscaling desiredClusterAutoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClusterAutoscaling, - com.google.container.v1.ClusterAutoscaling.Builder, - com.google.container.v1.ClusterAutoscalingOrBuilder> - desiredClusterAutoscalingBuilder_; - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * - * @return Whether the desiredClusterAutoscaling field is set. - */ - public boolean hasDesiredClusterAutoscaling() { - return desiredClusterAutoscalingBuilder_ != null || desiredClusterAutoscaling_ != null; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * - * @return The desiredClusterAutoscaling. - */ - public com.google.container.v1.ClusterAutoscaling getDesiredClusterAutoscaling() { - if (desiredClusterAutoscalingBuilder_ == null) { - return desiredClusterAutoscaling_ == null - ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() - : desiredClusterAutoscaling_; - } else { - return desiredClusterAutoscalingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public Builder setDesiredClusterAutoscaling(com.google.container.v1.ClusterAutoscaling value) { - if (desiredClusterAutoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredClusterAutoscaling_ = value; - onChanged(); - } else { - desiredClusterAutoscalingBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public Builder setDesiredClusterAutoscaling( - com.google.container.v1.ClusterAutoscaling.Builder builderForValue) { - if (desiredClusterAutoscalingBuilder_ == null) { - desiredClusterAutoscaling_ = builderForValue.build(); - onChanged(); - } else { - desiredClusterAutoscalingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public Builder mergeDesiredClusterAutoscaling( - com.google.container.v1.ClusterAutoscaling value) { - if (desiredClusterAutoscalingBuilder_ == null) { - if (desiredClusterAutoscaling_ != null) { - desiredClusterAutoscaling_ = - com.google.container.v1.ClusterAutoscaling.newBuilder(desiredClusterAutoscaling_) - .mergeFrom(value) - .buildPartial(); - } else { - desiredClusterAutoscaling_ = value; - } - onChanged(); - } else { - desiredClusterAutoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public Builder clearDesiredClusterAutoscaling() { - if (desiredClusterAutoscalingBuilder_ == null) { - desiredClusterAutoscaling_ = null; - onChanged(); - } else { - desiredClusterAutoscaling_ = null; - desiredClusterAutoscalingBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public com.google.container.v1.ClusterAutoscaling.Builder - getDesiredClusterAutoscalingBuilder() { - - onChanged(); - return getDesiredClusterAutoscalingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - public com.google.container.v1.ClusterAutoscalingOrBuilder - getDesiredClusterAutoscalingOrBuilder() { - if (desiredClusterAutoscalingBuilder_ != null) { - return desiredClusterAutoscalingBuilder_.getMessageOrBuilder(); - } else { - return desiredClusterAutoscaling_ == null - ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() - : desiredClusterAutoscaling_; - } - } - /** - * - * - *
-     * Cluster-level autoscaling configuration.
-     * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClusterAutoscaling, - com.google.container.v1.ClusterAutoscaling.Builder, - com.google.container.v1.ClusterAutoscalingOrBuilder> - getDesiredClusterAutoscalingFieldBuilder() { - if (desiredClusterAutoscalingBuilder_ == null) { - desiredClusterAutoscalingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClusterAutoscaling, - com.google.container.v1.ClusterAutoscaling.Builder, - com.google.container.v1.ClusterAutoscalingOrBuilder>( - getDesiredClusterAutoscaling(), getParentForChildren(), isClean()); - desiredClusterAutoscaling_ = null; - } - return desiredClusterAutoscalingBuilder_; - } - - private com.google.container.v1.BinaryAuthorization desiredBinaryAuthorization_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.BinaryAuthorization, - com.google.container.v1.BinaryAuthorization.Builder, - com.google.container.v1.BinaryAuthorizationOrBuilder> - desiredBinaryAuthorizationBuilder_; - /** - * - * - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - * - * @return Whether the desiredBinaryAuthorization field is set. - */ - public boolean hasDesiredBinaryAuthorization() { - return desiredBinaryAuthorizationBuilder_ != null || desiredBinaryAuthorization_ != null; - } - /** - * - * - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - * - * @return The desiredBinaryAuthorization. - */ - public com.google.container.v1.BinaryAuthorization getDesiredBinaryAuthorization() { - if (desiredBinaryAuthorizationBuilder_ == null) { - return desiredBinaryAuthorization_ == null - ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() - : desiredBinaryAuthorization_; - } else { - return desiredBinaryAuthorizationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - public Builder setDesiredBinaryAuthorization( - com.google.container.v1.BinaryAuthorization value) { - if (desiredBinaryAuthorizationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredBinaryAuthorization_ = value; - onChanged(); - } else { - desiredBinaryAuthorizationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - public Builder setDesiredBinaryAuthorization( - com.google.container.v1.BinaryAuthorization.Builder builderForValue) { - if (desiredBinaryAuthorizationBuilder_ == null) { - desiredBinaryAuthorization_ = builderForValue.build(); - onChanged(); - } else { - desiredBinaryAuthorizationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - public Builder mergeDesiredBinaryAuthorization( - com.google.container.v1.BinaryAuthorization value) { - if (desiredBinaryAuthorizationBuilder_ == null) { - if (desiredBinaryAuthorization_ != null) { - desiredBinaryAuthorization_ = - com.google.container.v1.BinaryAuthorization.newBuilder(desiredBinaryAuthorization_) - .mergeFrom(value) - .buildPartial(); - } else { - desiredBinaryAuthorization_ = value; - } - onChanged(); - } else { - desiredBinaryAuthorizationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - public Builder clearDesiredBinaryAuthorization() { - if (desiredBinaryAuthorizationBuilder_ == null) { - desiredBinaryAuthorization_ = null; - onChanged(); - } else { - desiredBinaryAuthorization_ = null; - desiredBinaryAuthorizationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - public com.google.container.v1.BinaryAuthorization.Builder - getDesiredBinaryAuthorizationBuilder() { - - onChanged(); - return getDesiredBinaryAuthorizationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - public com.google.container.v1.BinaryAuthorizationOrBuilder - getDesiredBinaryAuthorizationOrBuilder() { - if (desiredBinaryAuthorizationBuilder_ != null) { - return desiredBinaryAuthorizationBuilder_.getMessageOrBuilder(); - } else { - return desiredBinaryAuthorization_ == null - ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() - : desiredBinaryAuthorization_; - } - } - /** - * - * - *
-     * The desired configuration options for the Binary Authorization feature.
-     * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.BinaryAuthorization, - com.google.container.v1.BinaryAuthorization.Builder, - com.google.container.v1.BinaryAuthorizationOrBuilder> - getDesiredBinaryAuthorizationFieldBuilder() { - if (desiredBinaryAuthorizationBuilder_ == null) { - desiredBinaryAuthorizationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.BinaryAuthorization, - com.google.container.v1.BinaryAuthorization.Builder, - com.google.container.v1.BinaryAuthorizationOrBuilder>( - getDesiredBinaryAuthorization(), getParentForChildren(), isClean()); - desiredBinaryAuthorization_ = null; - } - return desiredBinaryAuthorizationBuilder_; - } - - private java.lang.Object desiredLoggingService_ = ""; - /** - * - * - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string desired_logging_service = 19; - * - * @return The desiredLoggingService. - */ - public java.lang.String getDesiredLoggingService() { - java.lang.Object ref = desiredLoggingService_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredLoggingService_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string desired_logging_service = 19; - * - * @return The bytes for desiredLoggingService. - */ - public com.google.protobuf.ByteString getDesiredLoggingServiceBytes() { - java.lang.Object ref = desiredLoggingService_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - desiredLoggingService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string desired_logging_service = 19; - * - * @param value The desiredLoggingService to set. - * @return This builder for chaining. - */ - public Builder setDesiredLoggingService(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - desiredLoggingService_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string desired_logging_service = 19; - * - * @return This builder for chaining. - */ - public Builder clearDesiredLoggingService() { - - desiredLoggingService_ = getDefaultInstance().getDesiredLoggingService(); - onChanged(); - return this; - } - /** - * - * - *
-     * The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string desired_logging_service = 19; - * - * @param value The bytes for desiredLoggingService to set. - * @return This builder for chaining. - */ - public Builder setDesiredLoggingServiceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - desiredLoggingService_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.ResourceUsageExportConfig desiredResourceUsageExportConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig, - com.google.container.v1.ResourceUsageExportConfig.Builder, - com.google.container.v1.ResourceUsageExportConfigOrBuilder> - desiredResourceUsageExportConfigBuilder_; - /** - * - * - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - * - * @return Whether the desiredResourceUsageExportConfig field is set. - */ - public boolean hasDesiredResourceUsageExportConfig() { - return desiredResourceUsageExportConfigBuilder_ != null - || desiredResourceUsageExportConfig_ != null; - } - /** - * - * - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - * - * @return The desiredResourceUsageExportConfig. - */ - public com.google.container.v1.ResourceUsageExportConfig getDesiredResourceUsageExportConfig() { - if (desiredResourceUsageExportConfigBuilder_ == null) { - return desiredResourceUsageExportConfig_ == null - ? com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() - : desiredResourceUsageExportConfig_; - } else { - return desiredResourceUsageExportConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - */ - public Builder setDesiredResourceUsageExportConfig( - com.google.container.v1.ResourceUsageExportConfig value) { - if (desiredResourceUsageExportConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredResourceUsageExportConfig_ = value; - onChanged(); - } else { - desiredResourceUsageExportConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - */ - public Builder setDesiredResourceUsageExportConfig( - com.google.container.v1.ResourceUsageExportConfig.Builder builderForValue) { - if (desiredResourceUsageExportConfigBuilder_ == null) { - desiredResourceUsageExportConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredResourceUsageExportConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - */ - public Builder mergeDesiredResourceUsageExportConfig( - com.google.container.v1.ResourceUsageExportConfig value) { - if (desiredResourceUsageExportConfigBuilder_ == null) { - if (desiredResourceUsageExportConfig_ != null) { - desiredResourceUsageExportConfig_ = - com.google.container.v1.ResourceUsageExportConfig.newBuilder( - desiredResourceUsageExportConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - desiredResourceUsageExportConfig_ = value; - } - onChanged(); - } else { - desiredResourceUsageExportConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - */ - public Builder clearDesiredResourceUsageExportConfig() { - if (desiredResourceUsageExportConfigBuilder_ == null) { - desiredResourceUsageExportConfig_ = null; - onChanged(); - } else { - desiredResourceUsageExportConfig_ = null; - desiredResourceUsageExportConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - */ - public com.google.container.v1.ResourceUsageExportConfig.Builder - getDesiredResourceUsageExportConfigBuilder() { - - onChanged(); - return getDesiredResourceUsageExportConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - */ - public com.google.container.v1.ResourceUsageExportConfigOrBuilder - getDesiredResourceUsageExportConfigOrBuilder() { - if (desiredResourceUsageExportConfigBuilder_ != null) { - return desiredResourceUsageExportConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredResourceUsageExportConfig_ == null - ? com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance() - : desiredResourceUsageExportConfig_; - } - } - /** - * - * - *
-     * The desired configuration for exporting resource usage.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig, - com.google.container.v1.ResourceUsageExportConfig.Builder, - com.google.container.v1.ResourceUsageExportConfigOrBuilder> - getDesiredResourceUsageExportConfigFieldBuilder() { - if (desiredResourceUsageExportConfigBuilder_ == null) { - desiredResourceUsageExportConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig, - com.google.container.v1.ResourceUsageExportConfig.Builder, - com.google.container.v1.ResourceUsageExportConfigOrBuilder>( - getDesiredResourceUsageExportConfig(), getParentForChildren(), isClean()); - desiredResourceUsageExportConfig_ = null; - } - return desiredResourceUsageExportConfigBuilder_; - } - - private com.google.container.v1.VerticalPodAutoscaling desiredVerticalPodAutoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VerticalPodAutoscaling, - com.google.container.v1.VerticalPodAutoscaling.Builder, - com.google.container.v1.VerticalPodAutoscalingOrBuilder> - desiredVerticalPodAutoscalingBuilder_; - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - * - * @return Whether the desiredVerticalPodAutoscaling field is set. - */ - public boolean hasDesiredVerticalPodAutoscaling() { - return desiredVerticalPodAutoscalingBuilder_ != null - || desiredVerticalPodAutoscaling_ != null; - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - * - * @return The desiredVerticalPodAutoscaling. - */ - public com.google.container.v1.VerticalPodAutoscaling getDesiredVerticalPodAutoscaling() { - if (desiredVerticalPodAutoscalingBuilder_ == null) { - return desiredVerticalPodAutoscaling_ == null - ? com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() - : desiredVerticalPodAutoscaling_; - } else { - return desiredVerticalPodAutoscalingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - */ - public Builder setDesiredVerticalPodAutoscaling( - com.google.container.v1.VerticalPodAutoscaling value) { - if (desiredVerticalPodAutoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredVerticalPodAutoscaling_ = value; - onChanged(); - } else { - desiredVerticalPodAutoscalingBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - */ - public Builder setDesiredVerticalPodAutoscaling( - com.google.container.v1.VerticalPodAutoscaling.Builder builderForValue) { - if (desiredVerticalPodAutoscalingBuilder_ == null) { - desiredVerticalPodAutoscaling_ = builderForValue.build(); - onChanged(); - } else { - desiredVerticalPodAutoscalingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - */ - public Builder mergeDesiredVerticalPodAutoscaling( - com.google.container.v1.VerticalPodAutoscaling value) { - if (desiredVerticalPodAutoscalingBuilder_ == null) { - if (desiredVerticalPodAutoscaling_ != null) { - desiredVerticalPodAutoscaling_ = - com.google.container.v1.VerticalPodAutoscaling.newBuilder( - desiredVerticalPodAutoscaling_) - .mergeFrom(value) - .buildPartial(); - } else { - desiredVerticalPodAutoscaling_ = value; - } - onChanged(); - } else { - desiredVerticalPodAutoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - */ - public Builder clearDesiredVerticalPodAutoscaling() { - if (desiredVerticalPodAutoscalingBuilder_ == null) { - desiredVerticalPodAutoscaling_ = null; - onChanged(); - } else { - desiredVerticalPodAutoscaling_ = null; - desiredVerticalPodAutoscalingBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - */ - public com.google.container.v1.VerticalPodAutoscaling.Builder - getDesiredVerticalPodAutoscalingBuilder() { - - onChanged(); - return getDesiredVerticalPodAutoscalingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - */ - public com.google.container.v1.VerticalPodAutoscalingOrBuilder - getDesiredVerticalPodAutoscalingOrBuilder() { - if (desiredVerticalPodAutoscalingBuilder_ != null) { - return desiredVerticalPodAutoscalingBuilder_.getMessageOrBuilder(); - } else { - return desiredVerticalPodAutoscaling_ == null - ? com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() - : desiredVerticalPodAutoscaling_; - } - } - /** - * - * - *
-     * Cluster-level Vertical Pod Autoscaling configuration.
-     * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VerticalPodAutoscaling, - com.google.container.v1.VerticalPodAutoscaling.Builder, - com.google.container.v1.VerticalPodAutoscalingOrBuilder> - getDesiredVerticalPodAutoscalingFieldBuilder() { - if (desiredVerticalPodAutoscalingBuilder_ == null) { - desiredVerticalPodAutoscalingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.VerticalPodAutoscaling, - com.google.container.v1.VerticalPodAutoscaling.Builder, - com.google.container.v1.VerticalPodAutoscalingOrBuilder>( - getDesiredVerticalPodAutoscaling(), getParentForChildren(), isClean()); - desiredVerticalPodAutoscaling_ = null; - } - return desiredVerticalPodAutoscalingBuilder_; - } - - private com.google.container.v1.PrivateClusterConfig desiredPrivateClusterConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterConfig, - com.google.container.v1.PrivateClusterConfig.Builder, - com.google.container.v1.PrivateClusterConfigOrBuilder> - desiredPrivateClusterConfigBuilder_; - /** - * - * - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - * - * @return Whether the desiredPrivateClusterConfig field is set. - */ - public boolean hasDesiredPrivateClusterConfig() { - return desiredPrivateClusterConfigBuilder_ != null || desiredPrivateClusterConfig_ != null; - } - /** - * - * - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - * - * @return The desiredPrivateClusterConfig. - */ - public com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConfig() { - if (desiredPrivateClusterConfigBuilder_ == null) { - return desiredPrivateClusterConfig_ == null - ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() - : desiredPrivateClusterConfig_; - } else { - return desiredPrivateClusterConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public Builder setDesiredPrivateClusterConfig( - com.google.container.v1.PrivateClusterConfig value) { - if (desiredPrivateClusterConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredPrivateClusterConfig_ = value; - onChanged(); - } else { - desiredPrivateClusterConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public Builder setDesiredPrivateClusterConfig( - com.google.container.v1.PrivateClusterConfig.Builder builderForValue) { - if (desiredPrivateClusterConfigBuilder_ == null) { - desiredPrivateClusterConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredPrivateClusterConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public Builder mergeDesiredPrivateClusterConfig( - com.google.container.v1.PrivateClusterConfig value) { - if (desiredPrivateClusterConfigBuilder_ == null) { - if (desiredPrivateClusterConfig_ != null) { - desiredPrivateClusterConfig_ = - com.google.container.v1.PrivateClusterConfig.newBuilder(desiredPrivateClusterConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - desiredPrivateClusterConfig_ = value; - } - onChanged(); - } else { - desiredPrivateClusterConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public Builder clearDesiredPrivateClusterConfig() { - if (desiredPrivateClusterConfigBuilder_ == null) { - desiredPrivateClusterConfig_ = null; - onChanged(); - } else { - desiredPrivateClusterConfig_ = null; - desiredPrivateClusterConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public com.google.container.v1.PrivateClusterConfig.Builder - getDesiredPrivateClusterConfigBuilder() { - - onChanged(); - return getDesiredPrivateClusterConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - public com.google.container.v1.PrivateClusterConfigOrBuilder - getDesiredPrivateClusterConfigOrBuilder() { - if (desiredPrivateClusterConfigBuilder_ != null) { - return desiredPrivateClusterConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredPrivateClusterConfig_ == null - ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() - : desiredPrivateClusterConfig_; - } - } - /** - * - * - *
-     * The desired private cluster configuration.
-     * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterConfig, - com.google.container.v1.PrivateClusterConfig.Builder, - com.google.container.v1.PrivateClusterConfigOrBuilder> - getDesiredPrivateClusterConfigFieldBuilder() { - if (desiredPrivateClusterConfigBuilder_ == null) { - desiredPrivateClusterConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterConfig, - com.google.container.v1.PrivateClusterConfig.Builder, - com.google.container.v1.PrivateClusterConfigOrBuilder>( - getDesiredPrivateClusterConfig(), getParentForChildren(), isClean()); - desiredPrivateClusterConfig_ = null; - } - return desiredPrivateClusterConfigBuilder_; - } - - private com.google.container.v1.IntraNodeVisibilityConfig desiredIntraNodeVisibilityConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.IntraNodeVisibilityConfig, - com.google.container.v1.IntraNodeVisibilityConfig.Builder, - com.google.container.v1.IntraNodeVisibilityConfigOrBuilder> - desiredIntraNodeVisibilityConfigBuilder_; - /** - * - * - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - * - * @return Whether the desiredIntraNodeVisibilityConfig field is set. - */ - public boolean hasDesiredIntraNodeVisibilityConfig() { - return desiredIntraNodeVisibilityConfigBuilder_ != null - || desiredIntraNodeVisibilityConfig_ != null; - } - /** - * - * - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - * - * @return The desiredIntraNodeVisibilityConfig. - */ - public com.google.container.v1.IntraNodeVisibilityConfig getDesiredIntraNodeVisibilityConfig() { - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - return desiredIntraNodeVisibilityConfig_ == null - ? com.google.container.v1.IntraNodeVisibilityConfig.getDefaultInstance() - : desiredIntraNodeVisibilityConfig_; - } else { - return desiredIntraNodeVisibilityConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - */ - public Builder setDesiredIntraNodeVisibilityConfig( - com.google.container.v1.IntraNodeVisibilityConfig value) { - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredIntraNodeVisibilityConfig_ = value; - onChanged(); - } else { - desiredIntraNodeVisibilityConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - */ - public Builder setDesiredIntraNodeVisibilityConfig( - com.google.container.v1.IntraNodeVisibilityConfig.Builder builderForValue) { - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - desiredIntraNodeVisibilityConfig_ = builderForValue.build(); - onChanged(); - } else { - desiredIntraNodeVisibilityConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - */ - public Builder mergeDesiredIntraNodeVisibilityConfig( - com.google.container.v1.IntraNodeVisibilityConfig value) { - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - if (desiredIntraNodeVisibilityConfig_ != null) { - desiredIntraNodeVisibilityConfig_ = - com.google.container.v1.IntraNodeVisibilityConfig.newBuilder( - desiredIntraNodeVisibilityConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - desiredIntraNodeVisibilityConfig_ = value; - } - onChanged(); - } else { - desiredIntraNodeVisibilityConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - */ - public Builder clearDesiredIntraNodeVisibilityConfig() { - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - desiredIntraNodeVisibilityConfig_ = null; - onChanged(); - } else { - desiredIntraNodeVisibilityConfig_ = null; - desiredIntraNodeVisibilityConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - */ - public com.google.container.v1.IntraNodeVisibilityConfig.Builder - getDesiredIntraNodeVisibilityConfigBuilder() { - - onChanged(); - return getDesiredIntraNodeVisibilityConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - */ - public com.google.container.v1.IntraNodeVisibilityConfigOrBuilder - getDesiredIntraNodeVisibilityConfigOrBuilder() { - if (desiredIntraNodeVisibilityConfigBuilder_ != null) { - return desiredIntraNodeVisibilityConfigBuilder_.getMessageOrBuilder(); - } else { - return desiredIntraNodeVisibilityConfig_ == null - ? com.google.container.v1.IntraNodeVisibilityConfig.getDefaultInstance() - : desiredIntraNodeVisibilityConfig_; - } - } - /** - * - * - *
-     * The desired config of Intra-node visibility.
-     * 
- * - * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.IntraNodeVisibilityConfig, - com.google.container.v1.IntraNodeVisibilityConfig.Builder, - com.google.container.v1.IntraNodeVisibilityConfigOrBuilder> - getDesiredIntraNodeVisibilityConfigFieldBuilder() { - if (desiredIntraNodeVisibilityConfigBuilder_ == null) { - desiredIntraNodeVisibilityConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.IntraNodeVisibilityConfig, - com.google.container.v1.IntraNodeVisibilityConfig.Builder, - com.google.container.v1.IntraNodeVisibilityConfigOrBuilder>( - getDesiredIntraNodeVisibilityConfig(), getParentForChildren(), isClean()); - desiredIntraNodeVisibilityConfig_ = null; - } - return desiredIntraNodeVisibilityConfigBuilder_; - } - - private com.google.container.v1.DefaultSnatStatus desiredDefaultSnatStatus_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DefaultSnatStatus, - com.google.container.v1.DefaultSnatStatus.Builder, - com.google.container.v1.DefaultSnatStatusOrBuilder> - desiredDefaultSnatStatusBuilder_; - /** - * - * - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - * - * @return Whether the desiredDefaultSnatStatus field is set. - */ - public boolean hasDesiredDefaultSnatStatus() { - return desiredDefaultSnatStatusBuilder_ != null || desiredDefaultSnatStatus_ != null; - } - /** - * - * - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - * - * @return The desiredDefaultSnatStatus. - */ - public com.google.container.v1.DefaultSnatStatus getDesiredDefaultSnatStatus() { - if (desiredDefaultSnatStatusBuilder_ == null) { - return desiredDefaultSnatStatus_ == null - ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() - : desiredDefaultSnatStatus_; - } else { - return desiredDefaultSnatStatusBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public Builder setDesiredDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { - if (desiredDefaultSnatStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredDefaultSnatStatus_ = value; - onChanged(); - } else { - desiredDefaultSnatStatusBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public Builder setDesiredDefaultSnatStatus( - com.google.container.v1.DefaultSnatStatus.Builder builderForValue) { - if (desiredDefaultSnatStatusBuilder_ == null) { - desiredDefaultSnatStatus_ = builderForValue.build(); - onChanged(); - } else { - desiredDefaultSnatStatusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public Builder mergeDesiredDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { - if (desiredDefaultSnatStatusBuilder_ == null) { - if (desiredDefaultSnatStatus_ != null) { - desiredDefaultSnatStatus_ = - com.google.container.v1.DefaultSnatStatus.newBuilder(desiredDefaultSnatStatus_) - .mergeFrom(value) - .buildPartial(); - } else { - desiredDefaultSnatStatus_ = value; - } - onChanged(); - } else { - desiredDefaultSnatStatusBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public Builder clearDesiredDefaultSnatStatus() { - if (desiredDefaultSnatStatusBuilder_ == null) { - desiredDefaultSnatStatus_ = null; - onChanged(); - } else { - desiredDefaultSnatStatus_ = null; - desiredDefaultSnatStatusBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public com.google.container.v1.DefaultSnatStatus.Builder getDesiredDefaultSnatStatusBuilder() { - - onChanged(); - return getDesiredDefaultSnatStatusFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - public com.google.container.v1.DefaultSnatStatusOrBuilder - getDesiredDefaultSnatStatusOrBuilder() { - if (desiredDefaultSnatStatusBuilder_ != null) { - return desiredDefaultSnatStatusBuilder_.getMessageOrBuilder(); - } else { - return desiredDefaultSnatStatus_ == null - ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() - : desiredDefaultSnatStatus_; - } - } - /** - * - * - *
-     * The desired status of whether to disable default sNAT for this cluster.
-     * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DefaultSnatStatus, - com.google.container.v1.DefaultSnatStatus.Builder, - com.google.container.v1.DefaultSnatStatusOrBuilder> - getDesiredDefaultSnatStatusFieldBuilder() { - if (desiredDefaultSnatStatusBuilder_ == null) { - desiredDefaultSnatStatusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DefaultSnatStatus, - com.google.container.v1.DefaultSnatStatus.Builder, - com.google.container.v1.DefaultSnatStatusOrBuilder>( - getDesiredDefaultSnatStatus(), getParentForChildren(), isClean()); - desiredDefaultSnatStatus_ = null; - } - return desiredDefaultSnatStatusBuilder_; - } - - private com.google.container.v1.ReleaseChannel desiredReleaseChannel_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, - com.google.container.v1.ReleaseChannel.Builder, - com.google.container.v1.ReleaseChannelOrBuilder> - desiredReleaseChannelBuilder_; - /** - * - * - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - * - * @return Whether the desiredReleaseChannel field is set. - */ - public boolean hasDesiredReleaseChannel() { - return desiredReleaseChannelBuilder_ != null || desiredReleaseChannel_ != null; - } - /** - * - * - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - * - * @return The desiredReleaseChannel. - */ - public com.google.container.v1.ReleaseChannel getDesiredReleaseChannel() { - if (desiredReleaseChannelBuilder_ == null) { - return desiredReleaseChannel_ == null - ? com.google.container.v1.ReleaseChannel.getDefaultInstance() - : desiredReleaseChannel_; - } else { - return desiredReleaseChannelBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - public Builder setDesiredReleaseChannel(com.google.container.v1.ReleaseChannel value) { - if (desiredReleaseChannelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - desiredReleaseChannel_ = value; - onChanged(); - } else { - desiredReleaseChannelBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - public Builder setDesiredReleaseChannel( - com.google.container.v1.ReleaseChannel.Builder builderForValue) { - if (desiredReleaseChannelBuilder_ == null) { - desiredReleaseChannel_ = builderForValue.build(); - onChanged(); - } else { - desiredReleaseChannelBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - public Builder mergeDesiredReleaseChannel(com.google.container.v1.ReleaseChannel value) { - if (desiredReleaseChannelBuilder_ == null) { - if (desiredReleaseChannel_ != null) { - desiredReleaseChannel_ = - com.google.container.v1.ReleaseChannel.newBuilder(desiredReleaseChannel_) - .mergeFrom(value) - .buildPartial(); - } else { - desiredReleaseChannel_ = value; - } - onChanged(); - } else { - desiredReleaseChannelBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - public Builder clearDesiredReleaseChannel() { - if (desiredReleaseChannelBuilder_ == null) { - desiredReleaseChannel_ = null; - onChanged(); - } else { - desiredReleaseChannel_ = null; - desiredReleaseChannelBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - public com.google.container.v1.ReleaseChannel.Builder getDesiredReleaseChannelBuilder() { - - onChanged(); - return getDesiredReleaseChannelFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - public com.google.container.v1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder() { - if (desiredReleaseChannelBuilder_ != null) { - return desiredReleaseChannelBuilder_.getMessageOrBuilder(); - } else { - return desiredReleaseChannel_ == null - ? com.google.container.v1.ReleaseChannel.getDefaultInstance() - : desiredReleaseChannel_; - } - } - /** - * - * - *
-     * The desired release channel configuration.
-     * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, - com.google.container.v1.ReleaseChannel.Builder, - com.google.container.v1.ReleaseChannelOrBuilder> - getDesiredReleaseChannelFieldBuilder() { - if (desiredReleaseChannelBuilder_ == null) { - desiredReleaseChannelBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReleaseChannel, - com.google.container.v1.ReleaseChannel.Builder, - com.google.container.v1.ReleaseChannelOrBuilder>( - getDesiredReleaseChannel(), getParentForChildren(), isClean()); - desiredReleaseChannel_ = null; - } - return desiredReleaseChannelBuilder_; - } - - private java.lang.Object desiredMasterVersion_ = ""; - /** - * - * - *
-     * The Kubernetes version to change the master to.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string desired_master_version = 100; - * - * @return The desiredMasterVersion. - */ - public java.lang.String getDesiredMasterVersion() { - java.lang.Object ref = desiredMasterVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - desiredMasterVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The Kubernetes version to change the master to.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string desired_master_version = 100; - * - * @return The bytes for desiredMasterVersion. - */ - public com.google.protobuf.ByteString getDesiredMasterVersionBytes() { - java.lang.Object ref = desiredMasterVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - desiredMasterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The Kubernetes version to change the master to.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string desired_master_version = 100; - * - * @param value The desiredMasterVersion to set. - * @return This builder for chaining. - */ - public Builder setDesiredMasterVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - desiredMasterVersion_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The Kubernetes version to change the master to.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string desired_master_version = 100; - * - * @return This builder for chaining. - */ - public Builder clearDesiredMasterVersion() { - - desiredMasterVersion_ = getDefaultInstance().getDesiredMasterVersion(); - onChanged(); - return this; - } - /** - * - * - *
-     * The Kubernetes version to change the master to.
-     * Users may specify either explicit versions offered by
-     * Kubernetes Engine or version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string desired_master_version = 100; - * - * @param value The bytes for desiredMasterVersion to set. - * @return This builder for chaining. - */ - public Builder setDesiredMasterVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - desiredMasterVersion_ = 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.container.v1.ClusterUpdate) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ClusterUpdate) - private static final com.google.container.v1.ClusterUpdate DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ClusterUpdate(); - } - - public static com.google.container.v1.ClusterUpdate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterUpdate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterUpdate(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.container.v1.ClusterUpdate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java deleted file mode 100644 index 0056d05a..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java +++ /dev/null @@ -1,832 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ClusterUpdateOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ClusterUpdate) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string desired_node_version = 4; - * - * @return The desiredNodeVersion. - */ - java.lang.String getDesiredNodeVersion(); - /** - * - * - *
-   * The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string desired_node_version = 4; - * - * @return The bytes for desiredNodeVersion. - */ - com.google.protobuf.ByteString getDesiredNodeVersionBytes(); - - /** - * - * - *
-   * The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string desired_monitoring_service = 5; - * - * @return The desiredMonitoringService. - */ - java.lang.String getDesiredMonitoringService(); - /** - * - * - *
-   * The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string desired_monitoring_service = 5; - * - * @return The bytes for desiredMonitoringService. - */ - com.google.protobuf.ByteString getDesiredMonitoringServiceBytes(); - - /** - * - * - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - * - * @return Whether the desiredAddonsConfig field is set. - */ - boolean hasDesiredAddonsConfig(); - /** - * - * - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - * - * @return The desiredAddonsConfig. - */ - com.google.container.v1.AddonsConfig getDesiredAddonsConfig(); - /** - * - * - *
-   * Configurations for the various addons available to run in the cluster.
-   * 
- * - * .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - com.google.container.v1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder(); - - /** - * - * - *
-   * The node pool to be upgraded. This field is mandatory if
-   * "desired_node_version", "desired_image_family" or
-   * "desired_node_pool_autoscaling" is specified and there is more than one
-   * node pool on the cluster.
-   * 
- * - * string desired_node_pool_id = 7; - * - * @return The desiredNodePoolId. - */ - java.lang.String getDesiredNodePoolId(); - /** - * - * - *
-   * The node pool to be upgraded. This field is mandatory if
-   * "desired_node_version", "desired_image_family" or
-   * "desired_node_pool_autoscaling" is specified and there is more than one
-   * node pool on the cluster.
-   * 
- * - * string desired_node_pool_id = 7; - * - * @return The bytes for desiredNodePoolId. - */ - com.google.protobuf.ByteString getDesiredNodePoolIdBytes(); - - /** - * - * - *
-   * The desired image type for the node pool.
-   * NOTE: Set the "desired_node_pool" field as well.
-   * 
- * - * string desired_image_type = 8; - * - * @return The desiredImageType. - */ - java.lang.String getDesiredImageType(); - /** - * - * - *
-   * The desired image type for the node pool.
-   * NOTE: Set the "desired_node_pool" field as well.
-   * 
- * - * string desired_image_type = 8; - * - * @return The bytes for desiredImageType. - */ - com.google.protobuf.ByteString getDesiredImageTypeBytes(); - - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - * - * @return Whether the desiredDatabaseEncryption field is set. - */ - boolean hasDesiredDatabaseEncryption(); - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - * - * @return The desiredDatabaseEncryption. - */ - com.google.container.v1.DatabaseEncryption getDesiredDatabaseEncryption(); - /** - * - * - *
-   * Configuration of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - com.google.container.v1.DatabaseEncryptionOrBuilder getDesiredDatabaseEncryptionOrBuilder(); - - /** - * - * - *
-   * Configuration for Workload Identity.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - * @return Whether the desiredWorkloadIdentityConfig field is set. - */ - boolean hasDesiredWorkloadIdentityConfig(); - /** - * - * - *
-   * Configuration for Workload Identity.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * - * @return The desiredWorkloadIdentityConfig. - */ - com.google.container.v1.WorkloadIdentityConfig getDesiredWorkloadIdentityConfig(); - /** - * - * - *
-   * Configuration for Workload Identity.
-   * 
- * - * .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - com.google.container.v1.WorkloadIdentityConfigOrBuilder - getDesiredWorkloadIdentityConfigOrBuilder(); - - /** - * - * - *
-   * Configuration for Shielded Nodes.
-   * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * - * @return Whether the desiredShieldedNodes field is set. - */ - boolean hasDesiredShieldedNodes(); - /** - * - * - *
-   * Configuration for Shielded Nodes.
-   * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * - * @return The desiredShieldedNodes. - */ - com.google.container.v1.ShieldedNodes getDesiredShieldedNodes(); - /** - * - * - *
-   * Configuration for Shielded Nodes.
-   * 
- * - * .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - com.google.container.v1.ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder(); - - /** - * - * - *
-   * Autoscaler configuration for the node pool specified in
-   * desired_node_pool_id. If there is only one pool in the
-   * cluster and desired_node_pool_id is not provided then
-   * the change applies to that single node pool.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * - * @return Whether the desiredNodePoolAutoscaling field is set. - */ - boolean hasDesiredNodePoolAutoscaling(); - /** - * - * - *
-   * Autoscaler configuration for the node pool specified in
-   * desired_node_pool_id. If there is only one pool in the
-   * cluster and desired_node_pool_id is not provided then
-   * the change applies to that single node pool.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * - * @return The desiredNodePoolAutoscaling. - */ - com.google.container.v1.NodePoolAutoscaling getDesiredNodePoolAutoscaling(); - /** - * - * - *
-   * Autoscaler configuration for the node pool specified in
-   * desired_node_pool_id. If there is only one pool in the
-   * cluster and desired_node_pool_id is not provided then
-   * the change applies to that single node pool.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - com.google.container.v1.NodePoolAutoscalingOrBuilder getDesiredNodePoolAutoscalingOrBuilder(); - - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This list must always include the cluster's primary zone.
-   * Warning: changing cluster locations will update the locations of all node
-   * pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string desired_locations = 10; - * - * @return A list containing the desiredLocations. - */ - java.util.List getDesiredLocationsList(); - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This list must always include the cluster's primary zone.
-   * Warning: changing cluster locations will update the locations of all node
-   * pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string desired_locations = 10; - * - * @return The count of desiredLocations. - */ - int getDesiredLocationsCount(); - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This list must always include the cluster's primary zone.
-   * Warning: changing cluster locations will update the locations of all node
-   * pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string desired_locations = 10; - * - * @param index The index of the element to return. - * @return The desiredLocations at the given index. - */ - java.lang.String getDesiredLocations(int index); - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located.
-   * This list must always include the cluster's primary zone.
-   * Warning: changing cluster locations will update the locations of all node
-   * pools and will result in nodes being added and/or removed.
-   * 
- * - * repeated string desired_locations = 10; - * - * @param index The index of the value to return. - * @return The bytes of the desiredLocations at the given index. - */ - com.google.protobuf.ByteString getDesiredLocationsBytes(int index); - - /** - * - * - *
-   * The desired configuration options for master authorized networks feature.
-   * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - * - * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. - */ - boolean hasDesiredMasterAuthorizedNetworksConfig(); - /** - * - * - *
-   * The desired configuration options for master authorized networks feature.
-   * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - * - * @return The desiredMasterAuthorizedNetworksConfig. - */ - com.google.container.v1.MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig(); - /** - * - * - *
-   * The desired configuration options for master authorized networks feature.
-   * 
- * - * - * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - * - */ - com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder - getDesiredMasterAuthorizedNetworksConfigOrBuilder(); - - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * - * @return Whether the desiredClusterAutoscaling field is set. - */ - boolean hasDesiredClusterAutoscaling(); - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * - * @return The desiredClusterAutoscaling. - */ - com.google.container.v1.ClusterAutoscaling getDesiredClusterAutoscaling(); - /** - * - * - *
-   * Cluster-level autoscaling configuration.
-   * 
- * - * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - com.google.container.v1.ClusterAutoscalingOrBuilder getDesiredClusterAutoscalingOrBuilder(); - - /** - * - * - *
-   * The desired configuration options for the Binary Authorization feature.
-   * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - * - * @return Whether the desiredBinaryAuthorization field is set. - */ - boolean hasDesiredBinaryAuthorization(); - /** - * - * - *
-   * The desired configuration options for the Binary Authorization feature.
-   * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - * - * @return The desiredBinaryAuthorization. - */ - com.google.container.v1.BinaryAuthorization getDesiredBinaryAuthorization(); - /** - * - * - *
-   * The desired configuration options for the Binary Authorization feature.
-   * 
- * - * .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - com.google.container.v1.BinaryAuthorizationOrBuilder getDesiredBinaryAuthorizationOrBuilder(); - - /** - * - * - *
-   * The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string desired_logging_service = 19; - * - * @return The desiredLoggingService. - */ - java.lang.String getDesiredLoggingService(); - /** - * - * - *
-   * The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string desired_logging_service = 19; - * - * @return The bytes for desiredLoggingService. - */ - com.google.protobuf.ByteString getDesiredLoggingServiceBytes(); - - /** - * - * - *
-   * The desired configuration for exporting resource usage.
-   * 
- * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - * - * @return Whether the desiredResourceUsageExportConfig field is set. - */ - boolean hasDesiredResourceUsageExportConfig(); - /** - * - * - *
-   * The desired configuration for exporting resource usage.
-   * 
- * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - * - * @return The desiredResourceUsageExportConfig. - */ - com.google.container.v1.ResourceUsageExportConfig getDesiredResourceUsageExportConfig(); - /** - * - * - *
-   * The desired configuration for exporting resource usage.
-   * 
- * - * .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * - */ - com.google.container.v1.ResourceUsageExportConfigOrBuilder - getDesiredResourceUsageExportConfigOrBuilder(); - - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - * @return Whether the desiredVerticalPodAutoscaling field is set. - */ - boolean hasDesiredVerticalPodAutoscaling(); - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * - * @return The desiredVerticalPodAutoscaling. - */ - com.google.container.v1.VerticalPodAutoscaling getDesiredVerticalPodAutoscaling(); - /** - * - * - *
-   * Cluster-level Vertical Pod Autoscaling configuration.
-   * 
- * - * .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - */ - com.google.container.v1.VerticalPodAutoscalingOrBuilder - getDesiredVerticalPodAutoscalingOrBuilder(); - - /** - * - * - *
-   * The desired private cluster configuration.
-   * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - * - * @return Whether the desiredPrivateClusterConfig field is set. - */ - boolean hasDesiredPrivateClusterConfig(); - /** - * - * - *
-   * The desired private cluster configuration.
-   * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - * - * @return The desiredPrivateClusterConfig. - */ - com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConfig(); - /** - * - * - *
-   * The desired private cluster configuration.
-   * 
- * - * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; - */ - com.google.container.v1.PrivateClusterConfigOrBuilder getDesiredPrivateClusterConfigOrBuilder(); - - /** - * - * - *
-   * The desired config of Intra-node visibility.
-   * 
- * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - * - * @return Whether the desiredIntraNodeVisibilityConfig field is set. - */ - boolean hasDesiredIntraNodeVisibilityConfig(); - /** - * - * - *
-   * The desired config of Intra-node visibility.
-   * 
- * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - * - * @return The desiredIntraNodeVisibilityConfig. - */ - com.google.container.v1.IntraNodeVisibilityConfig getDesiredIntraNodeVisibilityConfig(); - /** - * - * - *
-   * The desired config of Intra-node visibility.
-   * 
- * - * .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * - */ - com.google.container.v1.IntraNodeVisibilityConfigOrBuilder - getDesiredIntraNodeVisibilityConfigOrBuilder(); - - /** - * - * - *
-   * The desired status of whether to disable default sNAT for this cluster.
-   * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - * - * @return Whether the desiredDefaultSnatStatus field is set. - */ - boolean hasDesiredDefaultSnatStatus(); - /** - * - * - *
-   * The desired status of whether to disable default sNAT for this cluster.
-   * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - * - * @return The desiredDefaultSnatStatus. - */ - com.google.container.v1.DefaultSnatStatus getDesiredDefaultSnatStatus(); - /** - * - * - *
-   * The desired status of whether to disable default sNAT for this cluster.
-   * 
- * - * .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - com.google.container.v1.DefaultSnatStatusOrBuilder getDesiredDefaultSnatStatusOrBuilder(); - - /** - * - * - *
-   * The desired release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - * - * @return Whether the desiredReleaseChannel field is set. - */ - boolean hasDesiredReleaseChannel(); - /** - * - * - *
-   * The desired release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - * - * @return The desiredReleaseChannel. - */ - com.google.container.v1.ReleaseChannel getDesiredReleaseChannel(); - /** - * - * - *
-   * The desired release channel configuration.
-   * 
- * - * .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - com.google.container.v1.ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder(); - - /** - * - * - *
-   * The Kubernetes version to change the master to.
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the default Kubernetes version
-   * 
- * - * string desired_master_version = 100; - * - * @return The desiredMasterVersion. - */ - java.lang.String getDesiredMasterVersion(); - /** - * - * - *
-   * The Kubernetes version to change the master to.
-   * Users may specify either explicit versions offered by
-   * Kubernetes Engine or version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the default Kubernetes version
-   * 
- * - * string desired_master_version = 100; - * - * @return The bytes for desiredMasterVersion. - */ - com.google.protobuf.ByteString getDesiredMasterVersionBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java deleted file mode 100644 index ab376020..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * CompleteIPRotationRequest moves the cluster master back into single-IP mode.
- * 
- * - * Protobuf type {@code google.container.v1.CompleteIPRotationRequest} - */ -public final class CompleteIPRotationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.CompleteIPRotationRequest) - CompleteIPRotationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CompleteIPRotationRequest.newBuilder() to construct. - private CompleteIPRotationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CompleteIPRotationRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CompleteIPRotationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CompleteIPRotationRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 58: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CompleteIPRotationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CompleteIPRotationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CompleteIPRotationRequest.class, - com.google.container.v1.CompleteIPRotationRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to complete IP
-   * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to complete IP
-   * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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.container.v1.CompleteIPRotationRequest)) { - return super.equals(obj); - } - com.google.container.v1.CompleteIPRotationRequest other = - (com.google.container.v1.CompleteIPRotationRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().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.container.v1.CompleteIPRotationRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CompleteIPRotationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CompleteIPRotationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CompleteIPRotationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CompleteIPRotationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CompleteIPRotationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CompleteIPRotationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.CompleteIPRotationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.CompleteIPRotationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.CompleteIPRotationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.CompleteIPRotationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.CompleteIPRotationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.CompleteIPRotationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * CompleteIPRotationRequest moves the cluster master back into single-IP mode.
-   * 
- * - * Protobuf type {@code google.container.v1.CompleteIPRotationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.CompleteIPRotationRequest) - com.google.container.v1.CompleteIPRotationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CompleteIPRotationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CompleteIPRotationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CompleteIPRotationRequest.class, - com.google.container.v1.CompleteIPRotationRequest.Builder.class); - } - - // Construct using com.google.container.v1.CompleteIPRotationRequest.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CompleteIPRotationRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.CompleteIPRotationRequest getDefaultInstanceForType() { - return com.google.container.v1.CompleteIPRotationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.CompleteIPRotationRequest build() { - com.google.container.v1.CompleteIPRotationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.CompleteIPRotationRequest buildPartial() { - com.google.container.v1.CompleteIPRotationRequest result = - new com.google.container.v1.CompleteIPRotationRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - 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.container.v1.CompleteIPRotationRequest) { - return mergeFrom((com.google.container.v1.CompleteIPRotationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.CompleteIPRotationRequest other) { - if (other == com.google.container.v1.CompleteIPRotationRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - 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.container.v1.CompleteIPRotationRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.container.v1.CompleteIPRotationRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to complete IP
-     * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to complete IP
-     * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to complete IP
-     * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to complete IP
-     * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to complete IP
-     * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * - * @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.container.v1.CompleteIPRotationRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.CompleteIPRotationRequest) - private static final com.google.container.v1.CompleteIPRotationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.CompleteIPRotationRequest(); - } - - public static com.google.container.v1.CompleteIPRotationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompleteIPRotationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CompleteIPRotationRequest(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.container.v1.CompleteIPRotationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java deleted file mode 100644 index a9e86ff2..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface CompleteIPRotationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.CompleteIPRotationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to complete IP
-   * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to complete IP
-   * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfig.java deleted file mode 100644 index f3c76da7..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfig.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Configuration options for the Config Connector add-on.
- * 
- * - * Protobuf type {@code google.container.v1.ConfigConnectorConfig} - */ -public final class ConfigConnectorConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ConfigConnectorConfig) - ConfigConnectorConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConfigConnectorConfig.newBuilder() to construct. - private ConfigConnectorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ConfigConnectorConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConfigConnectorConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ConfigConnectorConfig( - 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: - { - enabled_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ConfigConnectorConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ConfigConnectorConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ConfigConnectorConfig.class, - com.google.container.v1.ConfigConnectorConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - * - * - *
-   * Whether Cloud Connector is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); - } - 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.container.v1.ConfigConnectorConfig)) { - return super.equals(obj); - } - com.google.container.v1.ConfigConnectorConfig other = - (com.google.container.v1.ConfigConnectorConfig) obj; - - if (getEnabled() != other.getEnabled()) 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) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ConfigConnectorConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ConfigConnectorConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ConfigConnectorConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ConfigConnectorConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ConfigConnectorConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ConfigConnectorConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ConfigConnectorConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ConfigConnectorConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ConfigConnectorConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ConfigConnectorConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ConfigConnectorConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ConfigConnectorConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ConfigConnectorConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 options for the Config Connector add-on.
-   * 
- * - * Protobuf type {@code google.container.v1.ConfigConnectorConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ConfigConnectorConfig) - com.google.container.v1.ConfigConnectorConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ConfigConnectorConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ConfigConnectorConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ConfigConnectorConfig.class, - com.google.container.v1.ConfigConnectorConfig.Builder.class); - } - - // Construct using com.google.container.v1.ConfigConnectorConfig.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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ConfigConnectorConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ConfigConnectorConfig getDefaultInstanceForType() { - return com.google.container.v1.ConfigConnectorConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ConfigConnectorConfig build() { - com.google.container.v1.ConfigConnectorConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ConfigConnectorConfig buildPartial() { - com.google.container.v1.ConfigConnectorConfig result = - new com.google.container.v1.ConfigConnectorConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ConfigConnectorConfig) { - return mergeFrom((com.google.container.v1.ConfigConnectorConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ConfigConnectorConfig other) { - if (other == com.google.container.v1.ConfigConnectorConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - 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.container.v1.ConfigConnectorConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.ConfigConnectorConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean enabled_; - /** - * - * - *
-     * Whether Cloud Connector is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether Cloud Connector is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether Cloud Connector is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = 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.container.v1.ConfigConnectorConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ConfigConnectorConfig) - private static final com.google.container.v1.ConfigConnectorConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ConfigConnectorConfig(); - } - - public static com.google.container.v1.ConfigConnectorConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigConnectorConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigConnectorConfig(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.container.v1.ConfigConnectorConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfigOrBuilder.java deleted file mode 100644 index c954a440..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfigOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ConfigConnectorConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ConfigConnectorConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether Cloud Connector is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java deleted file mode 100644 index f19ecf9e..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * CreateClusterRequest creates a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.CreateClusterRequest} - */ -public final class CreateClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.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_ = ""; - zone_ = ""; - parent_ = ""; - } - - @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: - { - java.lang.String s = input.readStringRequireUtf8(); - - zone_ = s; - break; - } - case 26: - { - com.google.container.v1.Cluster.Builder subBuilder = null; - if (cluster_ != null) { - subBuilder = cluster_.toBuilder(); - } - cluster_ = - input.readMessage(com.google.container.v1.Cluster.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cluster_); - cluster_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CreateClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CreateClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CreateClusterRequest.class, - com.google.container.v1.CreateClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the parent
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the parent
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_FIELD_NUMBER = 3; - private com.google.container.v1.Cluster cluster_; - /** - * - * - *
-   * Required. A [cluster
-   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-   * 
- * - * .google.container.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. A [cluster
-   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-   * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The cluster. - */ - @java.lang.Override - public com.google.container.v1.Cluster getCluster() { - return cluster_ == null ? com.google.container.v1.Cluster.getDefaultInstance() : cluster_; - } - /** - * - * - *
-   * Required. A [cluster
-   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-   * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.container.v1.ClusterOrBuilder getClusterOrBuilder() { - return getCluster(); - } - - public static final int PARENT_FIELD_NUMBER = 5; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * The parent (project and location) where the cluster will be created.
-   * Specified in the format `projects/*/locations/*`.
-   * 
- * - * string parent = 5; - * - * @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; - } - } - /** - * - * - *
-   * The parent (project and location) where the cluster will be created.
-   * Specified in the format `projects/*/locations/*`.
-   * 
- * - * string parent = 5; - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (cluster_ != null) { - output.writeMessage(3, getCluster()); - } - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (cluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCluster()); - } - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); - } - 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.container.v1.CreateClusterRequest)) { - return super.equals(obj); - } - com.google.container.v1.CreateClusterRequest other = - (com.google.container.v1.CreateClusterRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (hasCluster() != other.hasCluster()) return false; - if (hasCluster()) { - if (!getCluster().equals(other.getCluster())) return false; - } - if (!getParent().equals(other.getParent())) 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) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - if (hasCluster()) { - hash = (37 * hash) + CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getCluster().hashCode(); - } - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.CreateClusterRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.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.container.v1.CreateClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.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.container.v1.CreateClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CreateClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CreateClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.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.container.v1.CreateClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.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.container.v1.CreateClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.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.container.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; - } - /** - * - * - *
-   * CreateClusterRequest creates a cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.CreateClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.CreateClusterRequest) - com.google.container.v1.CreateClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CreateClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CreateClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CreateClusterRequest.class, - com.google.container.v1.CreateClusterRequest.Builder.class); - } - - // Construct using com.google.container.v1.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_ = ""; - - zone_ = ""; - - if (clusterBuilder_ == null) { - cluster_ = null; - } else { - cluster_ = null; - clusterBuilder_ = null; - } - parent_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CreateClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.CreateClusterRequest getDefaultInstanceForType() { - return com.google.container.v1.CreateClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.CreateClusterRequest build() { - com.google.container.v1.CreateClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.CreateClusterRequest buildPartial() { - com.google.container.v1.CreateClusterRequest result = - new com.google.container.v1.CreateClusterRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - if (clusterBuilder_ == null) { - result.cluster_ = cluster_; - } else { - result.cluster_ = clusterBuilder_.build(); - } - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.CreateClusterRequest) { - return mergeFrom((com.google.container.v1.CreateClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.CreateClusterRequest other) { - if (other == com.google.container.v1.CreateClusterRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (other.hasCluster()) { - mergeCluster(other.getCluster()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - 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.container.v1.CreateClusterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.CreateClusterRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.Cluster cluster_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.Cluster, - com.google.container.v1.Cluster.Builder, - com.google.container.v1.ClusterOrBuilder> - clusterBuilder_; - /** - * - * - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-     * 
- * - * .google.container.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. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-     * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The cluster. - */ - public com.google.container.v1.Cluster getCluster() { - if (clusterBuilder_ == null) { - return cluster_ == null ? com.google.container.v1.Cluster.getDefaultInstance() : cluster_; - } else { - return clusterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-     * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setCluster(com.google.container.v1.Cluster value) { - if (clusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - cluster_ = value; - onChanged(); - } else { - clusterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-     * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setCluster(com.google.container.v1.Cluster.Builder builderForValue) { - if (clusterBuilder_ == null) { - cluster_ = builderForValue.build(); - onChanged(); - } else { - clusterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-     * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeCluster(com.google.container.v1.Cluster value) { - if (clusterBuilder_ == null) { - if (cluster_ != null) { - cluster_ = - com.google.container.v1.Cluster.newBuilder(cluster_).mergeFrom(value).buildPartial(); - } else { - cluster_ = value; - } - onChanged(); - } else { - clusterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-     * 
- * - * .google.container.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. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-     * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.Cluster.Builder getClusterBuilder() { - - onChanged(); - return getClusterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-     * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.ClusterOrBuilder getClusterOrBuilder() { - if (clusterBuilder_ != null) { - return clusterBuilder_.getMessageOrBuilder(); - } else { - return cluster_ == null ? com.google.container.v1.Cluster.getDefaultInstance() : cluster_; - } - } - /** - * - * - *
-     * Required. A [cluster
-     * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-     * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.Cluster, - com.google.container.v1.Cluster.Builder, - com.google.container.v1.ClusterOrBuilder> - getClusterFieldBuilder() { - if (clusterBuilder_ == null) { - clusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.Cluster, - com.google.container.v1.Cluster.Builder, - com.google.container.v1.ClusterOrBuilder>( - getCluster(), getParentForChildren(), isClean()); - cluster_ = null; - } - return clusterBuilder_; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * The parent (project and location) where the cluster will be created.
-     * Specified in the format `projects/*/locations/*`.
-     * 
- * - * string parent = 5; - * - * @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; - } - } - /** - * - * - *
-     * The parent (project and location) where the cluster will be created.
-     * Specified in the format `projects/*/locations/*`.
-     * 
- * - * string parent = 5; - * - * @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; - } - } - /** - * - * - *
-     * The parent (project and location) where the cluster will be created.
-     * Specified in the format `projects/*/locations/*`.
-     * 
- * - * string parent = 5; - * - * @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; - } - /** - * - * - *
-     * The parent (project and location) where the cluster will be created.
-     * Specified in the format `projects/*/locations/*`.
-     * 
- * - * string parent = 5; - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * The parent (project and location) where the cluster will be created.
-     * Specified in the format `projects/*/locations/*`.
-     * 
- * - * string parent = 5; - * - * @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; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.CreateClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.CreateClusterRequest) - private static final com.google.container.v1.CreateClusterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.CreateClusterRequest(); - } - - public static com.google.container.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 { - 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.container.v1.CreateClusterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java deleted file mode 100644 index 986a56aa..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface CreateClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.CreateClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the parent
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the parent
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Required. A [cluster
-   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-   * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the cluster field is set. - */ - boolean hasCluster(); - /** - * - * - *
-   * Required. A [cluster
-   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-   * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The cluster. - */ - com.google.container.v1.Cluster getCluster(); - /** - * - * - *
-   * Required. A [cluster
-   * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
-   * 
- * - * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.container.v1.ClusterOrBuilder getClusterOrBuilder(); - - /** - * - * - *
-   * The parent (project and location) where the cluster will be created.
-   * Specified in the format `projects/*/locations/*`.
-   * 
- * - * string parent = 5; - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * The parent (project and location) where the cluster will be created.
-   * Specified in the format `projects/*/locations/*`.
-   * 
- * - * string parent = 5; - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java deleted file mode 100644 index 040b32cb..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java +++ /dev/null @@ -1,1534 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * CreateNodePoolRequest creates a node pool for a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.CreateNodePoolRequest} - */ -public final class CreateNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.CreateNodePoolRequest) - CreateNodePoolRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateNodePoolRequest.newBuilder() to construct. - private CreateNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateNodePoolRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateNodePoolRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateNodePoolRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 34: - { - com.google.container.v1.NodePool.Builder subBuilder = null; - if (nodePool_ != null) { - subBuilder = nodePool_.toBuilder(); - } - nodePool_ = - input.readMessage(com.google.container.v1.NodePool.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nodePool_); - nodePool_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CreateNodePoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CreateNodePoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CreateNodePoolRequest.class, - com.google.container.v1.CreateNodePoolRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the parent
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the parent
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_FIELD_NUMBER = 4; - private com.google.container.v1.NodePool nodePool_; - /** - * - * - *
-   * Required. The node pool to create.
-   * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the nodePool field is set. - */ - @java.lang.Override - public boolean hasNodePool() { - return nodePool_ != null; - } - /** - * - * - *
-   * Required. The node pool to create.
-   * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The nodePool. - */ - @java.lang.Override - public com.google.container.v1.NodePool getNodePool() { - return nodePool_ == null ? com.google.container.v1.NodePool.getDefaultInstance() : nodePool_; - } - /** - * - * - *
-   * Required. The node pool to create.
-   * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.container.v1.NodePoolOrBuilder getNodePoolOrBuilder() { - return getNodePool(); - } - - public static final int PARENT_FIELD_NUMBER = 6; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * The parent (project, location, cluster id) where the node pool will be
-   * created. Specified in the format
-   * `projects/*/locations/*/clusters/*`.
-   * 
- * - * string parent = 6; - * - * @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; - } - } - /** - * - * - *
-   * The parent (project, location, cluster id) where the node pool will be
-   * created. Specified in the format
-   * `projects/*/locations/*/clusters/*`.
-   * 
- * - * string parent = 6; - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (nodePool_ != null) { - output.writeMessage(4, getNodePool()); - } - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, parent_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (nodePool_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNodePool()); - } - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, parent_); - } - 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.container.v1.CreateNodePoolRequest)) { - return super.equals(obj); - } - com.google.container.v1.CreateNodePoolRequest other = - (com.google.container.v1.CreateNodePoolRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - if (hasNodePool() != other.hasNodePool()) return false; - if (hasNodePool()) { - if (!getNodePool().equals(other.getNodePool())) return false; - } - if (!getParent().equals(other.getParent())) 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) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - if (hasNodePool()) { - hash = (37 * hash) + NODE_POOL_FIELD_NUMBER; - hash = (53 * hash) + getNodePool().hashCode(); - } - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.CreateNodePoolRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CreateNodePoolRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CreateNodePoolRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CreateNodePoolRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CreateNodePoolRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.CreateNodePoolRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.CreateNodePoolRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.CreateNodePoolRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.CreateNodePoolRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.CreateNodePoolRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.CreateNodePoolRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.CreateNodePoolRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.CreateNodePoolRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * CreateNodePoolRequest creates a node pool for a cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.CreateNodePoolRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.CreateNodePoolRequest) - com.google.container.v1.CreateNodePoolRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CreateNodePoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CreateNodePoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.CreateNodePoolRequest.class, - com.google.container.v1.CreateNodePoolRequest.Builder.class); - } - - // Construct using com.google.container.v1.CreateNodePoolRequest.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - if (nodePoolBuilder_ == null) { - nodePool_ = null; - } else { - nodePool_ = null; - nodePoolBuilder_ = null; - } - parent_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_CreateNodePoolRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.CreateNodePoolRequest getDefaultInstanceForType() { - return com.google.container.v1.CreateNodePoolRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.CreateNodePoolRequest build() { - com.google.container.v1.CreateNodePoolRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.CreateNodePoolRequest buildPartial() { - com.google.container.v1.CreateNodePoolRequest result = - new com.google.container.v1.CreateNodePoolRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - if (nodePoolBuilder_ == null) { - result.nodePool_ = nodePool_; - } else { - result.nodePool_ = nodePoolBuilder_.build(); - } - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.CreateNodePoolRequest) { - return mergeFrom((com.google.container.v1.CreateNodePoolRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.CreateNodePoolRequest other) { - if (other == com.google.container.v1.CreateNodePoolRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (other.hasNodePool()) { - mergeNodePool(other.getNodePool()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - 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.container.v1.CreateNodePoolRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.CreateNodePoolRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.NodePool nodePool_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool, - com.google.container.v1.NodePool.Builder, - com.google.container.v1.NodePoolOrBuilder> - nodePoolBuilder_; - /** - * - * - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the nodePool field is set. - */ - public boolean hasNodePool() { - return nodePoolBuilder_ != null || nodePool_ != null; - } - /** - * - * - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The nodePool. - */ - public com.google.container.v1.NodePool getNodePool() { - if (nodePoolBuilder_ == null) { - return nodePool_ == null - ? com.google.container.v1.NodePool.getDefaultInstance() - : nodePool_; - } else { - return nodePoolBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setNodePool(com.google.container.v1.NodePool value) { - if (nodePoolBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodePool_ = value; - onChanged(); - } else { - nodePoolBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setNodePool(com.google.container.v1.NodePool.Builder builderForValue) { - if (nodePoolBuilder_ == null) { - nodePool_ = builderForValue.build(); - onChanged(); - } else { - nodePoolBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeNodePool(com.google.container.v1.NodePool value) { - if (nodePoolBuilder_ == null) { - if (nodePool_ != null) { - nodePool_ = - com.google.container.v1.NodePool.newBuilder(nodePool_) - .mergeFrom(value) - .buildPartial(); - } else { - nodePool_ = value; - } - onChanged(); - } else { - nodePoolBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearNodePool() { - if (nodePoolBuilder_ == null) { - nodePool_ = null; - onChanged(); - } else { - nodePool_ = null; - nodePoolBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.NodePool.Builder getNodePoolBuilder() { - - onChanged(); - return getNodePoolFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.NodePoolOrBuilder getNodePoolOrBuilder() { - if (nodePoolBuilder_ != null) { - return nodePoolBuilder_.getMessageOrBuilder(); - } else { - return nodePool_ == null - ? com.google.container.v1.NodePool.getDefaultInstance() - : nodePool_; - } - } - /** - * - * - *
-     * Required. The node pool to create.
-     * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool, - com.google.container.v1.NodePool.Builder, - com.google.container.v1.NodePoolOrBuilder> - getNodePoolFieldBuilder() { - if (nodePoolBuilder_ == null) { - nodePoolBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool, - com.google.container.v1.NodePool.Builder, - com.google.container.v1.NodePoolOrBuilder>( - getNodePool(), getParentForChildren(), isClean()); - nodePool_ = null; - } - return nodePoolBuilder_; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * The parent (project, location, cluster id) where the node pool will be
-     * created. Specified in the format
-     * `projects/*/locations/*/clusters/*`.
-     * 
- * - * string parent = 6; - * - * @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; - } - } - /** - * - * - *
-     * The parent (project, location, cluster id) where the node pool will be
-     * created. Specified in the format
-     * `projects/*/locations/*/clusters/*`.
-     * 
- * - * string parent = 6; - * - * @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; - } - } - /** - * - * - *
-     * The parent (project, location, cluster id) where the node pool will be
-     * created. Specified in the format
-     * `projects/*/locations/*/clusters/*`.
-     * 
- * - * string parent = 6; - * - * @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; - } - /** - * - * - *
-     * The parent (project, location, cluster id) where the node pool will be
-     * created. Specified in the format
-     * `projects/*/locations/*/clusters/*`.
-     * 
- * - * string parent = 6; - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * The parent (project, location, cluster id) where the node pool will be
-     * created. Specified in the format
-     * `projects/*/locations/*/clusters/*`.
-     * 
- * - * string parent = 6; - * - * @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; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.CreateNodePoolRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.CreateNodePoolRequest) - private static final com.google.container.v1.CreateNodePoolRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.CreateNodePoolRequest(); - } - - public static com.google.container.v1.CreateNodePoolRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateNodePoolRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateNodePoolRequest(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.container.v1.CreateNodePoolRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java deleted file mode 100644 index 1becc6ca..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface CreateNodePoolRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.CreateNodePoolRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the parent
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the parent
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Required. The node pool to create.
-   * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the nodePool field is set. - */ - boolean hasNodePool(); - /** - * - * - *
-   * Required. The node pool to create.
-   * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The nodePool. - */ - com.google.container.v1.NodePool getNodePool(); - /** - * - * - *
-   * Required. The node pool to create.
-   * 
- * - * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.container.v1.NodePoolOrBuilder getNodePoolOrBuilder(); - - /** - * - * - *
-   * The parent (project, location, cluster id) where the node pool will be
-   * created. Specified in the format
-   * `projects/*/locations/*/clusters/*`.
-   * 
- * - * string parent = 6; - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * The parent (project, location, cluster id) where the node pool will be
-   * created. Specified in the format
-   * `projects/*/locations/*/clusters/*`.
-   * 
- * - * string parent = 6; - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindow.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindow.java deleted file mode 100644 index 0a97cb78..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindow.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Time window specified for daily maintenance operations.
- * 
- * - * Protobuf type {@code google.container.v1.DailyMaintenanceWindow} - */ -public final class DailyMaintenanceWindow extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.DailyMaintenanceWindow) - DailyMaintenanceWindowOrBuilder { - private static final long serialVersionUID = 0L; - // Use DailyMaintenanceWindow.newBuilder() to construct. - private DailyMaintenanceWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DailyMaintenanceWindow() { - startTime_ = ""; - duration_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DailyMaintenanceWindow(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DailyMaintenanceWindow( - 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 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - startTime_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - duration_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DailyMaintenanceWindow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DailyMaintenanceWindow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DailyMaintenanceWindow.class, - com.google.container.v1.DailyMaintenanceWindow.Builder.class); - } - - public static final int START_TIME_FIELD_NUMBER = 2; - private volatile java.lang.Object startTime_; - /** - * - * - *
-   * Time within the maintenance window to start the maintenance operations.
-   * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-   * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
-   * 
- * - * string start_time = 2; - * - * @return The startTime. - */ - @java.lang.Override - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - startTime_ = s; - return s; - } - } - /** - * - * - *
-   * Time within the maintenance window to start the maintenance operations.
-   * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-   * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
-   * 
- * - * string start_time = 2; - * - * @return The bytes for startTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DURATION_FIELD_NUMBER = 3; - private volatile java.lang.Object duration_; - /** - * - * - *
-   * [Output only] Duration of the time window, automatically chosen to be
-   * smallest possible in the given scenario.
-   * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-   * format "PTnHnMnS".
-   * 
- * - * string duration = 3; - * - * @return The duration. - */ - @java.lang.Override - public java.lang.String getDuration() { - java.lang.Object ref = duration_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - duration_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] Duration of the time window, automatically chosen to be
-   * smallest possible in the given scenario.
-   * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-   * format "PTnHnMnS".
-   * 
- * - * string duration = 3; - * - * @return The bytes for duration. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDurationBytes() { - java.lang.Object ref = duration_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - duration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getStartTimeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, startTime_); - } - if (!getDurationBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, duration_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getStartTimeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, startTime_); - } - if (!getDurationBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, duration_); - } - 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.container.v1.DailyMaintenanceWindow)) { - return super.equals(obj); - } - com.google.container.v1.DailyMaintenanceWindow other = - (com.google.container.v1.DailyMaintenanceWindow) obj; - - if (!getStartTime().equals(other.getStartTime())) return false; - if (!getDuration().equals(other.getDuration())) 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) + START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getStartTime().hashCode(); - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.DailyMaintenanceWindow parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DailyMaintenanceWindow parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DailyMaintenanceWindow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DailyMaintenanceWindow parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DailyMaintenanceWindow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DailyMaintenanceWindow parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DailyMaintenanceWindow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.DailyMaintenanceWindow parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.DailyMaintenanceWindow parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.DailyMaintenanceWindow parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.DailyMaintenanceWindow parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.DailyMaintenanceWindow parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.DailyMaintenanceWindow prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Time window specified for daily maintenance operations.
-   * 
- * - * Protobuf type {@code google.container.v1.DailyMaintenanceWindow} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.DailyMaintenanceWindow) - com.google.container.v1.DailyMaintenanceWindowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DailyMaintenanceWindow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DailyMaintenanceWindow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DailyMaintenanceWindow.class, - com.google.container.v1.DailyMaintenanceWindow.Builder.class); - } - - // Construct using com.google.container.v1.DailyMaintenanceWindow.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(); - startTime_ = ""; - - duration_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DailyMaintenanceWindow_descriptor; - } - - @java.lang.Override - public com.google.container.v1.DailyMaintenanceWindow getDefaultInstanceForType() { - return com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.DailyMaintenanceWindow build() { - com.google.container.v1.DailyMaintenanceWindow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.DailyMaintenanceWindow buildPartial() { - com.google.container.v1.DailyMaintenanceWindow result = - new com.google.container.v1.DailyMaintenanceWindow(this); - result.startTime_ = startTime_; - result.duration_ = duration_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.DailyMaintenanceWindow) { - return mergeFrom((com.google.container.v1.DailyMaintenanceWindow) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.DailyMaintenanceWindow other) { - if (other == com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance()) return this; - if (!other.getStartTime().isEmpty()) { - startTime_ = other.startTime_; - onChanged(); - } - if (!other.getDuration().isEmpty()) { - duration_ = other.duration_; - 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.container.v1.DailyMaintenanceWindow parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.DailyMaintenanceWindow) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object startTime_ = ""; - /** - * - * - *
-     * Time within the maintenance window to start the maintenance operations.
-     * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-     * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
-     * 
- * - * string start_time = 2; - * - * @return The startTime. - */ - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - startTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Time within the maintenance window to start the maintenance operations.
-     * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-     * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
-     * 
- * - * string start_time = 2; - * - * @return The bytes for startTime. - */ - public com.google.protobuf.ByteString getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Time within the maintenance window to start the maintenance operations.
-     * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-     * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
-     * 
- * - * string start_time = 2; - * - * @param value The startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTime(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - startTime_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Time within the maintenance window to start the maintenance operations.
-     * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-     * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
-     * 
- * - * string start_time = 2; - * - * @return This builder for chaining. - */ - public Builder clearStartTime() { - - startTime_ = getDefaultInstance().getStartTime(); - onChanged(); - return this; - } - /** - * - * - *
-     * Time within the maintenance window to start the maintenance operations.
-     * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-     * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
-     * 
- * - * string start_time = 2; - * - * @param value The bytes for startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTimeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - startTime_ = value; - onChanged(); - return this; - } - - private java.lang.Object duration_ = ""; - /** - * - * - *
-     * [Output only] Duration of the time window, automatically chosen to be
-     * smallest possible in the given scenario.
-     * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-     * format "PTnHnMnS".
-     * 
- * - * string duration = 3; - * - * @return The duration. - */ - public java.lang.String getDuration() { - java.lang.Object ref = duration_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - duration_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] Duration of the time window, automatically chosen to be
-     * smallest possible in the given scenario.
-     * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-     * format "PTnHnMnS".
-     * 
- * - * string duration = 3; - * - * @return The bytes for duration. - */ - public com.google.protobuf.ByteString getDurationBytes() { - java.lang.Object ref = duration_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - duration_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] Duration of the time window, automatically chosen to be
-     * smallest possible in the given scenario.
-     * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-     * format "PTnHnMnS".
-     * 
- * - * string duration = 3; - * - * @param value The duration to set. - * @return This builder for chaining. - */ - public Builder setDuration(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - duration_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Duration of the time window, automatically chosen to be
-     * smallest possible in the given scenario.
-     * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-     * format "PTnHnMnS".
-     * 
- * - * string duration = 3; - * - * @return This builder for chaining. - */ - public Builder clearDuration() { - - duration_ = getDefaultInstance().getDuration(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Duration of the time window, automatically chosen to be
-     * smallest possible in the given scenario.
-     * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-     * format "PTnHnMnS".
-     * 
- * - * string duration = 3; - * - * @param value The bytes for duration to set. - * @return This builder for chaining. - */ - public Builder setDurationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - duration_ = 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.container.v1.DailyMaintenanceWindow) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.DailyMaintenanceWindow) - private static final com.google.container.v1.DailyMaintenanceWindow DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.DailyMaintenanceWindow(); - } - - public static com.google.container.v1.DailyMaintenanceWindow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DailyMaintenanceWindow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DailyMaintenanceWindow(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.container.v1.DailyMaintenanceWindow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindowOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindowOrBuilder.java deleted file mode 100644 index 3367a4ed..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindowOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface DailyMaintenanceWindowOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.DailyMaintenanceWindow) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Time within the maintenance window to start the maintenance operations.
-   * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-   * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
-   * 
- * - * string start_time = 2; - * - * @return The startTime. - */ - java.lang.String getStartTime(); - /** - * - * - *
-   * Time within the maintenance window to start the maintenance operations.
-   * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-   * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
-   * 
- * - * string start_time = 2; - * - * @return The bytes for startTime. - */ - com.google.protobuf.ByteString getStartTimeBytes(); - - /** - * - * - *
-   * [Output only] Duration of the time window, automatically chosen to be
-   * smallest possible in the given scenario.
-   * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-   * format "PTnHnMnS".
-   * 
- * - * string duration = 3; - * - * @return The duration. - */ - java.lang.String getDuration(); - /** - * - * - *
-   * [Output only] Duration of the time window, automatically chosen to be
-   * smallest possible in the given scenario.
-   * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt)
-   * format "PTnHnMnS".
-   * 
- * - * string duration = 3; - * - * @return The bytes for duration. - */ - com.google.protobuf.ByteString getDurationBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryption.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryption.java deleted file mode 100644 index eca902ab..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryption.java +++ /dev/null @@ -1,952 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Configuration of etcd encryption.
- * 
- * - * Protobuf type {@code google.container.v1.DatabaseEncryption} - */ -public final class DatabaseEncryption extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.DatabaseEncryption) - DatabaseEncryptionOrBuilder { - private static final long serialVersionUID = 0L; - // Use DatabaseEncryption.newBuilder() to construct. - private DatabaseEncryption(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DatabaseEncryption() { - state_ = 0; - keyName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DatabaseEncryption(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DatabaseEncryption( - 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(); - - keyName_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - state_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DatabaseEncryption_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DatabaseEncryption_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DatabaseEncryption.class, - com.google.container.v1.DatabaseEncryption.Builder.class); - } - - /** - * - * - *
-   * State of etcd encryption.
-   * 
- * - * Protobuf enum {@code google.container.v1.DatabaseEncryption.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Should never be set
-     * 
- * - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * - * - *
-     * Secrets in etcd are encrypted.
-     * 
- * - * ENCRYPTED = 1; - */ - ENCRYPTED(1), - /** - * - * - *
-     * Secrets in etcd are stored in plain text (at etcd level) - this is
-     * unrelated to Compute Engine level full disk encryption.
-     * 
- * - * DECRYPTED = 2; - */ - DECRYPTED(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Should never be set
-     * 
- * - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * - * - *
-     * Secrets in etcd are encrypted.
-     * 
- * - * ENCRYPTED = 1; - */ - public static final int ENCRYPTED_VALUE = 1; - /** - * - * - *
-     * Secrets in etcd are stored in plain text (at etcd level) - this is
-     * unrelated to Compute Engine level full disk encryption.
-     * 
- * - * DECRYPTED = 2; - */ - public static final int DECRYPTED_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 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 ENCRYPTED; - case 2: - return DECRYPTED; - 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.container.v1.DatabaseEncryption.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.container.v1.DatabaseEncryption.State) - } - - public static final int STATE_FIELD_NUMBER = 2; - private int state_; - /** - * - * - *
-   * Denotes the state of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption.State state = 2; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Denotes the state of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption.State state = 2; - * - * @return The state. - */ - @java.lang.Override - public com.google.container.v1.DatabaseEncryption.State getState() { - @SuppressWarnings("deprecation") - com.google.container.v1.DatabaseEncryption.State result = - com.google.container.v1.DatabaseEncryption.State.valueOf(state_); - return result == null ? com.google.container.v1.DatabaseEncryption.State.UNRECOGNIZED : result; - } - - public static final int KEY_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object keyName_; - /** - * - * - *
-   * Name of CloudKMS key to use for the encryption of secrets in etcd.
-   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-   * 
- * - * string key_name = 1; - * - * @return The keyName. - */ - @java.lang.Override - public java.lang.String getKeyName() { - java.lang.Object ref = keyName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keyName_ = s; - return s; - } - } - /** - * - * - *
-   * Name of CloudKMS key to use for the encryption of secrets in etcd.
-   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-   * 
- * - * string key_name = 1; - * - * @return The bytes for keyName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKeyNameBytes() { - java.lang.Object ref = keyName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - keyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getKeyNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyName_); - } - if (state_ != com.google.container.v1.DatabaseEncryption.State.UNKNOWN.getNumber()) { - output.writeEnum(2, state_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyName_); - } - if (state_ != com.google.container.v1.DatabaseEncryption.State.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); - } - 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.container.v1.DatabaseEncryption)) { - return super.equals(obj); - } - com.google.container.v1.DatabaseEncryption other = - (com.google.container.v1.DatabaseEncryption) obj; - - if (state_ != other.state_) return false; - if (!getKeyName().equals(other.getKeyName())) 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) + KEY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getKeyName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.DatabaseEncryption parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DatabaseEncryption parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DatabaseEncryption parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DatabaseEncryption parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DatabaseEncryption parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DatabaseEncryption parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DatabaseEncryption parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.DatabaseEncryption parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.DatabaseEncryption parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.DatabaseEncryption parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.DatabaseEncryption parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.DatabaseEncryption parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.DatabaseEncryption prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 of etcd encryption.
-   * 
- * - * Protobuf type {@code google.container.v1.DatabaseEncryption} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.DatabaseEncryption) - com.google.container.v1.DatabaseEncryptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DatabaseEncryption_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DatabaseEncryption_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DatabaseEncryption.class, - com.google.container.v1.DatabaseEncryption.Builder.class); - } - - // Construct using com.google.container.v1.DatabaseEncryption.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; - - keyName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DatabaseEncryption_descriptor; - } - - @java.lang.Override - public com.google.container.v1.DatabaseEncryption getDefaultInstanceForType() { - return com.google.container.v1.DatabaseEncryption.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.DatabaseEncryption build() { - com.google.container.v1.DatabaseEncryption result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.DatabaseEncryption buildPartial() { - com.google.container.v1.DatabaseEncryption result = - new com.google.container.v1.DatabaseEncryption(this); - result.state_ = state_; - result.keyName_ = keyName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.DatabaseEncryption) { - return mergeFrom((com.google.container.v1.DatabaseEncryption) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.DatabaseEncryption other) { - if (other == com.google.container.v1.DatabaseEncryption.getDefaultInstance()) return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getKeyName().isEmpty()) { - keyName_ = other.keyName_; - 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.container.v1.DatabaseEncryption parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.DatabaseEncryption) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int state_ = 0; - /** - * - * - *
-     * Denotes the state of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption.State state = 2; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Denotes the state of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption.State state = 2; - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Denotes the state of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption.State state = 2; - * - * @return The state. - */ - @java.lang.Override - public com.google.container.v1.DatabaseEncryption.State getState() { - @SuppressWarnings("deprecation") - com.google.container.v1.DatabaseEncryption.State result = - com.google.container.v1.DatabaseEncryption.State.valueOf(state_); - return result == null - ? com.google.container.v1.DatabaseEncryption.State.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Denotes the state of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption.State state = 2; - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.container.v1.DatabaseEncryption.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Denotes the state of etcd encryption.
-     * 
- * - * .google.container.v1.DatabaseEncryption.State state = 2; - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.lang.Object keyName_ = ""; - /** - * - * - *
-     * Name of CloudKMS key to use for the encryption of secrets in etcd.
-     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-     * 
- * - * string key_name = 1; - * - * @return The keyName. - */ - public java.lang.String getKeyName() { - java.lang.Object ref = keyName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keyName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Name of CloudKMS key to use for the encryption of secrets in etcd.
-     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-     * 
- * - * string key_name = 1; - * - * @return The bytes for keyName. - */ - public com.google.protobuf.ByteString getKeyNameBytes() { - java.lang.Object ref = keyName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - keyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Name of CloudKMS key to use for the encryption of secrets in etcd.
-     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-     * 
- * - * string key_name = 1; - * - * @param value The keyName to set. - * @return This builder for chaining. - */ - public Builder setKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - keyName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Name of CloudKMS key to use for the encryption of secrets in etcd.
-     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-     * 
- * - * string key_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearKeyName() { - - keyName_ = getDefaultInstance().getKeyName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Name of CloudKMS key to use for the encryption of secrets in etcd.
-     * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-     * 
- * - * string key_name = 1; - * - * @param value The bytes for keyName to set. - * @return This builder for chaining. - */ - public Builder setKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - keyName_ = value; - 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.container.v1.DatabaseEncryption) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.DatabaseEncryption) - private static final com.google.container.v1.DatabaseEncryption DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.DatabaseEncryption(); - } - - public static com.google.container.v1.DatabaseEncryption getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DatabaseEncryption parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DatabaseEncryption(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.container.v1.DatabaseEncryption getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryptionOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryptionOrBuilder.java deleted file mode 100644 index ecc94aba..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryptionOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface DatabaseEncryptionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.DatabaseEncryption) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Denotes the state of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption.State state = 2; - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Denotes the state of etcd encryption.
-   * 
- * - * .google.container.v1.DatabaseEncryption.State state = 2; - * - * @return The state. - */ - com.google.container.v1.DatabaseEncryption.State getState(); - - /** - * - * - *
-   * Name of CloudKMS key to use for the encryption of secrets in etcd.
-   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-   * 
- * - * string key_name = 1; - * - * @return The keyName. - */ - java.lang.String getKeyName(); - /** - * - * - *
-   * Name of CloudKMS key to use for the encryption of secrets in etcd.
-   * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
-   * 
- * - * string key_name = 1; - * - * @return The bytes for keyName. - */ - com.google.protobuf.ByteString getKeyNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatus.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatus.java deleted file mode 100644 index 28f7f098..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatus.java +++ /dev/null @@ -1,546 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * DefaultSnatStatus contains the desired state of whether default sNAT should
- * be disabled on the cluster.
- * 
- * - * Protobuf type {@code google.container.v1.DefaultSnatStatus} - */ -public final class DefaultSnatStatus extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.DefaultSnatStatus) - DefaultSnatStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use DefaultSnatStatus.newBuilder() to construct. - private DefaultSnatStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DefaultSnatStatus() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DefaultSnatStatus(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DefaultSnatStatus( - 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: - { - disabled_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DefaultSnatStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DefaultSnatStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DefaultSnatStatus.class, - com.google.container.v1.DefaultSnatStatus.Builder.class); - } - - public static final int DISABLED_FIELD_NUMBER = 1; - private boolean disabled_; - /** - * - * - *
-   * Disables cluster default sNAT rules.
-   * 
- * - * bool disabled = 1; - * - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (disabled_ != false) { - output.writeBool(1, disabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (disabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disabled_); - } - 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.container.v1.DefaultSnatStatus)) { - return super.equals(obj); - } - com.google.container.v1.DefaultSnatStatus other = - (com.google.container.v1.DefaultSnatStatus) obj; - - if (getDisabled() != other.getDisabled()) 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) + DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.DefaultSnatStatus parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DefaultSnatStatus parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DefaultSnatStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DefaultSnatStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DefaultSnatStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DefaultSnatStatus parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DefaultSnatStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.DefaultSnatStatus parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.DefaultSnatStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.DefaultSnatStatus parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.DefaultSnatStatus parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.DefaultSnatStatus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.DefaultSnatStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * DefaultSnatStatus contains the desired state of whether default sNAT should
-   * be disabled on the cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.DefaultSnatStatus} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.DefaultSnatStatus) - com.google.container.v1.DefaultSnatStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DefaultSnatStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DefaultSnatStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DefaultSnatStatus.class, - com.google.container.v1.DefaultSnatStatus.Builder.class); - } - - // Construct using com.google.container.v1.DefaultSnatStatus.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(); - disabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DefaultSnatStatus_descriptor; - } - - @java.lang.Override - public com.google.container.v1.DefaultSnatStatus getDefaultInstanceForType() { - return com.google.container.v1.DefaultSnatStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.DefaultSnatStatus build() { - com.google.container.v1.DefaultSnatStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.DefaultSnatStatus buildPartial() { - com.google.container.v1.DefaultSnatStatus result = - new com.google.container.v1.DefaultSnatStatus(this); - result.disabled_ = disabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.DefaultSnatStatus) { - return mergeFrom((com.google.container.v1.DefaultSnatStatus) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.DefaultSnatStatus other) { - if (other == com.google.container.v1.DefaultSnatStatus.getDefaultInstance()) return this; - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - 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.container.v1.DefaultSnatStatus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.DefaultSnatStatus) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean disabled_; - /** - * - * - *
-     * Disables cluster default sNAT rules.
-     * 
- * - * bool disabled = 1; - * - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - * - * - *
-     * Disables cluster default sNAT rules.
-     * 
- * - * bool disabled = 1; - * - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Disables cluster default sNAT rules.
-     * 
- * - * bool disabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisabled() { - - disabled_ = 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.container.v1.DefaultSnatStatus) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.DefaultSnatStatus) - private static final com.google.container.v1.DefaultSnatStatus DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.DefaultSnatStatus(); - } - - public static com.google.container.v1.DefaultSnatStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DefaultSnatStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DefaultSnatStatus(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.container.v1.DefaultSnatStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatusOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatusOrBuilder.java deleted file mode 100644 index d6c81209..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatusOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface DefaultSnatStatusOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.DefaultSnatStatus) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Disables cluster default sNAT rules.
-   * 
- * - * bool disabled = 1; - * - * @return The disabled. - */ - boolean getDisabled(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java deleted file mode 100644 index 19bbd2f0..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java +++ /dev/null @@ -1,1241 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * DeleteClusterRequest deletes a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.DeleteClusterRequest} - */ -public final class DeleteClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.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_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - } - - @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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 34: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DeleteClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DeleteClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DeleteClusterRequest.class, - com.google.container.v1.DeleteClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster to delete.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to delete.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to delete.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 4; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to delete.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 4; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.container.v1.DeleteClusterRequest)) { - return super.equals(obj); - } - com.google.container.v1.DeleteClusterRequest other = - (com.google.container.v1.DeleteClusterRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().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.container.v1.DeleteClusterRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.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.container.v1.DeleteClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.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.container.v1.DeleteClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DeleteClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DeleteClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.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.container.v1.DeleteClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.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.container.v1.DeleteClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.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.container.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; - } - /** - * - * - *
-   * DeleteClusterRequest deletes a cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.DeleteClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.DeleteClusterRequest) - com.google.container.v1.DeleteClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DeleteClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DeleteClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DeleteClusterRequest.class, - com.google.container.v1.DeleteClusterRequest.Builder.class); - } - - // Construct using com.google.container.v1.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DeleteClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.DeleteClusterRequest getDefaultInstanceForType() { - return com.google.container.v1.DeleteClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.DeleteClusterRequest build() { - com.google.container.v1.DeleteClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.DeleteClusterRequest buildPartial() { - com.google.container.v1.DeleteClusterRequest result = - new com.google.container.v1.DeleteClusterRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - 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.container.v1.DeleteClusterRequest) { - return mergeFrom((com.google.container.v1.DeleteClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.DeleteClusterRequest other) { - if (other == com.google.container.v1.DeleteClusterRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - 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.container.v1.DeleteClusterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.DeleteClusterRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to delete.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 4; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to delete.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 4; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to delete.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 4; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to delete.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 4; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to delete.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 4; - * - * @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.container.v1.DeleteClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.DeleteClusterRequest) - private static final com.google.container.v1.DeleteClusterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.DeleteClusterRequest(); - } - - public static com.google.container.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 { - 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.container.v1.DeleteClusterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java deleted file mode 100644 index 7c223d99..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface DeleteClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.DeleteClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to delete.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to delete.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to delete.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 4; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to delete.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 4; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java deleted file mode 100644 index 2db9f4b7..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java +++ /dev/null @@ -1,1441 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * DeleteNodePoolRequest deletes a node pool for a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.DeleteNodePoolRequest} - */ -public final class DeleteNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.DeleteNodePoolRequest) - DeleteNodePoolRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteNodePoolRequest.newBuilder() to construct. - private DeleteNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteNodePoolRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteNodePoolRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DeleteNodePoolRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - nodePoolId_ = s; - break; - } - case 50: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DeleteNodePoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DeleteNodePoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DeleteNodePoolRequest.class, - com.google.container.v1.DeleteNodePoolRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object nodePoolId_; - /** - * - * - *
-   * Deprecated. The name of the node pool to delete.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getNodePoolId() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodePoolId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the node pool to delete.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The bytes for nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * delete. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * delete. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!getNodePoolIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!getNodePoolIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1.DeleteNodePoolRequest)) { - return super.equals(obj); - } - com.google.container.v1.DeleteNodePoolRequest other = - (com.google.container.v1.DeleteNodePoolRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - if (!getNodePoolId().equals(other.getNodePoolId())) return false; - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodePoolId().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.container.v1.DeleteNodePoolRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DeleteNodePoolRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DeleteNodePoolRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DeleteNodePoolRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DeleteNodePoolRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DeleteNodePoolRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DeleteNodePoolRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.DeleteNodePoolRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.DeleteNodePoolRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.DeleteNodePoolRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.DeleteNodePoolRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.DeleteNodePoolRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.DeleteNodePoolRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * DeleteNodePoolRequest deletes a node pool for a cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.DeleteNodePoolRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.DeleteNodePoolRequest) - com.google.container.v1.DeleteNodePoolRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DeleteNodePoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DeleteNodePoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DeleteNodePoolRequest.class, - com.google.container.v1.DeleteNodePoolRequest.Builder.class); - } - - // Construct using com.google.container.v1.DeleteNodePoolRequest.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - nodePoolId_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DeleteNodePoolRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.DeleteNodePoolRequest getDefaultInstanceForType() { - return com.google.container.v1.DeleteNodePoolRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.DeleteNodePoolRequest build() { - com.google.container.v1.DeleteNodePoolRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.DeleteNodePoolRequest buildPartial() { - com.google.container.v1.DeleteNodePoolRequest result = - new com.google.container.v1.DeleteNodePoolRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.nodePoolId_ = nodePoolId_; - 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.container.v1.DeleteNodePoolRequest) { - return mergeFrom((com.google.container.v1.DeleteNodePoolRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.DeleteNodePoolRequest other) { - if (other == com.google.container.v1.DeleteNodePoolRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - onChanged(); - } - 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.container.v1.DeleteNodePoolRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.DeleteNodePoolRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the node pool to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The nodePoolId. - */ - @java.lang.Deprecated - public java.lang.String getNodePoolId() { - java.lang.Object ref = nodePoolId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodePoolId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the node pool to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The bytes for nodePoolId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the node pool to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @param value The nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setNodePoolId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePoolId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodePoolId() { - - nodePoolId_ = getDefaultInstance().getNodePoolId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to delete.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @param value The bytes for nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePoolId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * delete. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * delete. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * delete. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * delete. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * delete. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * - * @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.container.v1.DeleteNodePoolRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.DeleteNodePoolRequest) - private static final com.google.container.v1.DeleteNodePoolRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.DeleteNodePoolRequest(); - } - - public static com.google.container.v1.DeleteNodePoolRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteNodePoolRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteNodePoolRequest(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.container.v1.DeleteNodePoolRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java deleted file mode 100644 index 4f0385e5..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface DeleteNodePoolRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.DeleteNodePoolRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the node pool to delete.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The nodePoolId. - */ - @java.lang.Deprecated - java.lang.String getNodePoolId(); - /** - * - * - *
-   * Deprecated. The name of the node pool to delete.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The bytes for nodePoolId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getNodePoolIdBytes(); - - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * delete. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * delete. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfig.java deleted file mode 100644 index 835e4e0e..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfig.java +++ /dev/null @@ -1,543 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Configuration for NodeLocal DNSCache
- * 
- * - * Protobuf type {@code google.container.v1.DnsCacheConfig} - */ -public final class DnsCacheConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.DnsCacheConfig) - DnsCacheConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use DnsCacheConfig.newBuilder() to construct. - private DnsCacheConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DnsCacheConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DnsCacheConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private DnsCacheConfig( - 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: - { - enabled_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DnsCacheConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DnsCacheConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DnsCacheConfig.class, - com.google.container.v1.DnsCacheConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - * - * - *
-   * Whether NodeLocal DNSCache is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); - } - 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.container.v1.DnsCacheConfig)) { - return super.equals(obj); - } - com.google.container.v1.DnsCacheConfig other = (com.google.container.v1.DnsCacheConfig) obj; - - if (getEnabled() != other.getEnabled()) 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) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.DnsCacheConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DnsCacheConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DnsCacheConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DnsCacheConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DnsCacheConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.DnsCacheConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.DnsCacheConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.DnsCacheConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.DnsCacheConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.DnsCacheConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.DnsCacheConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.DnsCacheConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.DnsCacheConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 NodeLocal DNSCache
-   * 
- * - * Protobuf type {@code google.container.v1.DnsCacheConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.DnsCacheConfig) - com.google.container.v1.DnsCacheConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DnsCacheConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DnsCacheConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.DnsCacheConfig.class, - com.google.container.v1.DnsCacheConfig.Builder.class); - } - - // Construct using com.google.container.v1.DnsCacheConfig.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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_DnsCacheConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.DnsCacheConfig getDefaultInstanceForType() { - return com.google.container.v1.DnsCacheConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.DnsCacheConfig build() { - com.google.container.v1.DnsCacheConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.DnsCacheConfig buildPartial() { - com.google.container.v1.DnsCacheConfig result = - new com.google.container.v1.DnsCacheConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.DnsCacheConfig) { - return mergeFrom((com.google.container.v1.DnsCacheConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.DnsCacheConfig other) { - if (other == com.google.container.v1.DnsCacheConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - 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.container.v1.DnsCacheConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.DnsCacheConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean enabled_; - /** - * - * - *
-     * Whether NodeLocal DNSCache is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether NodeLocal DNSCache is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether NodeLocal DNSCache is enabled for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = 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.container.v1.DnsCacheConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.DnsCacheConfig) - private static final com.google.container.v1.DnsCacheConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.DnsCacheConfig(); - } - - public static com.google.container.v1.DnsCacheConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DnsCacheConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DnsCacheConfig(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.container.v1.DnsCacheConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfigOrBuilder.java deleted file mode 100644 index aa30a25d..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfigOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface DnsCacheConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.DnsCacheConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether NodeLocal DNSCache is enabled for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java deleted file mode 100644 index 62046ed9..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java +++ /dev/null @@ -1,1241 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * GetClusterRequest gets the settings of a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.GetClusterRequest} - */ -public final class GetClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.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_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - } - - @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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 42: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetClusterRequest.class, - com.google.container.v1.GetClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster to retrieve.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to retrieve.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to retrieve.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to retrieve.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.container.v1.GetClusterRequest)) { - return super.equals(obj); - } - com.google.container.v1.GetClusterRequest other = - (com.google.container.v1.GetClusterRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().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.container.v1.GetClusterRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.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.container.v1.GetClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.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.container.v1.GetClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.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.container.v1.GetClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.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.container.v1.GetClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.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.container.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; - } - /** - * - * - *
-   * GetClusterRequest gets the settings of a cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.GetClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GetClusterRequest) - com.google.container.v1.GetClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetClusterRequest.class, - com.google.container.v1.GetClusterRequest.Builder.class); - } - - // Construct using com.google.container.v1.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GetClusterRequest getDefaultInstanceForType() { - return com.google.container.v1.GetClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GetClusterRequest build() { - com.google.container.v1.GetClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GetClusterRequest buildPartial() { - com.google.container.v1.GetClusterRequest result = - new com.google.container.v1.GetClusterRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - 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.container.v1.GetClusterRequest) { - return mergeFrom((com.google.container.v1.GetClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GetClusterRequest other) { - if (other == com.google.container.v1.GetClusterRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - 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.container.v1.GetClusterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.GetClusterRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to retrieve.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to retrieve.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to retrieve.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to retrieve.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to retrieve.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to retrieve.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * - * @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.container.v1.GetClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GetClusterRequest) - private static final com.google.container.v1.GetClusterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GetClusterRequest(); - } - - public static com.google.container.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 { - 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.container.v1.GetClusterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java deleted file mode 100644 index c8f5af70..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface GetClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GetClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to retrieve.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to retrieve.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to retrieve.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to retrieve.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequest.java deleted file mode 100644 index 4952342a..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequest.java +++ /dev/null @@ -1,647 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * GetJSONWebKeysRequest gets the public component of the keys used by the
- * cluster to sign token requests. This will be the jwks_uri for the discover
- * document returned by getOpenIDConfig. See the OpenID Connect
- * Discovery 1.0 specification for details.
- * 
- * - * Protobuf type {@code google.container.v1.GetJSONWebKeysRequest} - */ -public final class GetJSONWebKeysRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.GetJSONWebKeysRequest) - GetJSONWebKeysRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetJSONWebKeysRequest.newBuilder() to construct. - private GetJSONWebKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetJSONWebKeysRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetJSONWebKeysRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetJSONWebKeysRequest( - 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; - } - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetJSONWebKeysRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetJSONWebKeysRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetJSONWebKeysRequest.class, - com.google.container.v1.GetJSONWebKeysRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * The cluster (project, location, cluster id) to get keys for. Specified in
-   * the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string parent = 1; - * - * @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; - } - } - /** - * - * - *
-   * The cluster (project, location, cluster id) to get keys for. Specified in
-   * the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string parent = 1; - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - 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_); - } - 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.container.v1.GetJSONWebKeysRequest)) { - return super.equals(obj); - } - com.google.container.v1.GetJSONWebKeysRequest other = - (com.google.container.v1.GetJSONWebKeysRequest) obj; - - if (!getParent().equals(other.getParent())) 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetJSONWebKeysRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.GetJSONWebKeysRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * GetJSONWebKeysRequest gets the public component of the keys used by the
-   * cluster to sign token requests. This will be the jwks_uri for the discover
-   * document returned by getOpenIDConfig. See the OpenID Connect
-   * Discovery 1.0 specification for details.
-   * 
- * - * Protobuf type {@code google.container.v1.GetJSONWebKeysRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GetJSONWebKeysRequest) - com.google.container.v1.GetJSONWebKeysRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetJSONWebKeysRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetJSONWebKeysRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetJSONWebKeysRequest.class, - com.google.container.v1.GetJSONWebKeysRequest.Builder.class); - } - - // Construct using com.google.container.v1.GetJSONWebKeysRequest.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_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetJSONWebKeysRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GetJSONWebKeysRequest getDefaultInstanceForType() { - return com.google.container.v1.GetJSONWebKeysRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GetJSONWebKeysRequest build() { - com.google.container.v1.GetJSONWebKeysRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GetJSONWebKeysRequest buildPartial() { - com.google.container.v1.GetJSONWebKeysRequest result = - new com.google.container.v1.GetJSONWebKeysRequest(this); - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GetJSONWebKeysRequest) { - return mergeFrom((com.google.container.v1.GetJSONWebKeysRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GetJSONWebKeysRequest other) { - if (other == com.google.container.v1.GetJSONWebKeysRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - 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.container.v1.GetJSONWebKeysRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.GetJSONWebKeysRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * The cluster (project, location, cluster id) to get keys for. Specified in
-     * the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string parent = 1; - * - * @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; - } - } - /** - * - * - *
-     * The cluster (project, location, cluster id) to get keys for. Specified in
-     * the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string parent = 1; - * - * @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; - } - } - /** - * - * - *
-     * The cluster (project, location, cluster id) to get keys for. Specified in
-     * the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string parent = 1; - * - * @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; - } - /** - * - * - *
-     * The cluster (project, location, cluster id) to get keys for. Specified in
-     * the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string parent = 1; - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * The cluster (project, location, cluster id) to get keys for. Specified in
-     * the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string parent = 1; - * - * @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; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.GetJSONWebKeysRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GetJSONWebKeysRequest) - private static final com.google.container.v1.GetJSONWebKeysRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GetJSONWebKeysRequest(); - } - - public static com.google.container.v1.GetJSONWebKeysRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetJSONWebKeysRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetJSONWebKeysRequest(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.container.v1.GetJSONWebKeysRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequestOrBuilder.java deleted file mode 100644 index 4d62e20f..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequestOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface GetJSONWebKeysRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GetJSONWebKeysRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The cluster (project, location, cluster id) to get keys for. Specified in
-   * the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string parent = 1; - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * The cluster (project, location, cluster id) to get keys for. Specified in
-   * the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string parent = 1; - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponse.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponse.java deleted file mode 100644 index fb439e6e..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponse.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
- * 
- * - * Protobuf type {@code google.container.v1.GetJSONWebKeysResponse} - */ -public final class GetJSONWebKeysResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.GetJSONWebKeysResponse) - GetJSONWebKeysResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetJSONWebKeysResponse.newBuilder() to construct. - private GetJSONWebKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetJSONWebKeysResponse() { - keys_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetJSONWebKeysResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetJSONWebKeysResponse( - 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)) { - keys_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - keys_.add(input.readMessage(com.google.container.v1.Jwk.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)) { - keys_ = java.util.Collections.unmodifiableList(keys_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetJSONWebKeysResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetJSONWebKeysResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetJSONWebKeysResponse.class, - com.google.container.v1.GetJSONWebKeysResponse.Builder.class); - } - - public static final int KEYS_FIELD_NUMBER = 1; - private java.util.List keys_; - /** - * - * - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - @java.lang.Override - public java.util.List getKeysList() { - return keys_; - } - /** - * - * - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - @java.lang.Override - public java.util.List getKeysOrBuilderList() { - return keys_; - } - /** - * - * - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - @java.lang.Override - public int getKeysCount() { - return keys_.size(); - } - /** - * - * - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - @java.lang.Override - public com.google.container.v1.Jwk getKeys(int index) { - return keys_.get(index); - } - /** - * - * - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - @java.lang.Override - public com.google.container.v1.JwkOrBuilder getKeysOrBuilder(int index) { - return keys_.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 < keys_.size(); i++) { - output.writeMessage(1, keys_.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 < keys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, keys_.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.container.v1.GetJSONWebKeysResponse)) { - return super.equals(obj); - } - com.google.container.v1.GetJSONWebKeysResponse other = - (com.google.container.v1.GetJSONWebKeysResponse) obj; - - if (!getKeysList().equals(other.getKeysList())) 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 (getKeysCount() > 0) { - hash = (37 * hash) + KEYS_FIELD_NUMBER; - hash = (53 * hash) + getKeysList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetJSONWebKeysResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.GetJSONWebKeysResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
-   * 
- * - * Protobuf type {@code google.container.v1.GetJSONWebKeysResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GetJSONWebKeysResponse) - com.google.container.v1.GetJSONWebKeysResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetJSONWebKeysResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetJSONWebKeysResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetJSONWebKeysResponse.class, - com.google.container.v1.GetJSONWebKeysResponse.Builder.class); - } - - // Construct using com.google.container.v1.GetJSONWebKeysResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getKeysFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (keysBuilder_ == null) { - keys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - keysBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetJSONWebKeysResponse_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GetJSONWebKeysResponse getDefaultInstanceForType() { - return com.google.container.v1.GetJSONWebKeysResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GetJSONWebKeysResponse build() { - com.google.container.v1.GetJSONWebKeysResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GetJSONWebKeysResponse buildPartial() { - com.google.container.v1.GetJSONWebKeysResponse result = - new com.google.container.v1.GetJSONWebKeysResponse(this); - int from_bitField0_ = bitField0_; - if (keysBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - keys_ = java.util.Collections.unmodifiableList(keys_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.keys_ = keys_; - } else { - result.keys_ = keysBuilder_.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.container.v1.GetJSONWebKeysResponse) { - return mergeFrom((com.google.container.v1.GetJSONWebKeysResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GetJSONWebKeysResponse other) { - if (other == com.google.container.v1.GetJSONWebKeysResponse.getDefaultInstance()) return this; - if (keysBuilder_ == null) { - if (!other.keys_.isEmpty()) { - if (keys_.isEmpty()) { - keys_ = other.keys_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureKeysIsMutable(); - keys_.addAll(other.keys_); - } - onChanged(); - } - } else { - if (!other.keys_.isEmpty()) { - if (keysBuilder_.isEmpty()) { - keysBuilder_.dispose(); - keysBuilder_ = null; - keys_ = other.keys_; - bitField0_ = (bitField0_ & ~0x00000001); - keysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getKeysFieldBuilder() - : null; - } else { - keysBuilder_.addAllMessages(other.keys_); - } - } - } - 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.container.v1.GetJSONWebKeysResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.GetJSONWebKeysResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List keys_ = java.util.Collections.emptyList(); - - private void ensureKeysIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - keys_ = new java.util.ArrayList(keys_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.Jwk, - com.google.container.v1.Jwk.Builder, - com.google.container.v1.JwkOrBuilder> - keysBuilder_; - - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public java.util.List getKeysList() { - if (keysBuilder_ == null) { - return java.util.Collections.unmodifiableList(keys_); - } else { - return keysBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public int getKeysCount() { - if (keysBuilder_ == null) { - return keys_.size(); - } else { - return keysBuilder_.getCount(); - } - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public com.google.container.v1.Jwk getKeys(int index) { - if (keysBuilder_ == null) { - return keys_.get(index); - } else { - return keysBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public Builder setKeys(int index, com.google.container.v1.Jwk value) { - if (keysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeysIsMutable(); - keys_.set(index, value); - onChanged(); - } else { - keysBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public Builder setKeys(int index, com.google.container.v1.Jwk.Builder builderForValue) { - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - keys_.set(index, builderForValue.build()); - onChanged(); - } else { - keysBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public Builder addKeys(com.google.container.v1.Jwk value) { - if (keysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeysIsMutable(); - keys_.add(value); - onChanged(); - } else { - keysBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public Builder addKeys(int index, com.google.container.v1.Jwk value) { - if (keysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeysIsMutable(); - keys_.add(index, value); - onChanged(); - } else { - keysBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public Builder addKeys(com.google.container.v1.Jwk.Builder builderForValue) { - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - keys_.add(builderForValue.build()); - onChanged(); - } else { - keysBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public Builder addKeys(int index, com.google.container.v1.Jwk.Builder builderForValue) { - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - keys_.add(index, builderForValue.build()); - onChanged(); - } else { - keysBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public Builder addAllKeys(java.lang.Iterable values) { - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, keys_); - onChanged(); - } else { - keysBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public Builder clearKeys() { - if (keysBuilder_ == null) { - keys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - keysBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public Builder removeKeys(int index) { - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - keys_.remove(index); - onChanged(); - } else { - keysBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public com.google.container.v1.Jwk.Builder getKeysBuilder(int index) { - return getKeysFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public com.google.container.v1.JwkOrBuilder getKeysOrBuilder(int index) { - if (keysBuilder_ == null) { - return keys_.get(index); - } else { - return keysBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public java.util.List getKeysOrBuilderList() { - if (keysBuilder_ != null) { - return keysBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(keys_); - } - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public com.google.container.v1.Jwk.Builder addKeysBuilder() { - return getKeysFieldBuilder().addBuilder(com.google.container.v1.Jwk.getDefaultInstance()); - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public com.google.container.v1.Jwk.Builder addKeysBuilder(int index) { - return getKeysFieldBuilder() - .addBuilder(index, com.google.container.v1.Jwk.getDefaultInstance()); - } - /** - * - * - *
-     * The public component of the keys used by the cluster to sign token
-     * requests.
-     * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - public java.util.List getKeysBuilderList() { - return getKeysFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.Jwk, - com.google.container.v1.Jwk.Builder, - com.google.container.v1.JwkOrBuilder> - getKeysFieldBuilder() { - if (keysBuilder_ == null) { - keysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.Jwk, - com.google.container.v1.Jwk.Builder, - com.google.container.v1.JwkOrBuilder>( - keys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - keys_ = null; - } - return keysBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.GetJSONWebKeysResponse) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GetJSONWebKeysResponse) - private static final com.google.container.v1.GetJSONWebKeysResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GetJSONWebKeysResponse(); - } - - public static com.google.container.v1.GetJSONWebKeysResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetJSONWebKeysResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetJSONWebKeysResponse(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.container.v1.GetJSONWebKeysResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponseOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponseOrBuilder.java deleted file mode 100644 index dcc6e6f2..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponseOrBuilder.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface GetJSONWebKeysResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GetJSONWebKeysResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - java.util.List getKeysList(); - /** - * - * - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - com.google.container.v1.Jwk getKeys(int index); - /** - * - * - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - int getKeysCount(); - /** - * - * - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - java.util.List getKeysOrBuilderList(); - /** - * - * - *
-   * The public component of the keys used by the cluster to sign token
-   * requests.
-   * 
- * - * repeated .google.container.v1.Jwk keys = 1; - */ - com.google.container.v1.JwkOrBuilder getKeysOrBuilder(int index); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java deleted file mode 100644 index 1f673490..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java +++ /dev/null @@ -1,1441 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * GetNodePoolRequest retrieves a node pool for a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.GetNodePoolRequest} - */ -public final class GetNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.GetNodePoolRequest) - GetNodePoolRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetNodePoolRequest.newBuilder() to construct. - private GetNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetNodePoolRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetNodePoolRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetNodePoolRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - nodePoolId_ = s; - break; - } - case 50: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetNodePoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetNodePoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetNodePoolRequest.class, - com.google.container.v1.GetNodePoolRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object nodePoolId_; - /** - * - * - *
-   * Deprecated. The name of the node pool.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getNodePoolId() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodePoolId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the node pool.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The bytes for nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * get. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * get. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!getNodePoolIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!getNodePoolIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1.GetNodePoolRequest)) { - return super.equals(obj); - } - com.google.container.v1.GetNodePoolRequest other = - (com.google.container.v1.GetNodePoolRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - if (!getNodePoolId().equals(other.getNodePoolId())) return false; - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodePoolId().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.container.v1.GetNodePoolRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetNodePoolRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetNodePoolRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetNodePoolRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetNodePoolRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetNodePoolRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetNodePoolRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetNodePoolRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetNodePoolRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetNodePoolRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetNodePoolRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetNodePoolRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.GetNodePoolRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * GetNodePoolRequest retrieves a node pool for a cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.GetNodePoolRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GetNodePoolRequest) - com.google.container.v1.GetNodePoolRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetNodePoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetNodePoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetNodePoolRequest.class, - com.google.container.v1.GetNodePoolRequest.Builder.class); - } - - // Construct using com.google.container.v1.GetNodePoolRequest.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - nodePoolId_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetNodePoolRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GetNodePoolRequest getDefaultInstanceForType() { - return com.google.container.v1.GetNodePoolRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GetNodePoolRequest build() { - com.google.container.v1.GetNodePoolRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GetNodePoolRequest buildPartial() { - com.google.container.v1.GetNodePoolRequest result = - new com.google.container.v1.GetNodePoolRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.nodePoolId_ = nodePoolId_; - 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.container.v1.GetNodePoolRequest) { - return mergeFrom((com.google.container.v1.GetNodePoolRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GetNodePoolRequest other) { - if (other == com.google.container.v1.GetNodePoolRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - onChanged(); - } - 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.container.v1.GetNodePoolRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.GetNodePoolRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the node pool.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The nodePoolId. - */ - @java.lang.Deprecated - public java.lang.String getNodePoolId() { - java.lang.Object ref = nodePoolId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodePoolId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the node pool.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The bytes for nodePoolId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the node pool.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @param value The nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setNodePoolId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePoolId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodePoolId() { - - nodePoolId_ = getDefaultInstance().getNodePoolId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @param value The bytes for nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePoolId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * get. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * get. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * get. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * get. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to
-     * get. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * - * @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.container.v1.GetNodePoolRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GetNodePoolRequest) - private static final com.google.container.v1.GetNodePoolRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GetNodePoolRequest(); - } - - public static com.google.container.v1.GetNodePoolRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNodePoolRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNodePoolRequest(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.container.v1.GetNodePoolRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java deleted file mode 100644 index 58f81375..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface GetNodePoolRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GetNodePoolRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the node pool.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The nodePoolId. - */ - @java.lang.Deprecated - java.lang.String getNodePoolId(); - /** - * - * - *
-   * Deprecated. The name of the node pool.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The bytes for nodePoolId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getNodePoolIdBytes(); - - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * get. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to
-   * get. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequest.java deleted file mode 100644 index 975d3260..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequest.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * GetOpenIDConfigRequest gets the OIDC discovery document for the
- * cluster. See the OpenID Connect Discovery 1.0 specification for details.
- * 
- * - * Protobuf type {@code google.container.v1.GetOpenIDConfigRequest} - */ -public final class GetOpenIDConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.GetOpenIDConfigRequest) - GetOpenIDConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetOpenIDConfigRequest.newBuilder() to construct. - private GetOpenIDConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetOpenIDConfigRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetOpenIDConfigRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetOpenIDConfigRequest( - 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; - } - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOpenIDConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOpenIDConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetOpenIDConfigRequest.class, - com.google.container.v1.GetOpenIDConfigRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * The cluster (project, location, cluster id) to get the discovery document
-   * for. Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string parent = 1; - * - * @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; - } - } - /** - * - * - *
-   * The cluster (project, location, cluster id) to get the discovery document
-   * for. Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string parent = 1; - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - 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_); - } - 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.container.v1.GetOpenIDConfigRequest)) { - return super.equals(obj); - } - com.google.container.v1.GetOpenIDConfigRequest other = - (com.google.container.v1.GetOpenIDConfigRequest) obj; - - if (!getParent().equals(other.getParent())) 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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetOpenIDConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.GetOpenIDConfigRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * GetOpenIDConfigRequest gets the OIDC discovery document for the
-   * cluster. See the OpenID Connect Discovery 1.0 specification for details.
-   * 
- * - * Protobuf type {@code google.container.v1.GetOpenIDConfigRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GetOpenIDConfigRequest) - com.google.container.v1.GetOpenIDConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOpenIDConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOpenIDConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetOpenIDConfigRequest.class, - com.google.container.v1.GetOpenIDConfigRequest.Builder.class); - } - - // Construct using com.google.container.v1.GetOpenIDConfigRequest.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_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOpenIDConfigRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GetOpenIDConfigRequest getDefaultInstanceForType() { - return com.google.container.v1.GetOpenIDConfigRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GetOpenIDConfigRequest build() { - com.google.container.v1.GetOpenIDConfigRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GetOpenIDConfigRequest buildPartial() { - com.google.container.v1.GetOpenIDConfigRequest result = - new com.google.container.v1.GetOpenIDConfigRequest(this); - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GetOpenIDConfigRequest) { - return mergeFrom((com.google.container.v1.GetOpenIDConfigRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GetOpenIDConfigRequest other) { - if (other == com.google.container.v1.GetOpenIDConfigRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - 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.container.v1.GetOpenIDConfigRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.GetOpenIDConfigRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * The cluster (project, location, cluster id) to get the discovery document
-     * for. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string parent = 1; - * - * @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; - } - } - /** - * - * - *
-     * The cluster (project, location, cluster id) to get the discovery document
-     * for. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string parent = 1; - * - * @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; - } - } - /** - * - * - *
-     * The cluster (project, location, cluster id) to get the discovery document
-     * for. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string parent = 1; - * - * @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; - } - /** - * - * - *
-     * The cluster (project, location, cluster id) to get the discovery document
-     * for. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string parent = 1; - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * The cluster (project, location, cluster id) to get the discovery document
-     * for. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string parent = 1; - * - * @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; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.GetOpenIDConfigRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GetOpenIDConfigRequest) - private static final com.google.container.v1.GetOpenIDConfigRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GetOpenIDConfigRequest(); - } - - public static com.google.container.v1.GetOpenIDConfigRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOpenIDConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetOpenIDConfigRequest(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.container.v1.GetOpenIDConfigRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequestOrBuilder.java deleted file mode 100644 index 8a930e15..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequestOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface GetOpenIDConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GetOpenIDConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The cluster (project, location, cluster id) to get the discovery document
-   * for. Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string parent = 1; - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * The cluster (project, location, cluster id) to get the discovery document
-   * for. Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string parent = 1; - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponse.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponse.java deleted file mode 100644 index 304e4b56..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponse.java +++ /dev/null @@ -1,2210 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * GetOpenIDConfigResponse is an OIDC discovery document for the cluster.
- * See the OpenID Connect Discovery 1.0 specification for details.
- * 
- * - * Protobuf type {@code google.container.v1.GetOpenIDConfigResponse} - */ -public final class GetOpenIDConfigResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.GetOpenIDConfigResponse) - GetOpenIDConfigResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetOpenIDConfigResponse.newBuilder() to construct. - private GetOpenIDConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetOpenIDConfigResponse() { - issuer_ = ""; - jwksUri_ = ""; - responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetOpenIDConfigResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetOpenIDConfigResponse( - 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(); - - issuer_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - jwksUri_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responseTypesSupported_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - responseTypesSupported_.add(s); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - subjectTypesSupported_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - subjectTypesSupported_.add(s); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - idTokenSigningAlgValuesSupported_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - idTokenSigningAlgValuesSupported_.add(s); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - claimsSupported_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - claimsSupported_.add(s); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - grantTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000010; - } - grantTypes_.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)) { - responseTypesSupported_ = responseTypesSupported_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - subjectTypesSupported_ = subjectTypesSupported_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - claimsSupported_ = claimsSupported_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - grantTypes_ = grantTypes_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOpenIDConfigResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOpenIDConfigResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetOpenIDConfigResponse.class, - com.google.container.v1.GetOpenIDConfigResponse.Builder.class); - } - - public static final int ISSUER_FIELD_NUMBER = 1; - private volatile java.lang.Object issuer_; - /** - * - * - *
-   * OIDC Issuer.
-   * 
- * - * string issuer = 1; - * - * @return The issuer. - */ - @java.lang.Override - public java.lang.String getIssuer() { - java.lang.Object ref = issuer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - issuer_ = s; - return s; - } - } - /** - * - * - *
-   * OIDC Issuer.
-   * 
- * - * string issuer = 1; - * - * @return The bytes for issuer. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIssuerBytes() { - java.lang.Object ref = issuer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - issuer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JWKS_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object jwksUri_; - /** - * - * - *
-   * JSON Web Key uri.
-   * 
- * - * string jwks_uri = 2; - * - * @return The jwksUri. - */ - @java.lang.Override - public java.lang.String getJwksUri() { - java.lang.Object ref = jwksUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jwksUri_ = s; - return s; - } - } - /** - * - * - *
-   * JSON Web Key uri.
-   * 
- * - * string jwks_uri = 2; - * - * @return The bytes for jwksUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJwksUriBytes() { - java.lang.Object ref = jwksUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jwksUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESPONSE_TYPES_SUPPORTED_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList responseTypesSupported_; - /** - * - * - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * - * @return A list containing the responseTypesSupported. - */ - public com.google.protobuf.ProtocolStringList getResponseTypesSupportedList() { - return responseTypesSupported_; - } - /** - * - * - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * - * @return The count of responseTypesSupported. - */ - public int getResponseTypesSupportedCount() { - return responseTypesSupported_.size(); - } - /** - * - * - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * - * @param index The index of the element to return. - * @return The responseTypesSupported at the given index. - */ - public java.lang.String getResponseTypesSupported(int index) { - return responseTypesSupported_.get(index); - } - /** - * - * - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * - * @param index The index of the value to return. - * @return The bytes of the responseTypesSupported at the given index. - */ - public com.google.protobuf.ByteString getResponseTypesSupportedBytes(int index) { - return responseTypesSupported_.getByteString(index); - } - - public static final int SUBJECT_TYPES_SUPPORTED_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList subjectTypesSupported_; - /** - * - * - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * - * @return A list containing the subjectTypesSupported. - */ - public com.google.protobuf.ProtocolStringList getSubjectTypesSupportedList() { - return subjectTypesSupported_; - } - /** - * - * - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * - * @return The count of subjectTypesSupported. - */ - public int getSubjectTypesSupportedCount() { - return subjectTypesSupported_.size(); - } - /** - * - * - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * - * @param index The index of the element to return. - * @return The subjectTypesSupported at the given index. - */ - public java.lang.String getSubjectTypesSupported(int index) { - return subjectTypesSupported_.get(index); - } - /** - * - * - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * - * @param index The index of the value to return. - * @return The bytes of the subjectTypesSupported at the given index. - */ - public com.google.protobuf.ByteString getSubjectTypesSupportedBytes(int index) { - return subjectTypesSupported_.getByteString(index); - } - - public static final int ID_TOKEN_SIGNING_ALG_VALUES_SUPPORTED_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList idTokenSigningAlgValuesSupported_; - /** - * - * - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * - * @return A list containing the idTokenSigningAlgValuesSupported. - */ - public com.google.protobuf.ProtocolStringList getIdTokenSigningAlgValuesSupportedList() { - return idTokenSigningAlgValuesSupported_; - } - /** - * - * - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * - * @return The count of idTokenSigningAlgValuesSupported. - */ - public int getIdTokenSigningAlgValuesSupportedCount() { - return idTokenSigningAlgValuesSupported_.size(); - } - /** - * - * - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * - * @param index The index of the element to return. - * @return The idTokenSigningAlgValuesSupported at the given index. - */ - public java.lang.String getIdTokenSigningAlgValuesSupported(int index) { - return idTokenSigningAlgValuesSupported_.get(index); - } - /** - * - * - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * - * @param index The index of the value to return. - * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. - */ - public com.google.protobuf.ByteString getIdTokenSigningAlgValuesSupportedBytes(int index) { - return idTokenSigningAlgValuesSupported_.getByteString(index); - } - - public static final int CLAIMS_SUPPORTED_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList claimsSupported_; - /** - * - * - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * - * @return A list containing the claimsSupported. - */ - public com.google.protobuf.ProtocolStringList getClaimsSupportedList() { - return claimsSupported_; - } - /** - * - * - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * - * @return The count of claimsSupported. - */ - public int getClaimsSupportedCount() { - return claimsSupported_.size(); - } - /** - * - * - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * - * @param index The index of the element to return. - * @return The claimsSupported at the given index. - */ - public java.lang.String getClaimsSupported(int index) { - return claimsSupported_.get(index); - } - /** - * - * - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * - * @param index The index of the value to return. - * @return The bytes of the claimsSupported at the given index. - */ - public com.google.protobuf.ByteString getClaimsSupportedBytes(int index) { - return claimsSupported_.getByteString(index); - } - - public static final int GRANT_TYPES_FIELD_NUMBER = 7; - private com.google.protobuf.LazyStringList grantTypes_; - /** - * - * - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * - * @return A list containing the grantTypes. - */ - public com.google.protobuf.ProtocolStringList getGrantTypesList() { - return grantTypes_; - } - /** - * - * - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * - * @return The count of grantTypes. - */ - public int getGrantTypesCount() { - return grantTypes_.size(); - } - /** - * - * - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * - * @param index The index of the element to return. - * @return The grantTypes at the given index. - */ - public java.lang.String getGrantTypes(int index) { - return grantTypes_.get(index); - } - /** - * - * - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * - * @param index The index of the value to return. - * @return The bytes of the grantTypes at the given index. - */ - public com.google.protobuf.ByteString getGrantTypesBytes(int index) { - return grantTypes_.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 (!getIssuerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, issuer_); - } - if (!getJwksUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jwksUri_); - } - for (int i = 0; i < responseTypesSupported_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, responseTypesSupported_.getRaw(i)); - } - for (int i = 0; i < subjectTypesSupported_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 4, subjectTypesSupported_.getRaw(i)); - } - for (int i = 0; i < idTokenSigningAlgValuesSupported_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 5, idTokenSigningAlgValuesSupported_.getRaw(i)); - } - for (int i = 0; i < claimsSupported_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, claimsSupported_.getRaw(i)); - } - for (int i = 0; i < grantTypes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, grantTypes_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIssuerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, issuer_); - } - if (!getJwksUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jwksUri_); - } - { - int dataSize = 0; - for (int i = 0; i < responseTypesSupported_.size(); i++) { - dataSize += computeStringSizeNoTag(responseTypesSupported_.getRaw(i)); - } - size += dataSize; - size += 1 * getResponseTypesSupportedList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < subjectTypesSupported_.size(); i++) { - dataSize += computeStringSizeNoTag(subjectTypesSupported_.getRaw(i)); - } - size += dataSize; - size += 1 * getSubjectTypesSupportedList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < idTokenSigningAlgValuesSupported_.size(); i++) { - dataSize += computeStringSizeNoTag(idTokenSigningAlgValuesSupported_.getRaw(i)); - } - size += dataSize; - size += 1 * getIdTokenSigningAlgValuesSupportedList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < claimsSupported_.size(); i++) { - dataSize += computeStringSizeNoTag(claimsSupported_.getRaw(i)); - } - size += dataSize; - size += 1 * getClaimsSupportedList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < grantTypes_.size(); i++) { - dataSize += computeStringSizeNoTag(grantTypes_.getRaw(i)); - } - size += dataSize; - size += 1 * getGrantTypesList().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.container.v1.GetOpenIDConfigResponse)) { - return super.equals(obj); - } - com.google.container.v1.GetOpenIDConfigResponse other = - (com.google.container.v1.GetOpenIDConfigResponse) obj; - - if (!getIssuer().equals(other.getIssuer())) return false; - if (!getJwksUri().equals(other.getJwksUri())) return false; - if (!getResponseTypesSupportedList().equals(other.getResponseTypesSupportedList())) - return false; - if (!getSubjectTypesSupportedList().equals(other.getSubjectTypesSupportedList())) return false; - if (!getIdTokenSigningAlgValuesSupportedList() - .equals(other.getIdTokenSigningAlgValuesSupportedList())) return false; - if (!getClaimsSupportedList().equals(other.getClaimsSupportedList())) return false; - if (!getGrantTypesList().equals(other.getGrantTypesList())) 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) + ISSUER_FIELD_NUMBER; - hash = (53 * hash) + getIssuer().hashCode(); - hash = (37 * hash) + JWKS_URI_FIELD_NUMBER; - hash = (53 * hash) + getJwksUri().hashCode(); - if (getResponseTypesSupportedCount() > 0) { - hash = (37 * hash) + RESPONSE_TYPES_SUPPORTED_FIELD_NUMBER; - hash = (53 * hash) + getResponseTypesSupportedList().hashCode(); - } - if (getSubjectTypesSupportedCount() > 0) { - hash = (37 * hash) + SUBJECT_TYPES_SUPPORTED_FIELD_NUMBER; - hash = (53 * hash) + getSubjectTypesSupportedList().hashCode(); - } - if (getIdTokenSigningAlgValuesSupportedCount() > 0) { - hash = (37 * hash) + ID_TOKEN_SIGNING_ALG_VALUES_SUPPORTED_FIELD_NUMBER; - hash = (53 * hash) + getIdTokenSigningAlgValuesSupportedList().hashCode(); - } - if (getClaimsSupportedCount() > 0) { - hash = (37 * hash) + CLAIMS_SUPPORTED_FIELD_NUMBER; - hash = (53 * hash) + getClaimsSupportedList().hashCode(); - } - if (getGrantTypesCount() > 0) { - hash = (37 * hash) + GRANT_TYPES_FIELD_NUMBER; - hash = (53 * hash) + getGrantTypesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetOpenIDConfigResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.GetOpenIDConfigResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * GetOpenIDConfigResponse is an OIDC discovery document for the cluster.
-   * See the OpenID Connect Discovery 1.0 specification for details.
-   * 
- * - * Protobuf type {@code google.container.v1.GetOpenIDConfigResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GetOpenIDConfigResponse) - com.google.container.v1.GetOpenIDConfigResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOpenIDConfigResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOpenIDConfigResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetOpenIDConfigResponse.class, - com.google.container.v1.GetOpenIDConfigResponse.Builder.class); - } - - // Construct using com.google.container.v1.GetOpenIDConfigResponse.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(); - issuer_ = ""; - - jwksUri_ = ""; - - responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOpenIDConfigResponse_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GetOpenIDConfigResponse getDefaultInstanceForType() { - return com.google.container.v1.GetOpenIDConfigResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GetOpenIDConfigResponse build() { - com.google.container.v1.GetOpenIDConfigResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GetOpenIDConfigResponse buildPartial() { - com.google.container.v1.GetOpenIDConfigResponse result = - new com.google.container.v1.GetOpenIDConfigResponse(this); - int from_bitField0_ = bitField0_; - result.issuer_ = issuer_; - result.jwksUri_ = jwksUri_; - if (((bitField0_ & 0x00000001) != 0)) { - responseTypesSupported_ = responseTypesSupported_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.responseTypesSupported_ = responseTypesSupported_; - if (((bitField0_ & 0x00000002) != 0)) { - subjectTypesSupported_ = subjectTypesSupported_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.subjectTypesSupported_ = subjectTypesSupported_; - if (((bitField0_ & 0x00000004) != 0)) { - idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.idTokenSigningAlgValuesSupported_ = idTokenSigningAlgValuesSupported_; - if (((bitField0_ & 0x00000008) != 0)) { - claimsSupported_ = claimsSupported_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.claimsSupported_ = claimsSupported_; - if (((bitField0_ & 0x00000010) != 0)) { - grantTypes_ = grantTypes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.grantTypes_ = grantTypes_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.GetOpenIDConfigResponse) { - return mergeFrom((com.google.container.v1.GetOpenIDConfigResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GetOpenIDConfigResponse other) { - if (other == com.google.container.v1.GetOpenIDConfigResponse.getDefaultInstance()) - return this; - if (!other.getIssuer().isEmpty()) { - issuer_ = other.issuer_; - onChanged(); - } - if (!other.getJwksUri().isEmpty()) { - jwksUri_ = other.jwksUri_; - onChanged(); - } - if (!other.responseTypesSupported_.isEmpty()) { - if (responseTypesSupported_.isEmpty()) { - responseTypesSupported_ = other.responseTypesSupported_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureResponseTypesSupportedIsMutable(); - responseTypesSupported_.addAll(other.responseTypesSupported_); - } - onChanged(); - } - if (!other.subjectTypesSupported_.isEmpty()) { - if (subjectTypesSupported_.isEmpty()) { - subjectTypesSupported_ = other.subjectTypesSupported_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSubjectTypesSupportedIsMutable(); - subjectTypesSupported_.addAll(other.subjectTypesSupported_); - } - onChanged(); - } - if (!other.idTokenSigningAlgValuesSupported_.isEmpty()) { - if (idTokenSigningAlgValuesSupported_.isEmpty()) { - idTokenSigningAlgValuesSupported_ = other.idTokenSigningAlgValuesSupported_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureIdTokenSigningAlgValuesSupportedIsMutable(); - idTokenSigningAlgValuesSupported_.addAll(other.idTokenSigningAlgValuesSupported_); - } - onChanged(); - } - if (!other.claimsSupported_.isEmpty()) { - if (claimsSupported_.isEmpty()) { - claimsSupported_ = other.claimsSupported_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureClaimsSupportedIsMutable(); - claimsSupported_.addAll(other.claimsSupported_); - } - onChanged(); - } - if (!other.grantTypes_.isEmpty()) { - if (grantTypes_.isEmpty()) { - grantTypes_ = other.grantTypes_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureGrantTypesIsMutable(); - grantTypes_.addAll(other.grantTypes_); - } - 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.container.v1.GetOpenIDConfigResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.GetOpenIDConfigResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object issuer_ = ""; - /** - * - * - *
-     * OIDC Issuer.
-     * 
- * - * string issuer = 1; - * - * @return The issuer. - */ - public java.lang.String getIssuer() { - java.lang.Object ref = issuer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - issuer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * OIDC Issuer.
-     * 
- * - * string issuer = 1; - * - * @return The bytes for issuer. - */ - public com.google.protobuf.ByteString getIssuerBytes() { - java.lang.Object ref = issuer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - issuer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * OIDC Issuer.
-     * 
- * - * string issuer = 1; - * - * @param value The issuer to set. - * @return This builder for chaining. - */ - public Builder setIssuer(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - issuer_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * OIDC Issuer.
-     * 
- * - * string issuer = 1; - * - * @return This builder for chaining. - */ - public Builder clearIssuer() { - - issuer_ = getDefaultInstance().getIssuer(); - onChanged(); - return this; - } - /** - * - * - *
-     * OIDC Issuer.
-     * 
- * - * string issuer = 1; - * - * @param value The bytes for issuer to set. - * @return This builder for chaining. - */ - public Builder setIssuerBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - issuer_ = value; - onChanged(); - return this; - } - - private java.lang.Object jwksUri_ = ""; - /** - * - * - *
-     * JSON Web Key uri.
-     * 
- * - * string jwks_uri = 2; - * - * @return The jwksUri. - */ - public java.lang.String getJwksUri() { - java.lang.Object ref = jwksUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jwksUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * JSON Web Key uri.
-     * 
- * - * string jwks_uri = 2; - * - * @return The bytes for jwksUri. - */ - public com.google.protobuf.ByteString getJwksUriBytes() { - java.lang.Object ref = jwksUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jwksUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * JSON Web Key uri.
-     * 
- * - * string jwks_uri = 2; - * - * @param value The jwksUri to set. - * @return This builder for chaining. - */ - public Builder setJwksUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jwksUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * JSON Web Key uri.
-     * 
- * - * string jwks_uri = 2; - * - * @return This builder for chaining. - */ - public Builder clearJwksUri() { - - jwksUri_ = getDefaultInstance().getJwksUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * JSON Web Key uri.
-     * 
- * - * string jwks_uri = 2; - * - * @param value The bytes for jwksUri to set. - * @return This builder for chaining. - */ - public Builder setJwksUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jwksUri_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList responseTypesSupported_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureResponseTypesSupportedIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - responseTypesSupported_ = - new com.google.protobuf.LazyStringArrayList(responseTypesSupported_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * - * @return A list containing the responseTypesSupported. - */ - public com.google.protobuf.ProtocolStringList getResponseTypesSupportedList() { - return responseTypesSupported_.getUnmodifiableView(); - } - /** - * - * - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * - * @return The count of responseTypesSupported. - */ - public int getResponseTypesSupportedCount() { - return responseTypesSupported_.size(); - } - /** - * - * - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * - * @param index The index of the element to return. - * @return The responseTypesSupported at the given index. - */ - public java.lang.String getResponseTypesSupported(int index) { - return responseTypesSupported_.get(index); - } - /** - * - * - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * - * @param index The index of the value to return. - * @return The bytes of the responseTypesSupported at the given index. - */ - public com.google.protobuf.ByteString getResponseTypesSupportedBytes(int index) { - return responseTypesSupported_.getByteString(index); - } - /** - * - * - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * - * @param index The index to set the value at. - * @param value The responseTypesSupported to set. - * @return This builder for chaining. - */ - public Builder setResponseTypesSupported(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResponseTypesSupportedIsMutable(); - responseTypesSupported_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * - * @param value The responseTypesSupported to add. - * @return This builder for chaining. - */ - public Builder addResponseTypesSupported(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResponseTypesSupportedIsMutable(); - responseTypesSupported_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * - * @param values The responseTypesSupported to add. - * @return This builder for chaining. - */ - public Builder addAllResponseTypesSupported(java.lang.Iterable values) { - ensureResponseTypesSupportedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responseTypesSupported_); - onChanged(); - return this; - } - /** - * - * - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * - * @return This builder for chaining. - */ - public Builder clearResponseTypesSupported() { - responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Supported response types.
-     * 
- * - * repeated string response_types_supported = 3; - * - * @param value The bytes of the responseTypesSupported to add. - * @return This builder for chaining. - */ - public Builder addResponseTypesSupportedBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureResponseTypesSupportedIsMutable(); - responseTypesSupported_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList subjectTypesSupported_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureSubjectTypesSupportedIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - subjectTypesSupported_ = - new com.google.protobuf.LazyStringArrayList(subjectTypesSupported_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * - * @return A list containing the subjectTypesSupported. - */ - public com.google.protobuf.ProtocolStringList getSubjectTypesSupportedList() { - return subjectTypesSupported_.getUnmodifiableView(); - } - /** - * - * - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * - * @return The count of subjectTypesSupported. - */ - public int getSubjectTypesSupportedCount() { - return subjectTypesSupported_.size(); - } - /** - * - * - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * - * @param index The index of the element to return. - * @return The subjectTypesSupported at the given index. - */ - public java.lang.String getSubjectTypesSupported(int index) { - return subjectTypesSupported_.get(index); - } - /** - * - * - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * - * @param index The index of the value to return. - * @return The bytes of the subjectTypesSupported at the given index. - */ - public com.google.protobuf.ByteString getSubjectTypesSupportedBytes(int index) { - return subjectTypesSupported_.getByteString(index); - } - /** - * - * - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * - * @param index The index to set the value at. - * @param value The subjectTypesSupported to set. - * @return This builder for chaining. - */ - public Builder setSubjectTypesSupported(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubjectTypesSupportedIsMutable(); - subjectTypesSupported_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * - * @param value The subjectTypesSupported to add. - * @return This builder for chaining. - */ - public Builder addSubjectTypesSupported(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubjectTypesSupportedIsMutable(); - subjectTypesSupported_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * - * @param values The subjectTypesSupported to add. - * @return This builder for chaining. - */ - public Builder addAllSubjectTypesSupported(java.lang.Iterable values) { - ensureSubjectTypesSupportedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subjectTypesSupported_); - onChanged(); - return this; - } - /** - * - * - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * - * @return This builder for chaining. - */ - public Builder clearSubjectTypesSupported() { - subjectTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Supported subject types.
-     * 
- * - * repeated string subject_types_supported = 4; - * - * @param value The bytes of the subjectTypesSupported to add. - * @return This builder for chaining. - */ - public Builder addSubjectTypesSupportedBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureSubjectTypesSupportedIsMutable(); - subjectTypesSupported_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList idTokenSigningAlgValuesSupported_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureIdTokenSigningAlgValuesSupportedIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - idTokenSigningAlgValuesSupported_ = - new com.google.protobuf.LazyStringArrayList(idTokenSigningAlgValuesSupported_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * - * @return A list containing the idTokenSigningAlgValuesSupported. - */ - public com.google.protobuf.ProtocolStringList getIdTokenSigningAlgValuesSupportedList() { - return idTokenSigningAlgValuesSupported_.getUnmodifiableView(); - } - /** - * - * - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * - * @return The count of idTokenSigningAlgValuesSupported. - */ - public int getIdTokenSigningAlgValuesSupportedCount() { - return idTokenSigningAlgValuesSupported_.size(); - } - /** - * - * - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * - * @param index The index of the element to return. - * @return The idTokenSigningAlgValuesSupported at the given index. - */ - public java.lang.String getIdTokenSigningAlgValuesSupported(int index) { - return idTokenSigningAlgValuesSupported_.get(index); - } - /** - * - * - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * - * @param index The index of the value to return. - * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. - */ - public com.google.protobuf.ByteString getIdTokenSigningAlgValuesSupportedBytes(int index) { - return idTokenSigningAlgValuesSupported_.getByteString(index); - } - /** - * - * - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * - * @param index The index to set the value at. - * @param value The idTokenSigningAlgValuesSupported to set. - * @return This builder for chaining. - */ - public Builder setIdTokenSigningAlgValuesSupported(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIdTokenSigningAlgValuesSupportedIsMutable(); - idTokenSigningAlgValuesSupported_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * - * @param value The idTokenSigningAlgValuesSupported to add. - * @return This builder for chaining. - */ - public Builder addIdTokenSigningAlgValuesSupported(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIdTokenSigningAlgValuesSupportedIsMutable(); - idTokenSigningAlgValuesSupported_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * - * @param values The idTokenSigningAlgValuesSupported to add. - * @return This builder for chaining. - */ - public Builder addAllIdTokenSigningAlgValuesSupported( - java.lang.Iterable values) { - ensureIdTokenSigningAlgValuesSupportedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, idTokenSigningAlgValuesSupported_); - onChanged(); - return this; - } - /** - * - * - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * - * @return This builder for chaining. - */ - public Builder clearIdTokenSigningAlgValuesSupported() { - idTokenSigningAlgValuesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * supported ID Token signing Algorithms.
-     * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * - * @param value The bytes of the idTokenSigningAlgValuesSupported to add. - * @return This builder for chaining. - */ - public Builder addIdTokenSigningAlgValuesSupportedBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIdTokenSigningAlgValuesSupportedIsMutable(); - idTokenSigningAlgValuesSupported_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList claimsSupported_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureClaimsSupportedIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - claimsSupported_ = new com.google.protobuf.LazyStringArrayList(claimsSupported_); - bitField0_ |= 0x00000008; - } - } - /** - * - * - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * - * @return A list containing the claimsSupported. - */ - public com.google.protobuf.ProtocolStringList getClaimsSupportedList() { - return claimsSupported_.getUnmodifiableView(); - } - /** - * - * - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * - * @return The count of claimsSupported. - */ - public int getClaimsSupportedCount() { - return claimsSupported_.size(); - } - /** - * - * - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * - * @param index The index of the element to return. - * @return The claimsSupported at the given index. - */ - public java.lang.String getClaimsSupported(int index) { - return claimsSupported_.get(index); - } - /** - * - * - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * - * @param index The index of the value to return. - * @return The bytes of the claimsSupported at the given index. - */ - public com.google.protobuf.ByteString getClaimsSupportedBytes(int index) { - return claimsSupported_.getByteString(index); - } - /** - * - * - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * - * @param index The index to set the value at. - * @param value The claimsSupported to set. - * @return This builder for chaining. - */ - public Builder setClaimsSupported(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureClaimsSupportedIsMutable(); - claimsSupported_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * - * @param value The claimsSupported to add. - * @return This builder for chaining. - */ - public Builder addClaimsSupported(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureClaimsSupportedIsMutable(); - claimsSupported_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * - * @param values The claimsSupported to add. - * @return This builder for chaining. - */ - public Builder addAllClaimsSupported(java.lang.Iterable values) { - ensureClaimsSupportedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, claimsSupported_); - onChanged(); - return this; - } - /** - * - * - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * - * @return This builder for chaining. - */ - public Builder clearClaimsSupported() { - claimsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * Supported claims.
-     * 
- * - * repeated string claims_supported = 6; - * - * @param value The bytes of the claimsSupported to add. - * @return This builder for chaining. - */ - public Builder addClaimsSupportedBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureClaimsSupportedIsMutable(); - claimsSupported_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList grantTypes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureGrantTypesIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - grantTypes_ = new com.google.protobuf.LazyStringArrayList(grantTypes_); - bitField0_ |= 0x00000010; - } - } - /** - * - * - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * - * @return A list containing the grantTypes. - */ - public com.google.protobuf.ProtocolStringList getGrantTypesList() { - return grantTypes_.getUnmodifiableView(); - } - /** - * - * - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * - * @return The count of grantTypes. - */ - public int getGrantTypesCount() { - return grantTypes_.size(); - } - /** - * - * - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * - * @param index The index of the element to return. - * @return The grantTypes at the given index. - */ - public java.lang.String getGrantTypes(int index) { - return grantTypes_.get(index); - } - /** - * - * - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * - * @param index The index of the value to return. - * @return The bytes of the grantTypes at the given index. - */ - public com.google.protobuf.ByteString getGrantTypesBytes(int index) { - return grantTypes_.getByteString(index); - } - /** - * - * - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * - * @param index The index to set the value at. - * @param value The grantTypes to set. - * @return This builder for chaining. - */ - public Builder setGrantTypes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGrantTypesIsMutable(); - grantTypes_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * - * @param value The grantTypes to add. - * @return This builder for chaining. - */ - public Builder addGrantTypes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGrantTypesIsMutable(); - grantTypes_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * - * @param values The grantTypes to add. - * @return This builder for chaining. - */ - public Builder addAllGrantTypes(java.lang.Iterable values) { - ensureGrantTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, grantTypes_); - onChanged(); - return this; - } - /** - * - * - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * - * @return This builder for chaining. - */ - public Builder clearGrantTypes() { - grantTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - * - * - *
-     * Supported grant types.
-     * 
- * - * repeated string grant_types = 7; - * - * @param value The bytes of the grantTypes to add. - * @return This builder for chaining. - */ - public Builder addGrantTypesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureGrantTypesIsMutable(); - grantTypes_.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.container.v1.GetOpenIDConfigResponse) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GetOpenIDConfigResponse) - private static final com.google.container.v1.GetOpenIDConfigResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GetOpenIDConfigResponse(); - } - - public static com.google.container.v1.GetOpenIDConfigResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOpenIDConfigResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetOpenIDConfigResponse(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.container.v1.GetOpenIDConfigResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponseOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponseOrBuilder.java deleted file mode 100644 index 4a853087..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponseOrBuilder.java +++ /dev/null @@ -1,330 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface GetOpenIDConfigResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GetOpenIDConfigResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * OIDC Issuer.
-   * 
- * - * string issuer = 1; - * - * @return The issuer. - */ - java.lang.String getIssuer(); - /** - * - * - *
-   * OIDC Issuer.
-   * 
- * - * string issuer = 1; - * - * @return The bytes for issuer. - */ - com.google.protobuf.ByteString getIssuerBytes(); - - /** - * - * - *
-   * JSON Web Key uri.
-   * 
- * - * string jwks_uri = 2; - * - * @return The jwksUri. - */ - java.lang.String getJwksUri(); - /** - * - * - *
-   * JSON Web Key uri.
-   * 
- * - * string jwks_uri = 2; - * - * @return The bytes for jwksUri. - */ - com.google.protobuf.ByteString getJwksUriBytes(); - - /** - * - * - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * - * @return A list containing the responseTypesSupported. - */ - java.util.List getResponseTypesSupportedList(); - /** - * - * - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * - * @return The count of responseTypesSupported. - */ - int getResponseTypesSupportedCount(); - /** - * - * - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * - * @param index The index of the element to return. - * @return The responseTypesSupported at the given index. - */ - java.lang.String getResponseTypesSupported(int index); - /** - * - * - *
-   * Supported response types.
-   * 
- * - * repeated string response_types_supported = 3; - * - * @param index The index of the value to return. - * @return The bytes of the responseTypesSupported at the given index. - */ - com.google.protobuf.ByteString getResponseTypesSupportedBytes(int index); - - /** - * - * - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * - * @return A list containing the subjectTypesSupported. - */ - java.util.List getSubjectTypesSupportedList(); - /** - * - * - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * - * @return The count of subjectTypesSupported. - */ - int getSubjectTypesSupportedCount(); - /** - * - * - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * - * @param index The index of the element to return. - * @return The subjectTypesSupported at the given index. - */ - java.lang.String getSubjectTypesSupported(int index); - /** - * - * - *
-   * Supported subject types.
-   * 
- * - * repeated string subject_types_supported = 4; - * - * @param index The index of the value to return. - * @return The bytes of the subjectTypesSupported at the given index. - */ - com.google.protobuf.ByteString getSubjectTypesSupportedBytes(int index); - - /** - * - * - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * - * @return A list containing the idTokenSigningAlgValuesSupported. - */ - java.util.List getIdTokenSigningAlgValuesSupportedList(); - /** - * - * - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * - * @return The count of idTokenSigningAlgValuesSupported. - */ - int getIdTokenSigningAlgValuesSupportedCount(); - /** - * - * - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * - * @param index The index of the element to return. - * @return The idTokenSigningAlgValuesSupported at the given index. - */ - java.lang.String getIdTokenSigningAlgValuesSupported(int index); - /** - * - * - *
-   * supported ID Token signing Algorithms.
-   * 
- * - * repeated string id_token_signing_alg_values_supported = 5; - * - * @param index The index of the value to return. - * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. - */ - com.google.protobuf.ByteString getIdTokenSigningAlgValuesSupportedBytes(int index); - - /** - * - * - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * - * @return A list containing the claimsSupported. - */ - java.util.List getClaimsSupportedList(); - /** - * - * - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * - * @return The count of claimsSupported. - */ - int getClaimsSupportedCount(); - /** - * - * - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * - * @param index The index of the element to return. - * @return The claimsSupported at the given index. - */ - java.lang.String getClaimsSupported(int index); - /** - * - * - *
-   * Supported claims.
-   * 
- * - * repeated string claims_supported = 6; - * - * @param index The index of the value to return. - * @return The bytes of the claimsSupported at the given index. - */ - com.google.protobuf.ByteString getClaimsSupportedBytes(int index); - - /** - * - * - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * - * @return A list containing the grantTypes. - */ - java.util.List getGrantTypesList(); - /** - * - * - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * - * @return The count of grantTypes. - */ - int getGrantTypesCount(); - /** - * - * - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * - * @param index The index of the element to return. - * @return The grantTypes at the given index. - */ - java.lang.String getGrantTypes(int index); - /** - * - * - *
-   * Supported grant types.
-   * 
- * - * repeated string grant_types = 7; - * - * @param index The index of the value to return. - * @return The bytes of the grantTypes at the given index. - */ - com.google.protobuf.ByteString getGrantTypesBytes(int index); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java deleted file mode 100644 index 26f4daf1..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java +++ /dev/null @@ -1,1241 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * GetOperationRequest gets a single operation.
- * 
- * - * Protobuf type {@code google.container.v1.GetOperationRequest} - */ -public final class GetOperationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.GetOperationRequest) - GetOperationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetOperationRequest.newBuilder() to construct. - private GetOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetOperationRequest() { - projectId_ = ""; - zone_ = ""; - operationId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetOperationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetOperationRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - operationId_ = s; - break; - } - case 42: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOperationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOperationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetOperationRequest.class, - com.google.container.v1.GetOperationRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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 OPERATION_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object operationId_; - /** - * - * - *
-   * Deprecated. The server-assigned `name` of the operation.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @return The operationId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The server-assigned `name` of the operation.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @return The bytes for operationId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, operation id) of the operation to get.
-   * Specified in the format `projects/*/locations/*/operations/*`.
-   * 
- * - * string name = 5; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, operation id) of the operation to get.
-   * Specified in the format `projects/*/locations/*/operations/*`.
-   * 
- * - * string name = 5; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getOperationIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, operationId_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getOperationIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, operationId_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.container.v1.GetOperationRequest)) { - return super.equals(obj); - } - com.google.container.v1.GetOperationRequest other = - (com.google.container.v1.GetOperationRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getOperationId().equals(other.getOperationId())) return false; - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; - hash = (53 * hash) + getOperationId().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.container.v1.GetOperationRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetOperationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetOperationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetOperationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetOperationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetOperationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetOperationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetOperationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetOperationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetOperationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetOperationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetOperationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.GetOperationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * GetOperationRequest gets a single operation.
-   * 
- * - * Protobuf type {@code google.container.v1.GetOperationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GetOperationRequest) - com.google.container.v1.GetOperationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOperationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOperationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetOperationRequest.class, - com.google.container.v1.GetOperationRequest.Builder.class); - } - - // Construct using com.google.container.v1.GetOperationRequest.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_ = ""; - - zone_ = ""; - - operationId_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetOperationRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GetOperationRequest getDefaultInstanceForType() { - return com.google.container.v1.GetOperationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GetOperationRequest build() { - com.google.container.v1.GetOperationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GetOperationRequest buildPartial() { - com.google.container.v1.GetOperationRequest result = - new com.google.container.v1.GetOperationRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.operationId_ = operationId_; - 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.container.v1.GetOperationRequest) { - return mergeFrom((com.google.container.v1.GetOperationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GetOperationRequest other) { - if (other == com.google.container.v1.GetOperationRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getOperationId().isEmpty()) { - operationId_ = other.operationId_; - onChanged(); - } - 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.container.v1.GetOperationRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.GetOperationRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object operationId_ = ""; - /** - * - * - *
-     * Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @return The operationId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @return The bytes for operationId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @param value The operationId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setOperationId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - operationId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearOperationId() { - - operationId_ = getDefaultInstance().getOperationId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The server-assigned `name` of the operation.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @param value The bytes for operationId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 name_ = ""; - /** - * - * - *
-     * The name (project, location, operation id) of the operation to get.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 5; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, operation id) of the operation to get.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 5; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, operation id) of the operation to get.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 5; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, operation id) of the operation to get.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 5; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, operation id) of the operation to get.
-     * Specified in the format `projects/*/locations/*/operations/*`.
-     * 
- * - * string name = 5; - * - * @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.container.v1.GetOperationRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GetOperationRequest) - private static final com.google.container.v1.GetOperationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GetOperationRequest(); - } - - public static com.google.container.v1.GetOperationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOperationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetOperationRequest(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.container.v1.GetOperationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java deleted file mode 100644 index e27dd4a9..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface GetOperationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GetOperationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The server-assigned `name` of the operation.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @return The operationId. - */ - @java.lang.Deprecated - java.lang.String getOperationId(); - /** - * - * - *
-   * Deprecated. The server-assigned `name` of the operation.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string operation_id = 3 [deprecated = true]; - * - * @return The bytes for operationId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getOperationIdBytes(); - - /** - * - * - *
-   * The name (project, location, operation id) of the operation to get.
-   * Specified in the format `projects/*/locations/*/operations/*`.
-   * 
- * - * string name = 5; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, operation id) of the operation to get.
-   * Specified in the format `projects/*/locations/*/operations/*`.
-   * 
- * - * string name = 5; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java deleted file mode 100644 index 63a16fef..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java +++ /dev/null @@ -1,1048 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Gets the current Kubernetes Engine service configuration.
- * 
- * - * Protobuf type {@code google.container.v1.GetServerConfigRequest} - */ -public final class GetServerConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.GetServerConfigRequest) - GetServerConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetServerConfigRequest.newBuilder() to construct. - private GetServerConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetServerConfigRequest() { - projectId_ = ""; - zone_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetServerConfigRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetServerConfigRequest( - 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(); - - zone_ = s; - break; - } - case 34: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetServerConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetServerConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetServerConfigRequest.class, - com.google.container.v1.GetServerConfigRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-   * operations for. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-   * operations for. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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 NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project and location) of the server config to get,
-   * specified in the format `projects/*/locations/*`.
-   * 
- * - * string name = 4; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project and location) of the server config to get,
-   * specified in the format `projects/*/locations/*`.
-   * 
- * - * string name = 4; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.container.v1.GetServerConfigRequest)) { - return super.equals(obj); - } - com.google.container.v1.GetServerConfigRequest other = - (com.google.container.v1.GetServerConfigRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().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.container.v1.GetServerConfigRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetServerConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetServerConfigRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetServerConfigRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetServerConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.GetServerConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.GetServerConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetServerConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetServerConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetServerConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.GetServerConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.GetServerConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.GetServerConfigRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Gets the current Kubernetes Engine service configuration.
-   * 
- * - * Protobuf type {@code google.container.v1.GetServerConfigRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.GetServerConfigRequest) - com.google.container.v1.GetServerConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetServerConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetServerConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.GetServerConfigRequest.class, - com.google.container.v1.GetServerConfigRequest.Builder.class); - } - - // Construct using com.google.container.v1.GetServerConfigRequest.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_ = ""; - - zone_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_GetServerConfigRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.GetServerConfigRequest getDefaultInstanceForType() { - return com.google.container.v1.GetServerConfigRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.GetServerConfigRequest build() { - com.google.container.v1.GetServerConfigRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.GetServerConfigRequest buildPartial() { - com.google.container.v1.GetServerConfigRequest result = - new com.google.container.v1.GetServerConfigRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - 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.container.v1.GetServerConfigRequest) { - return mergeFrom((com.google.container.v1.GetServerConfigRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.GetServerConfigRequest other) { - if (other == com.google.container.v1.GetServerConfigRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - 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.container.v1.GetServerConfigRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.GetServerConfigRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-     * operations for. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-     * operations for. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-     * operations for. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-     * operations for. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-     * operations for. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project and location) of the server config to get,
-     * specified in the format `projects/*/locations/*`.
-     * 
- * - * string name = 4; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project and location) of the server config to get,
-     * specified in the format `projects/*/locations/*`.
-     * 
- * - * string name = 4; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project and location) of the server config to get,
-     * specified in the format `projects/*/locations/*`.
-     * 
- * - * string name = 4; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project and location) of the server config to get,
-     * specified in the format `projects/*/locations/*`.
-     * 
- * - * string name = 4; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project and location) of the server config to get,
-     * specified in the format `projects/*/locations/*`.
-     * 
- * - * string name = 4; - * - * @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.container.v1.GetServerConfigRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.GetServerConfigRequest) - private static final com.google.container.v1.GetServerConfigRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.GetServerConfigRequest(); - } - - public static com.google.container.v1.GetServerConfigRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetServerConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetServerConfigRequest(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.container.v1.GetServerConfigRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java deleted file mode 100644 index 93b3e486..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface GetServerConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.GetServerConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-   * operations for. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-   * operations for. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * The name (project and location) of the server config to get,
-   * specified in the format `projects/*/locations/*`.
-   * 
- * - * string name = 4; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project and location) of the server config to get,
-   * specified in the format `projects/*/locations/*`.
-   * 
- * - * string name = 4; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscaling.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscaling.java deleted file mode 100644 index 7e598dd1..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscaling.java +++ /dev/null @@ -1,557 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Configuration options for the horizontal pod autoscaling feature, which
- * increases or decreases the number of replica pods a replication controller
- * has based on the resource usage of the existing pods.
- * 
- * - * Protobuf type {@code google.container.v1.HorizontalPodAutoscaling} - */ -public final class HorizontalPodAutoscaling extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.HorizontalPodAutoscaling) - HorizontalPodAutoscalingOrBuilder { - private static final long serialVersionUID = 0L; - // Use HorizontalPodAutoscaling.newBuilder() to construct. - private HorizontalPodAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private HorizontalPodAutoscaling() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new HorizontalPodAutoscaling(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private HorizontalPodAutoscaling( - 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: - { - disabled_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_HorizontalPodAutoscaling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_HorizontalPodAutoscaling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.HorizontalPodAutoscaling.class, - com.google.container.v1.HorizontalPodAutoscaling.Builder.class); - } - - public static final int DISABLED_FIELD_NUMBER = 1; - private boolean disabled_; - /** - * - * - *
-   * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
-   * When enabled, it ensures that metrics are collected into Stackdriver
-   * Monitoring.
-   * 
- * - * bool disabled = 1; - * - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (disabled_ != false) { - output.writeBool(1, disabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (disabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disabled_); - } - 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.container.v1.HorizontalPodAutoscaling)) { - return super.equals(obj); - } - com.google.container.v1.HorizontalPodAutoscaling other = - (com.google.container.v1.HorizontalPodAutoscaling) obj; - - if (getDisabled() != other.getDisabled()) 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) + DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.HorizontalPodAutoscaling parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.HorizontalPodAutoscaling parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.HorizontalPodAutoscaling parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.HorizontalPodAutoscaling parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.HorizontalPodAutoscaling parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.HorizontalPodAutoscaling parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.HorizontalPodAutoscaling parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.HorizontalPodAutoscaling parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.HorizontalPodAutoscaling parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.HorizontalPodAutoscaling parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.HorizontalPodAutoscaling parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.HorizontalPodAutoscaling parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.HorizontalPodAutoscaling prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 options for the horizontal pod autoscaling feature, which
-   * increases or decreases the number of replica pods a replication controller
-   * has based on the resource usage of the existing pods.
-   * 
- * - * Protobuf type {@code google.container.v1.HorizontalPodAutoscaling} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.HorizontalPodAutoscaling) - com.google.container.v1.HorizontalPodAutoscalingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_HorizontalPodAutoscaling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_HorizontalPodAutoscaling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.HorizontalPodAutoscaling.class, - com.google.container.v1.HorizontalPodAutoscaling.Builder.class); - } - - // Construct using com.google.container.v1.HorizontalPodAutoscaling.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(); - disabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_HorizontalPodAutoscaling_descriptor; - } - - @java.lang.Override - public com.google.container.v1.HorizontalPodAutoscaling getDefaultInstanceForType() { - return com.google.container.v1.HorizontalPodAutoscaling.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.HorizontalPodAutoscaling build() { - com.google.container.v1.HorizontalPodAutoscaling result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.HorizontalPodAutoscaling buildPartial() { - com.google.container.v1.HorizontalPodAutoscaling result = - new com.google.container.v1.HorizontalPodAutoscaling(this); - result.disabled_ = disabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.HorizontalPodAutoscaling) { - return mergeFrom((com.google.container.v1.HorizontalPodAutoscaling) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.HorizontalPodAutoscaling other) { - if (other == com.google.container.v1.HorizontalPodAutoscaling.getDefaultInstance()) - return this; - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - 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.container.v1.HorizontalPodAutoscaling parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.HorizontalPodAutoscaling) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean disabled_; - /** - * - * - *
-     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
-     * When enabled, it ensures that metrics are collected into Stackdriver
-     * Monitoring.
-     * 
- * - * bool disabled = 1; - * - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - * - * - *
-     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
-     * When enabled, it ensures that metrics are collected into Stackdriver
-     * Monitoring.
-     * 
- * - * bool disabled = 1; - * - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
-     * When enabled, it ensures that metrics are collected into Stackdriver
-     * Monitoring.
-     * 
- * - * bool disabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisabled() { - - disabled_ = 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.container.v1.HorizontalPodAutoscaling) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.HorizontalPodAutoscaling) - private static final com.google.container.v1.HorizontalPodAutoscaling DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.HorizontalPodAutoscaling(); - } - - public static com.google.container.v1.HorizontalPodAutoscaling getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HorizontalPodAutoscaling parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HorizontalPodAutoscaling(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.container.v1.HorizontalPodAutoscaling getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscalingOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscalingOrBuilder.java deleted file mode 100644 index 435d0717..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscalingOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface HorizontalPodAutoscalingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.HorizontalPodAutoscaling) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
-   * When enabled, it ensures that metrics are collected into Stackdriver
-   * Monitoring.
-   * 
- * - * bool disabled = 1; - * - * @return The disabled. - */ - boolean getDisabled(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancing.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancing.java deleted file mode 100644 index 6754cf35..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancing.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Configuration options for the HTTP (L7) load balancing controller addon,
- * which makes it easy to set up HTTP load balancers for services in a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.HttpLoadBalancing} - */ -public final class HttpLoadBalancing extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.HttpLoadBalancing) - HttpLoadBalancingOrBuilder { - private static final long serialVersionUID = 0L; - // Use HttpLoadBalancing.newBuilder() to construct. - private HttpLoadBalancing(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private HttpLoadBalancing() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new HttpLoadBalancing(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private HttpLoadBalancing( - 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: - { - disabled_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_HttpLoadBalancing_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_HttpLoadBalancing_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.HttpLoadBalancing.class, - com.google.container.v1.HttpLoadBalancing.Builder.class); - } - - public static final int DISABLED_FIELD_NUMBER = 1; - private boolean disabled_; - /** - * - * - *
-   * Whether the HTTP Load Balancing controller is enabled in the cluster.
-   * When enabled, it runs a small pod in the cluster that manages the load
-   * balancers.
-   * 
- * - * bool disabled = 1; - * - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (disabled_ != false) { - output.writeBool(1, disabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (disabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disabled_); - } - 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.container.v1.HttpLoadBalancing)) { - return super.equals(obj); - } - com.google.container.v1.HttpLoadBalancing other = - (com.google.container.v1.HttpLoadBalancing) obj; - - if (getDisabled() != other.getDisabled()) 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) + DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.HttpLoadBalancing parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.HttpLoadBalancing parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.HttpLoadBalancing parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.HttpLoadBalancing parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.HttpLoadBalancing parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.HttpLoadBalancing parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.HttpLoadBalancing parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.HttpLoadBalancing parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.HttpLoadBalancing parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.HttpLoadBalancing parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.HttpLoadBalancing parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.HttpLoadBalancing parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.HttpLoadBalancing prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 options for the HTTP (L7) load balancing controller addon,
-   * which makes it easy to set up HTTP load balancers for services in a cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.HttpLoadBalancing} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.HttpLoadBalancing) - com.google.container.v1.HttpLoadBalancingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_HttpLoadBalancing_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_HttpLoadBalancing_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.HttpLoadBalancing.class, - com.google.container.v1.HttpLoadBalancing.Builder.class); - } - - // Construct using com.google.container.v1.HttpLoadBalancing.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(); - disabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_HttpLoadBalancing_descriptor; - } - - @java.lang.Override - public com.google.container.v1.HttpLoadBalancing getDefaultInstanceForType() { - return com.google.container.v1.HttpLoadBalancing.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.HttpLoadBalancing build() { - com.google.container.v1.HttpLoadBalancing result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.HttpLoadBalancing buildPartial() { - com.google.container.v1.HttpLoadBalancing result = - new com.google.container.v1.HttpLoadBalancing(this); - result.disabled_ = disabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.HttpLoadBalancing) { - return mergeFrom((com.google.container.v1.HttpLoadBalancing) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.HttpLoadBalancing other) { - if (other == com.google.container.v1.HttpLoadBalancing.getDefaultInstance()) return this; - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - 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.container.v1.HttpLoadBalancing parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.HttpLoadBalancing) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean disabled_; - /** - * - * - *
-     * Whether the HTTP Load Balancing controller is enabled in the cluster.
-     * When enabled, it runs a small pod in the cluster that manages the load
-     * balancers.
-     * 
- * - * bool disabled = 1; - * - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - * - * - *
-     * Whether the HTTP Load Balancing controller is enabled in the cluster.
-     * When enabled, it runs a small pod in the cluster that manages the load
-     * balancers.
-     * 
- * - * bool disabled = 1; - * - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the HTTP Load Balancing controller is enabled in the cluster.
-     * When enabled, it runs a small pod in the cluster that manages the load
-     * balancers.
-     * 
- * - * bool disabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisabled() { - - disabled_ = 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.container.v1.HttpLoadBalancing) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.HttpLoadBalancing) - private static final com.google.container.v1.HttpLoadBalancing DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.HttpLoadBalancing(); - } - - public static com.google.container.v1.HttpLoadBalancing getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HttpLoadBalancing parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HttpLoadBalancing(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.container.v1.HttpLoadBalancing getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancingOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancingOrBuilder.java deleted file mode 100644 index bccec888..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancingOrBuilder.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface HttpLoadBalancingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.HttpLoadBalancing) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether the HTTP Load Balancing controller is enabled in the cluster.
-   * When enabled, it runs a small pod in the cluster that manages the load
-   * balancers.
-   * 
- * - * bool disabled = 1; - * - * @return The disabled. - */ - boolean getDisabled(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java deleted file mode 100644 index f28c7f0a..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java +++ /dev/null @@ -1,2924 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Configuration for controlling how IPs are allocated in the cluster.
- * 
- * - * Protobuf type {@code google.container.v1.IPAllocationPolicy} - */ -public final class IPAllocationPolicy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.IPAllocationPolicy) - IPAllocationPolicyOrBuilder { - private static final long serialVersionUID = 0L; - // Use IPAllocationPolicy.newBuilder() to construct. - private IPAllocationPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private IPAllocationPolicy() { - subnetworkName_ = ""; - clusterIpv4Cidr_ = ""; - nodeIpv4Cidr_ = ""; - servicesIpv4Cidr_ = ""; - clusterSecondaryRangeName_ = ""; - servicesSecondaryRangeName_ = ""; - clusterIpv4CidrBlock_ = ""; - nodeIpv4CidrBlock_ = ""; - servicesIpv4CidrBlock_ = ""; - tpuIpv4CidrBlock_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new IPAllocationPolicy(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private IPAllocationPolicy( - 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: - { - useIpAliases_ = input.readBool(); - break; - } - case 16: - { - createSubnetwork_ = input.readBool(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - subnetworkName_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterIpv4Cidr_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - nodeIpv4Cidr_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - servicesIpv4Cidr_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterSecondaryRangeName_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - servicesSecondaryRangeName_ = s; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterIpv4CidrBlock_ = s; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - - nodeIpv4CidrBlock_ = s; - break; - } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - - servicesIpv4CidrBlock_ = s; - break; - } - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); - - tpuIpv4CidrBlock_ = s; - break; - } - case 120: - { - useRoutes_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IPAllocationPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IPAllocationPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.IPAllocationPolicy.class, - com.google.container.v1.IPAllocationPolicy.Builder.class); - } - - public static final int USE_IP_ALIASES_FIELD_NUMBER = 1; - private boolean useIpAliases_; - /** - * - * - *
-   * Whether alias IPs will be used for pod IPs in the cluster.
-   * This is used in conjunction with use_routes. It cannot
-   * be true if use_routes is true. If both use_ip_aliases and use_routes are
-   * false, then the server picks the default IP allocation mode
-   * 
- * - * bool use_ip_aliases = 1; - * - * @return The useIpAliases. - */ - @java.lang.Override - public boolean getUseIpAliases() { - return useIpAliases_; - } - - public static final int CREATE_SUBNETWORK_FIELD_NUMBER = 2; - private boolean createSubnetwork_; - /** - * - * - *
-   * Whether a new subnetwork will be created automatically for the cluster.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * 
- * - * bool create_subnetwork = 2; - * - * @return The createSubnetwork. - */ - @java.lang.Override - public boolean getCreateSubnetwork() { - return createSubnetwork_; - } - - public static final int SUBNETWORK_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object subnetworkName_; - /** - * - * - *
-   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-   * this field is empty, then an automatic name will be chosen for the new
-   * subnetwork.
-   * 
- * - * string subnetwork_name = 3; - * - * @return The subnetworkName. - */ - @java.lang.Override - public java.lang.String getSubnetworkName() { - java.lang.Object ref = subnetworkName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetworkName_ = s; - return s; - } - } - /** - * - * - *
-   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-   * this field is empty, then an automatic name will be chosen for the new
-   * subnetwork.
-   * 
- * - * string subnetwork_name = 3; - * - * @return The bytes for subnetworkName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSubnetworkNameBytes() { - java.lang.Object ref = subnetworkName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - subnetworkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_IPV4_CIDR_FIELD_NUMBER = 4; - private volatile java.lang.Object clusterIpv4Cidr_; - /** - * - * - *
-   * This field is deprecated, use cluster_ipv4_cidr_block.
-   * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * - * @return The clusterIpv4Cidr. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterIpv4Cidr() { - java.lang.Object ref = clusterIpv4Cidr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterIpv4Cidr_ = s; - return s; - } - } - /** - * - * - *
-   * This field is deprecated, use cluster_ipv4_cidr_block.
-   * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * - * @return The bytes for clusterIpv4Cidr. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { - java.lang.Object ref = clusterIpv4Cidr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_IPV4_CIDR_FIELD_NUMBER = 5; - private volatile java.lang.Object nodeIpv4Cidr_; - /** - * - * - *
-   * This field is deprecated, use node_ipv4_cidr_block.
-   * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * - * @return The nodeIpv4Cidr. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getNodeIpv4Cidr() { - java.lang.Object ref = nodeIpv4Cidr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeIpv4Cidr_ = s; - return s; - } - } - /** - * - * - *
-   * This field is deprecated, use node_ipv4_cidr_block.
-   * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * - * @return The bytes for nodeIpv4Cidr. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { - java.lang.Object ref = nodeIpv4Cidr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodeIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICES_IPV4_CIDR_FIELD_NUMBER = 6; - private volatile java.lang.Object servicesIpv4Cidr_; - /** - * - * - *
-   * This field is deprecated, use services_ipv4_cidr_block.
-   * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * - * @return The servicesIpv4Cidr. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getServicesIpv4Cidr() { - java.lang.Object ref = servicesIpv4Cidr_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesIpv4Cidr_ = s; - return s; - } - } - /** - * - * - *
-   * This field is deprecated, use services_ipv4_cidr_block.
-   * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * - * @return The bytes for servicesIpv4Cidr. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { - java.lang.Object ref = servicesIpv4Cidr_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - servicesIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_SECONDARY_RANGE_NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object clusterSecondaryRangeName_; - /** - * - * - *
-   * The name of the secondary range to be used for the cluster CIDR
-   * block.  The secondary range will be used for pod IP
-   * addresses. This must be an existing secondary range associated
-   * with the cluster subnetwork.
-   * This field is only applicable with use_ip_aliases is true and
-   * create_subnetwork is false.
-   * 
- * - * string cluster_secondary_range_name = 7; - * - * @return The clusterSecondaryRangeName. - */ - @java.lang.Override - public java.lang.String getClusterSecondaryRangeName() { - java.lang.Object ref = clusterSecondaryRangeName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterSecondaryRangeName_ = s; - return s; - } - } - /** - * - * - *
-   * The name of the secondary range to be used for the cluster CIDR
-   * block.  The secondary range will be used for pod IP
-   * addresses. This must be an existing secondary range associated
-   * with the cluster subnetwork.
-   * This field is only applicable with use_ip_aliases is true and
-   * create_subnetwork is false.
-   * 
- * - * string cluster_secondary_range_name = 7; - * - * @return The bytes for clusterSecondaryRangeName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterSecondaryRangeNameBytes() { - java.lang.Object ref = clusterSecondaryRangeName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterSecondaryRangeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICES_SECONDARY_RANGE_NAME_FIELD_NUMBER = 8; - private volatile java.lang.Object servicesSecondaryRangeName_; - /** - * - * - *
-   * The name of the secondary range to be used as for the services
-   * CIDR block.  The secondary range will be used for service
-   * ClusterIPs. This must be an existing secondary range associated
-   * with the cluster subnetwork.
-   * This field is only applicable with use_ip_aliases is true and
-   * create_subnetwork is false.
-   * 
- * - * string services_secondary_range_name = 8; - * - * @return The servicesSecondaryRangeName. - */ - @java.lang.Override - public java.lang.String getServicesSecondaryRangeName() { - java.lang.Object ref = servicesSecondaryRangeName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesSecondaryRangeName_ = s; - return s; - } - } - /** - * - * - *
-   * The name of the secondary range to be used as for the services
-   * CIDR block.  The secondary range will be used for service
-   * ClusterIPs. This must be an existing secondary range associated
-   * with the cluster subnetwork.
-   * This field is only applicable with use_ip_aliases is true and
-   * create_subnetwork is false.
-   * 
- * - * string services_secondary_range_name = 8; - * - * @return The bytes for servicesSecondaryRangeName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getServicesSecondaryRangeNameBytes() { - java.lang.Object ref = servicesSecondaryRangeName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - servicesSecondaryRangeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLUSTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 9; - private volatile java.lang.Object clusterIpv4CidrBlock_; - /** - * - * - *
-   * The IP address range for the cluster pod IPs. If this field is set, then
-   * `cluster.cluster_ipv4_cidr` must be left blank.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string cluster_ipv4_cidr_block = 9; - * - * @return The clusterIpv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getClusterIpv4CidrBlock() { - java.lang.Object ref = clusterIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterIpv4CidrBlock_ = s; - return s; - } - } - /** - * - * - *
-   * The IP address range for the cluster pod IPs. If this field is set, then
-   * `cluster.cluster_ipv4_cidr` must be left blank.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string cluster_ipv4_cidr_block = 9; - * - * @return The bytes for clusterIpv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterIpv4CidrBlockBytes() { - java.lang.Object ref = clusterIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_IPV4_CIDR_BLOCK_FIELD_NUMBER = 10; - private volatile java.lang.Object nodeIpv4CidrBlock_; - /** - * - * - *
-   * The IP address range of the instance IPs in this cluster.
-   * This is applicable only if `create_subnetwork` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string node_ipv4_cidr_block = 10; - * - * @return The nodeIpv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getNodeIpv4CidrBlock() { - java.lang.Object ref = nodeIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeIpv4CidrBlock_ = s; - return s; - } - } - /** - * - * - *
-   * The IP address range of the instance IPs in this cluster.
-   * This is applicable only if `create_subnetwork` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string node_ipv4_cidr_block = 10; - * - * @return The bytes for nodeIpv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNodeIpv4CidrBlockBytes() { - java.lang.Object ref = nodeIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodeIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICES_IPV4_CIDR_BLOCK_FIELD_NUMBER = 11; - private volatile java.lang.Object servicesIpv4CidrBlock_; - /** - * - * - *
-   * The IP address range of the services IPs in this cluster. If blank, a range
-   * will be automatically chosen with the default size.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string services_ipv4_cidr_block = 11; - * - * @return The servicesIpv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getServicesIpv4CidrBlock() { - java.lang.Object ref = servicesIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesIpv4CidrBlock_ = s; - return s; - } - } - /** - * - * - *
-   * The IP address range of the services IPs in this cluster. If blank, a range
-   * will be automatically chosen with the default size.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string services_ipv4_cidr_block = 11; - * - * @return The bytes for servicesIpv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString getServicesIpv4CidrBlockBytes() { - java.lang.Object ref = servicesIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - servicesIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER = 13; - private volatile java.lang.Object tpuIpv4CidrBlock_; - /** - * - * - *
-   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-   * range will be automatically chosen with the default size.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * If unspecified, the range will use the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string tpu_ipv4_cidr_block = 13; - * - * @return The tpuIpv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getTpuIpv4CidrBlock() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tpuIpv4CidrBlock_ = s; - return s; - } - } - /** - * - * - *
-   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-   * range will be automatically chosen with the default size.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * If unspecified, the range will use the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string tpu_ipv4_cidr_block = 13; - * - * @return The bytes for tpuIpv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tpuIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USE_ROUTES_FIELD_NUMBER = 15; - private boolean useRoutes_; - /** - * - * - *
-   * Whether routes will be used for pod IPs in the cluster.
-   * This is used in conjunction with use_ip_aliases. It cannot be true if
-   * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
-   * then the server picks the default IP allocation mode
-   * 
- * - * bool use_routes = 15; - * - * @return The useRoutes. - */ - @java.lang.Override - public boolean getUseRoutes() { - return useRoutes_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (useIpAliases_ != false) { - output.writeBool(1, useIpAliases_); - } - if (createSubnetwork_ != false) { - output.writeBool(2, createSubnetwork_); - } - if (!getSubnetworkNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subnetworkName_); - } - if (!getClusterIpv4CidrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clusterIpv4Cidr_); - } - if (!getNodeIpv4CidrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nodeIpv4Cidr_); - } - if (!getServicesIpv4CidrBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, servicesIpv4Cidr_); - } - if (!getClusterSecondaryRangeNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, clusterSecondaryRangeName_); - } - if (!getServicesSecondaryRangeNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, servicesSecondaryRangeName_); - } - if (!getClusterIpv4CidrBlockBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, clusterIpv4CidrBlock_); - } - if (!getNodeIpv4CidrBlockBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, nodeIpv4CidrBlock_); - } - if (!getServicesIpv4CidrBlockBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, servicesIpv4CidrBlock_); - } - if (!getTpuIpv4CidrBlockBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, tpuIpv4CidrBlock_); - } - if (useRoutes_ != false) { - output.writeBool(15, useRoutes_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (useIpAliases_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, useIpAliases_); - } - if (createSubnetwork_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, createSubnetwork_); - } - if (!getSubnetworkNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subnetworkName_); - } - if (!getClusterIpv4CidrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clusterIpv4Cidr_); - } - if (!getNodeIpv4CidrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nodeIpv4Cidr_); - } - if (!getServicesIpv4CidrBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, servicesIpv4Cidr_); - } - if (!getClusterSecondaryRangeNameBytes().isEmpty()) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(7, clusterSecondaryRangeName_); - } - if (!getServicesSecondaryRangeNameBytes().isEmpty()) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(8, servicesSecondaryRangeName_); - } - if (!getClusterIpv4CidrBlockBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, clusterIpv4CidrBlock_); - } - if (!getNodeIpv4CidrBlockBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, nodeIpv4CidrBlock_); - } - if (!getServicesIpv4CidrBlockBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, servicesIpv4CidrBlock_); - } - if (!getTpuIpv4CidrBlockBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, tpuIpv4CidrBlock_); - } - if (useRoutes_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, useRoutes_); - } - 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.container.v1.IPAllocationPolicy)) { - return super.equals(obj); - } - com.google.container.v1.IPAllocationPolicy other = - (com.google.container.v1.IPAllocationPolicy) obj; - - if (getUseIpAliases() != other.getUseIpAliases()) return false; - if (getCreateSubnetwork() != other.getCreateSubnetwork()) return false; - if (!getSubnetworkName().equals(other.getSubnetworkName())) return false; - if (!getClusterIpv4Cidr().equals(other.getClusterIpv4Cidr())) return false; - if (!getNodeIpv4Cidr().equals(other.getNodeIpv4Cidr())) return false; - if (!getServicesIpv4Cidr().equals(other.getServicesIpv4Cidr())) return false; - if (!getClusterSecondaryRangeName().equals(other.getClusterSecondaryRangeName())) return false; - if (!getServicesSecondaryRangeName().equals(other.getServicesSecondaryRangeName())) - return false; - if (!getClusterIpv4CidrBlock().equals(other.getClusterIpv4CidrBlock())) return false; - if (!getNodeIpv4CidrBlock().equals(other.getNodeIpv4CidrBlock())) return false; - if (!getServicesIpv4CidrBlock().equals(other.getServicesIpv4CidrBlock())) return false; - if (!getTpuIpv4CidrBlock().equals(other.getTpuIpv4CidrBlock())) return false; - if (getUseRoutes() != other.getUseRoutes()) 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) + USE_IP_ALIASES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseIpAliases()); - hash = (37 * hash) + CREATE_SUBNETWORK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCreateSubnetwork()); - hash = (37 * hash) + SUBNETWORK_NAME_FIELD_NUMBER; - hash = (53 * hash) + getSubnetworkName().hashCode(); - hash = (37 * hash) + CLUSTER_IPV4_CIDR_FIELD_NUMBER; - hash = (53 * hash) + getClusterIpv4Cidr().hashCode(); - hash = (37 * hash) + NODE_IPV4_CIDR_FIELD_NUMBER; - hash = (53 * hash) + getNodeIpv4Cidr().hashCode(); - hash = (37 * hash) + SERVICES_IPV4_CIDR_FIELD_NUMBER; - hash = (53 * hash) + getServicesIpv4Cidr().hashCode(); - hash = (37 * hash) + CLUSTER_SECONDARY_RANGE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterSecondaryRangeName().hashCode(); - hash = (37 * hash) + SERVICES_SECONDARY_RANGE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getServicesSecondaryRangeName().hashCode(); - hash = (37 * hash) + CLUSTER_IPV4_CIDR_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getClusterIpv4CidrBlock().hashCode(); - hash = (37 * hash) + NODE_IPV4_CIDR_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getNodeIpv4CidrBlock().hashCode(); - hash = (37 * hash) + SERVICES_IPV4_CIDR_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getServicesIpv4CidrBlock().hashCode(); - hash = (37 * hash) + TPU_IPV4_CIDR_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getTpuIpv4CidrBlock().hashCode(); - hash = (37 * hash) + USE_ROUTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseRoutes()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.IPAllocationPolicy parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.IPAllocationPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.IPAllocationPolicy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.IPAllocationPolicy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.IPAllocationPolicy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.IPAllocationPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.IPAllocationPolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.IPAllocationPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.IPAllocationPolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.IPAllocationPolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.IPAllocationPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.IPAllocationPolicy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.IPAllocationPolicy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 controlling how IPs are allocated in the cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.IPAllocationPolicy} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.IPAllocationPolicy) - com.google.container.v1.IPAllocationPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IPAllocationPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IPAllocationPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.IPAllocationPolicy.class, - com.google.container.v1.IPAllocationPolicy.Builder.class); - } - - // Construct using com.google.container.v1.IPAllocationPolicy.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(); - useIpAliases_ = false; - - createSubnetwork_ = false; - - subnetworkName_ = ""; - - clusterIpv4Cidr_ = ""; - - nodeIpv4Cidr_ = ""; - - servicesIpv4Cidr_ = ""; - - clusterSecondaryRangeName_ = ""; - - servicesSecondaryRangeName_ = ""; - - clusterIpv4CidrBlock_ = ""; - - nodeIpv4CidrBlock_ = ""; - - servicesIpv4CidrBlock_ = ""; - - tpuIpv4CidrBlock_ = ""; - - useRoutes_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IPAllocationPolicy_descriptor; - } - - @java.lang.Override - public com.google.container.v1.IPAllocationPolicy getDefaultInstanceForType() { - return com.google.container.v1.IPAllocationPolicy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.IPAllocationPolicy build() { - com.google.container.v1.IPAllocationPolicy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.IPAllocationPolicy buildPartial() { - com.google.container.v1.IPAllocationPolicy result = - new com.google.container.v1.IPAllocationPolicy(this); - result.useIpAliases_ = useIpAliases_; - result.createSubnetwork_ = createSubnetwork_; - result.subnetworkName_ = subnetworkName_; - result.clusterIpv4Cidr_ = clusterIpv4Cidr_; - result.nodeIpv4Cidr_ = nodeIpv4Cidr_; - result.servicesIpv4Cidr_ = servicesIpv4Cidr_; - result.clusterSecondaryRangeName_ = clusterSecondaryRangeName_; - result.servicesSecondaryRangeName_ = servicesSecondaryRangeName_; - result.clusterIpv4CidrBlock_ = clusterIpv4CidrBlock_; - result.nodeIpv4CidrBlock_ = nodeIpv4CidrBlock_; - result.servicesIpv4CidrBlock_ = servicesIpv4CidrBlock_; - result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; - result.useRoutes_ = useRoutes_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.IPAllocationPolicy) { - return mergeFrom((com.google.container.v1.IPAllocationPolicy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.IPAllocationPolicy other) { - if (other == com.google.container.v1.IPAllocationPolicy.getDefaultInstance()) return this; - if (other.getUseIpAliases() != false) { - setUseIpAliases(other.getUseIpAliases()); - } - if (other.getCreateSubnetwork() != false) { - setCreateSubnetwork(other.getCreateSubnetwork()); - } - if (!other.getSubnetworkName().isEmpty()) { - subnetworkName_ = other.subnetworkName_; - onChanged(); - } - if (!other.getClusterIpv4Cidr().isEmpty()) { - clusterIpv4Cidr_ = other.clusterIpv4Cidr_; - onChanged(); - } - if (!other.getNodeIpv4Cidr().isEmpty()) { - nodeIpv4Cidr_ = other.nodeIpv4Cidr_; - onChanged(); - } - if (!other.getServicesIpv4Cidr().isEmpty()) { - servicesIpv4Cidr_ = other.servicesIpv4Cidr_; - onChanged(); - } - if (!other.getClusterSecondaryRangeName().isEmpty()) { - clusterSecondaryRangeName_ = other.clusterSecondaryRangeName_; - onChanged(); - } - if (!other.getServicesSecondaryRangeName().isEmpty()) { - servicesSecondaryRangeName_ = other.servicesSecondaryRangeName_; - onChanged(); - } - if (!other.getClusterIpv4CidrBlock().isEmpty()) { - clusterIpv4CidrBlock_ = other.clusterIpv4CidrBlock_; - onChanged(); - } - if (!other.getNodeIpv4CidrBlock().isEmpty()) { - nodeIpv4CidrBlock_ = other.nodeIpv4CidrBlock_; - onChanged(); - } - if (!other.getServicesIpv4CidrBlock().isEmpty()) { - servicesIpv4CidrBlock_ = other.servicesIpv4CidrBlock_; - onChanged(); - } - if (!other.getTpuIpv4CidrBlock().isEmpty()) { - tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; - onChanged(); - } - if (other.getUseRoutes() != false) { - setUseRoutes(other.getUseRoutes()); - } - 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.container.v1.IPAllocationPolicy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.IPAllocationPolicy) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean useIpAliases_; - /** - * - * - *
-     * Whether alias IPs will be used for pod IPs in the cluster.
-     * This is used in conjunction with use_routes. It cannot
-     * be true if use_routes is true. If both use_ip_aliases and use_routes are
-     * false, then the server picks the default IP allocation mode
-     * 
- * - * bool use_ip_aliases = 1; - * - * @return The useIpAliases. - */ - @java.lang.Override - public boolean getUseIpAliases() { - return useIpAliases_; - } - /** - * - * - *
-     * Whether alias IPs will be used for pod IPs in the cluster.
-     * This is used in conjunction with use_routes. It cannot
-     * be true if use_routes is true. If both use_ip_aliases and use_routes are
-     * false, then the server picks the default IP allocation mode
-     * 
- * - * bool use_ip_aliases = 1; - * - * @param value The useIpAliases to set. - * @return This builder for chaining. - */ - public Builder setUseIpAliases(boolean value) { - - useIpAliases_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether alias IPs will be used for pod IPs in the cluster.
-     * This is used in conjunction with use_routes. It cannot
-     * be true if use_routes is true. If both use_ip_aliases and use_routes are
-     * false, then the server picks the default IP allocation mode
-     * 
- * - * bool use_ip_aliases = 1; - * - * @return This builder for chaining. - */ - public Builder clearUseIpAliases() { - - useIpAliases_ = false; - onChanged(); - return this; - } - - private boolean createSubnetwork_; - /** - * - * - *
-     * Whether a new subnetwork will be created automatically for the cluster.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * 
- * - * bool create_subnetwork = 2; - * - * @return The createSubnetwork. - */ - @java.lang.Override - public boolean getCreateSubnetwork() { - return createSubnetwork_; - } - /** - * - * - *
-     * Whether a new subnetwork will be created automatically for the cluster.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * 
- * - * bool create_subnetwork = 2; - * - * @param value The createSubnetwork to set. - * @return This builder for chaining. - */ - public Builder setCreateSubnetwork(boolean value) { - - createSubnetwork_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether a new subnetwork will be created automatically for the cluster.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * 
- * - * bool create_subnetwork = 2; - * - * @return This builder for chaining. - */ - public Builder clearCreateSubnetwork() { - - createSubnetwork_ = false; - onChanged(); - return this; - } - - private java.lang.Object subnetworkName_ = ""; - /** - * - * - *
-     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-     * this field is empty, then an automatic name will be chosen for the new
-     * subnetwork.
-     * 
- * - * string subnetwork_name = 3; - * - * @return The subnetworkName. - */ - public java.lang.String getSubnetworkName() { - java.lang.Object ref = subnetworkName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetworkName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-     * this field is empty, then an automatic name will be chosen for the new
-     * subnetwork.
-     * 
- * - * string subnetwork_name = 3; - * - * @return The bytes for subnetworkName. - */ - public com.google.protobuf.ByteString getSubnetworkNameBytes() { - java.lang.Object ref = subnetworkName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - subnetworkName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-     * this field is empty, then an automatic name will be chosen for the new
-     * subnetwork.
-     * 
- * - * string subnetwork_name = 3; - * - * @param value The subnetworkName to set. - * @return This builder for chaining. - */ - public Builder setSubnetworkName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - subnetworkName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-     * this field is empty, then an automatic name will be chosen for the new
-     * subnetwork.
-     * 
- * - * string subnetwork_name = 3; - * - * @return This builder for chaining. - */ - public Builder clearSubnetworkName() { - - subnetworkName_ = getDefaultInstance().getSubnetworkName(); - onChanged(); - return this; - } - /** - * - * - *
-     * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-     * this field is empty, then an automatic name will be chosen for the new
-     * subnetwork.
-     * 
- * - * string subnetwork_name = 3; - * - * @param value The bytes for subnetworkName to set. - * @return This builder for chaining. - */ - public Builder setSubnetworkNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - subnetworkName_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterIpv4Cidr_ = ""; - /** - * - * - *
-     * This field is deprecated, use cluster_ipv4_cidr_block.
-     * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * - * @return The clusterIpv4Cidr. - */ - @java.lang.Deprecated - public java.lang.String getClusterIpv4Cidr() { - java.lang.Object ref = clusterIpv4Cidr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterIpv4Cidr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * This field is deprecated, use cluster_ipv4_cidr_block.
-     * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * - * @return The bytes for clusterIpv4Cidr. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { - java.lang.Object ref = clusterIpv4Cidr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * This field is deprecated, use cluster_ipv4_cidr_block.
-     * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * - * @param value The clusterIpv4Cidr to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIpv4Cidr(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterIpv4Cidr_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * This field is deprecated, use cluster_ipv4_cidr_block.
-     * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterIpv4Cidr() { - - clusterIpv4Cidr_ = getDefaultInstance().getClusterIpv4Cidr(); - onChanged(); - return this; - } - /** - * - * - *
-     * This field is deprecated, use cluster_ipv4_cidr_block.
-     * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * - * @param value The bytes for clusterIpv4Cidr to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIpv4CidrBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterIpv4Cidr_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodeIpv4Cidr_ = ""; - /** - * - * - *
-     * This field is deprecated, use node_ipv4_cidr_block.
-     * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * - * @return The nodeIpv4Cidr. - */ - @java.lang.Deprecated - public java.lang.String getNodeIpv4Cidr() { - java.lang.Object ref = nodeIpv4Cidr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeIpv4Cidr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * This field is deprecated, use node_ipv4_cidr_block.
-     * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * - * @return The bytes for nodeIpv4Cidr. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { - java.lang.Object ref = nodeIpv4Cidr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodeIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * This field is deprecated, use node_ipv4_cidr_block.
-     * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * - * @param value The nodeIpv4Cidr to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setNodeIpv4Cidr(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeIpv4Cidr_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * This field is deprecated, use node_ipv4_cidr_block.
-     * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodeIpv4Cidr() { - - nodeIpv4Cidr_ = getDefaultInstance().getNodeIpv4Cidr(); - onChanged(); - return this; - } - /** - * - * - *
-     * This field is deprecated, use node_ipv4_cidr_block.
-     * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * - * @param value The bytes for nodeIpv4Cidr to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setNodeIpv4CidrBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeIpv4Cidr_ = value; - onChanged(); - return this; - } - - private java.lang.Object servicesIpv4Cidr_ = ""; - /** - * - * - *
-     * This field is deprecated, use services_ipv4_cidr_block.
-     * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * - * @return The servicesIpv4Cidr. - */ - @java.lang.Deprecated - public java.lang.String getServicesIpv4Cidr() { - java.lang.Object ref = servicesIpv4Cidr_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesIpv4Cidr_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * This field is deprecated, use services_ipv4_cidr_block.
-     * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * - * @return The bytes for servicesIpv4Cidr. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { - java.lang.Object ref = servicesIpv4Cidr_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - servicesIpv4Cidr_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * This field is deprecated, use services_ipv4_cidr_block.
-     * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * - * @param value The servicesIpv4Cidr to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setServicesIpv4Cidr(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - servicesIpv4Cidr_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * This field is deprecated, use services_ipv4_cidr_block.
-     * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearServicesIpv4Cidr() { - - servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); - onChanged(); - return this; - } - /** - * - * - *
-     * This field is deprecated, use services_ipv4_cidr_block.
-     * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * - * @param value The bytes for servicesIpv4Cidr to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setServicesIpv4CidrBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - servicesIpv4Cidr_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterSecondaryRangeName_ = ""; - /** - * - * - *
-     * The name of the secondary range to be used for the cluster CIDR
-     * block.  The secondary range will be used for pod IP
-     * addresses. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     * This field is only applicable with use_ip_aliases is true and
-     * create_subnetwork is false.
-     * 
- * - * string cluster_secondary_range_name = 7; - * - * @return The clusterSecondaryRangeName. - */ - public java.lang.String getClusterSecondaryRangeName() { - java.lang.Object ref = clusterSecondaryRangeName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterSecondaryRangeName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the secondary range to be used for the cluster CIDR
-     * block.  The secondary range will be used for pod IP
-     * addresses. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     * This field is only applicable with use_ip_aliases is true and
-     * create_subnetwork is false.
-     * 
- * - * string cluster_secondary_range_name = 7; - * - * @return The bytes for clusterSecondaryRangeName. - */ - public com.google.protobuf.ByteString getClusterSecondaryRangeNameBytes() { - java.lang.Object ref = clusterSecondaryRangeName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterSecondaryRangeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the secondary range to be used for the cluster CIDR
-     * block.  The secondary range will be used for pod IP
-     * addresses. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     * This field is only applicable with use_ip_aliases is true and
-     * create_subnetwork is false.
-     * 
- * - * string cluster_secondary_range_name = 7; - * - * @param value The clusterSecondaryRangeName to set. - * @return This builder for chaining. - */ - public Builder setClusterSecondaryRangeName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterSecondaryRangeName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the secondary range to be used for the cluster CIDR
-     * block.  The secondary range will be used for pod IP
-     * addresses. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     * This field is only applicable with use_ip_aliases is true and
-     * create_subnetwork is false.
-     * 
- * - * string cluster_secondary_range_name = 7; - * - * @return This builder for chaining. - */ - public Builder clearClusterSecondaryRangeName() { - - clusterSecondaryRangeName_ = getDefaultInstance().getClusterSecondaryRangeName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the secondary range to be used for the cluster CIDR
-     * block.  The secondary range will be used for pod IP
-     * addresses. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     * This field is only applicable with use_ip_aliases is true and
-     * create_subnetwork is false.
-     * 
- * - * string cluster_secondary_range_name = 7; - * - * @param value The bytes for clusterSecondaryRangeName to set. - * @return This builder for chaining. - */ - public Builder setClusterSecondaryRangeNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterSecondaryRangeName_ = value; - onChanged(); - return this; - } - - private java.lang.Object servicesSecondaryRangeName_ = ""; - /** - * - * - *
-     * The name of the secondary range to be used as for the services
-     * CIDR block.  The secondary range will be used for service
-     * ClusterIPs. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     * This field is only applicable with use_ip_aliases is true and
-     * create_subnetwork is false.
-     * 
- * - * string services_secondary_range_name = 8; - * - * @return The servicesSecondaryRangeName. - */ - public java.lang.String getServicesSecondaryRangeName() { - java.lang.Object ref = servicesSecondaryRangeName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesSecondaryRangeName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the secondary range to be used as for the services
-     * CIDR block.  The secondary range will be used for service
-     * ClusterIPs. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     * This field is only applicable with use_ip_aliases is true and
-     * create_subnetwork is false.
-     * 
- * - * string services_secondary_range_name = 8; - * - * @return The bytes for servicesSecondaryRangeName. - */ - public com.google.protobuf.ByteString getServicesSecondaryRangeNameBytes() { - java.lang.Object ref = servicesSecondaryRangeName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - servicesSecondaryRangeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the secondary range to be used as for the services
-     * CIDR block.  The secondary range will be used for service
-     * ClusterIPs. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     * This field is only applicable with use_ip_aliases is true and
-     * create_subnetwork is false.
-     * 
- * - * string services_secondary_range_name = 8; - * - * @param value The servicesSecondaryRangeName to set. - * @return This builder for chaining. - */ - public Builder setServicesSecondaryRangeName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - servicesSecondaryRangeName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the secondary range to be used as for the services
-     * CIDR block.  The secondary range will be used for service
-     * ClusterIPs. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     * This field is only applicable with use_ip_aliases is true and
-     * create_subnetwork is false.
-     * 
- * - * string services_secondary_range_name = 8; - * - * @return This builder for chaining. - */ - public Builder clearServicesSecondaryRangeName() { - - servicesSecondaryRangeName_ = getDefaultInstance().getServicesSecondaryRangeName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the secondary range to be used as for the services
-     * CIDR block.  The secondary range will be used for service
-     * ClusterIPs. This must be an existing secondary range associated
-     * with the cluster subnetwork.
-     * This field is only applicable with use_ip_aliases is true and
-     * create_subnetwork is false.
-     * 
- * - * string services_secondary_range_name = 8; - * - * @param value The bytes for servicesSecondaryRangeName to set. - * @return This builder for chaining. - */ - public Builder setServicesSecondaryRangeNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - servicesSecondaryRangeName_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterIpv4CidrBlock_ = ""; - /** - * - * - *
-     * The IP address range for the cluster pod IPs. If this field is set, then
-     * `cluster.cluster_ipv4_cidr` must be left blank.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string cluster_ipv4_cidr_block = 9; - * - * @return The clusterIpv4CidrBlock. - */ - public java.lang.String getClusterIpv4CidrBlock() { - java.lang.Object ref = clusterIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterIpv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The IP address range for the cluster pod IPs. If this field is set, then
-     * `cluster.cluster_ipv4_cidr` must be left blank.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string cluster_ipv4_cidr_block = 9; - * - * @return The bytes for clusterIpv4CidrBlock. - */ - public com.google.protobuf.ByteString getClusterIpv4CidrBlockBytes() { - java.lang.Object ref = clusterIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The IP address range for the cluster pod IPs. If this field is set, then
-     * `cluster.cluster_ipv4_cidr` must be left blank.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string cluster_ipv4_cidr_block = 9; - * - * @param value The clusterIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setClusterIpv4CidrBlock(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterIpv4CidrBlock_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The IP address range for the cluster pod IPs. If this field is set, then
-     * `cluster.cluster_ipv4_cidr` must be left blank.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string cluster_ipv4_cidr_block = 9; - * - * @return This builder for chaining. - */ - public Builder clearClusterIpv4CidrBlock() { - - clusterIpv4CidrBlock_ = getDefaultInstance().getClusterIpv4CidrBlock(); - onChanged(); - return this; - } - /** - * - * - *
-     * The IP address range for the cluster pod IPs. If this field is set, then
-     * `cluster.cluster_ipv4_cidr` must be left blank.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string cluster_ipv4_cidr_block = 9; - * - * @param value The bytes for clusterIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setClusterIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterIpv4CidrBlock_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodeIpv4CidrBlock_ = ""; - /** - * - * - *
-     * The IP address range of the instance IPs in this cluster.
-     * This is applicable only if `create_subnetwork` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string node_ipv4_cidr_block = 10; - * - * @return The nodeIpv4CidrBlock. - */ - public java.lang.String getNodeIpv4CidrBlock() { - java.lang.Object ref = nodeIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeIpv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The IP address range of the instance IPs in this cluster.
-     * This is applicable only if `create_subnetwork` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string node_ipv4_cidr_block = 10; - * - * @return The bytes for nodeIpv4CidrBlock. - */ - public com.google.protobuf.ByteString getNodeIpv4CidrBlockBytes() { - java.lang.Object ref = nodeIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodeIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The IP address range of the instance IPs in this cluster.
-     * This is applicable only if `create_subnetwork` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string node_ipv4_cidr_block = 10; - * - * @param value The nodeIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setNodeIpv4CidrBlock(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeIpv4CidrBlock_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The IP address range of the instance IPs in this cluster.
-     * This is applicable only if `create_subnetwork` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string node_ipv4_cidr_block = 10; - * - * @return This builder for chaining. - */ - public Builder clearNodeIpv4CidrBlock() { - - nodeIpv4CidrBlock_ = getDefaultInstance().getNodeIpv4CidrBlock(); - onChanged(); - return this; - } - /** - * - * - *
-     * The IP address range of the instance IPs in this cluster.
-     * This is applicable only if `create_subnetwork` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string node_ipv4_cidr_block = 10; - * - * @param value The bytes for nodeIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setNodeIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeIpv4CidrBlock_ = value; - onChanged(); - return this; - } - - private java.lang.Object servicesIpv4CidrBlock_ = ""; - /** - * - * - *
-     * The IP address range of the services IPs in this cluster. If blank, a range
-     * will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string services_ipv4_cidr_block = 11; - * - * @return The servicesIpv4CidrBlock. - */ - public java.lang.String getServicesIpv4CidrBlock() { - java.lang.Object ref = servicesIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - servicesIpv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The IP address range of the services IPs in this cluster. If blank, a range
-     * will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string services_ipv4_cidr_block = 11; - * - * @return The bytes for servicesIpv4CidrBlock. - */ - public com.google.protobuf.ByteString getServicesIpv4CidrBlockBytes() { - java.lang.Object ref = servicesIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - servicesIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The IP address range of the services IPs in this cluster. If blank, a range
-     * will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string services_ipv4_cidr_block = 11; - * - * @param value The servicesIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setServicesIpv4CidrBlock(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - servicesIpv4CidrBlock_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The IP address range of the services IPs in this cluster. If blank, a range
-     * will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string services_ipv4_cidr_block = 11; - * - * @return This builder for chaining. - */ - public Builder clearServicesIpv4CidrBlock() { - - servicesIpv4CidrBlock_ = getDefaultInstance().getServicesIpv4CidrBlock(); - onChanged(); - return this; - } - /** - * - * - *
-     * The IP address range of the services IPs in this cluster. If blank, a range
-     * will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * Set to blank to have a range chosen with the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string services_ipv4_cidr_block = 11; - * - * @param value The bytes for servicesIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setServicesIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - servicesIpv4CidrBlock_ = value; - onChanged(); - return this; - } - - private java.lang.Object tpuIpv4CidrBlock_ = ""; - /** - * - * - *
-     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-     * range will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * If unspecified, the range will use the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string tpu_ipv4_cidr_block = 13; - * - * @return The tpuIpv4CidrBlock. - */ - public java.lang.String getTpuIpv4CidrBlock() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tpuIpv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-     * range will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * If unspecified, the range will use the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string tpu_ipv4_cidr_block = 13; - * - * @return The bytes for tpuIpv4CidrBlock. - */ - public com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes() { - java.lang.Object ref = tpuIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tpuIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-     * range will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * If unspecified, the range will use the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string tpu_ipv4_cidr_block = 13; - * - * @param value The tpuIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setTpuIpv4CidrBlock(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tpuIpv4CidrBlock_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-     * range will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * If unspecified, the range will use the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string tpu_ipv4_cidr_block = 13; - * - * @return This builder for chaining. - */ - public Builder clearTpuIpv4CidrBlock() { - - tpuIpv4CidrBlock_ = getDefaultInstance().getTpuIpv4CidrBlock(); - onChanged(); - return this; - } - /** - * - * - *
-     * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-     * range will be automatically chosen with the default size.
-     * This field is only applicable when `use_ip_aliases` is true.
-     * If unspecified, the range will use the default size.
-     * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-     * netmask.
-     * Set to a
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-     * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-     * to use.
-     * 
- * - * string tpu_ipv4_cidr_block = 13; - * - * @param value The bytes for tpuIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setTpuIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tpuIpv4CidrBlock_ = value; - onChanged(); - return this; - } - - private boolean useRoutes_; - /** - * - * - *
-     * Whether routes will be used for pod IPs in the cluster.
-     * This is used in conjunction with use_ip_aliases. It cannot be true if
-     * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
-     * then the server picks the default IP allocation mode
-     * 
- * - * bool use_routes = 15; - * - * @return The useRoutes. - */ - @java.lang.Override - public boolean getUseRoutes() { - return useRoutes_; - } - /** - * - * - *
-     * Whether routes will be used for pod IPs in the cluster.
-     * This is used in conjunction with use_ip_aliases. It cannot be true if
-     * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
-     * then the server picks the default IP allocation mode
-     * 
- * - * bool use_routes = 15; - * - * @param value The useRoutes to set. - * @return This builder for chaining. - */ - public Builder setUseRoutes(boolean value) { - - useRoutes_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether routes will be used for pod IPs in the cluster.
-     * This is used in conjunction with use_ip_aliases. It cannot be true if
-     * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
-     * then the server picks the default IP allocation mode
-     * 
- * - * bool use_routes = 15; - * - * @return This builder for chaining. - */ - public Builder clearUseRoutes() { - - useRoutes_ = 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.container.v1.IPAllocationPolicy) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.IPAllocationPolicy) - private static final com.google.container.v1.IPAllocationPolicy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.IPAllocationPolicy(); - } - - public static com.google.container.v1.IPAllocationPolicy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IPAllocationPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IPAllocationPolicy(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.container.v1.IPAllocationPolicy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java deleted file mode 100644 index 33428c88..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java +++ /dev/null @@ -1,429 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface IPAllocationPolicyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.IPAllocationPolicy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether alias IPs will be used for pod IPs in the cluster.
-   * This is used in conjunction with use_routes. It cannot
-   * be true if use_routes is true. If both use_ip_aliases and use_routes are
-   * false, then the server picks the default IP allocation mode
-   * 
- * - * bool use_ip_aliases = 1; - * - * @return The useIpAliases. - */ - boolean getUseIpAliases(); - - /** - * - * - *
-   * Whether a new subnetwork will be created automatically for the cluster.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * 
- * - * bool create_subnetwork = 2; - * - * @return The createSubnetwork. - */ - boolean getCreateSubnetwork(); - - /** - * - * - *
-   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-   * this field is empty, then an automatic name will be chosen for the new
-   * subnetwork.
-   * 
- * - * string subnetwork_name = 3; - * - * @return The subnetworkName. - */ - java.lang.String getSubnetworkName(); - /** - * - * - *
-   * A custom subnetwork name to be used if `create_subnetwork` is true.  If
-   * this field is empty, then an automatic name will be chosen for the new
-   * subnetwork.
-   * 
- * - * string subnetwork_name = 3; - * - * @return The bytes for subnetworkName. - */ - com.google.protobuf.ByteString getSubnetworkNameBytes(); - - /** - * - * - *
-   * This field is deprecated, use cluster_ipv4_cidr_block.
-   * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * - * @return The clusterIpv4Cidr. - */ - @java.lang.Deprecated - java.lang.String getClusterIpv4Cidr(); - /** - * - * - *
-   * This field is deprecated, use cluster_ipv4_cidr_block.
-   * 
- * - * string cluster_ipv4_cidr = 4 [deprecated = true]; - * - * @return The bytes for clusterIpv4Cidr. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIpv4CidrBytes(); - - /** - * - * - *
-   * This field is deprecated, use node_ipv4_cidr_block.
-   * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * - * @return The nodeIpv4Cidr. - */ - @java.lang.Deprecated - java.lang.String getNodeIpv4Cidr(); - /** - * - * - *
-   * This field is deprecated, use node_ipv4_cidr_block.
-   * 
- * - * string node_ipv4_cidr = 5 [deprecated = true]; - * - * @return The bytes for nodeIpv4Cidr. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getNodeIpv4CidrBytes(); - - /** - * - * - *
-   * This field is deprecated, use services_ipv4_cidr_block.
-   * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * - * @return The servicesIpv4Cidr. - */ - @java.lang.Deprecated - java.lang.String getServicesIpv4Cidr(); - /** - * - * - *
-   * This field is deprecated, use services_ipv4_cidr_block.
-   * 
- * - * string services_ipv4_cidr = 6 [deprecated = true]; - * - * @return The bytes for servicesIpv4Cidr. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getServicesIpv4CidrBytes(); - - /** - * - * - *
-   * The name of the secondary range to be used for the cluster CIDR
-   * block.  The secondary range will be used for pod IP
-   * addresses. This must be an existing secondary range associated
-   * with the cluster subnetwork.
-   * This field is only applicable with use_ip_aliases is true and
-   * create_subnetwork is false.
-   * 
- * - * string cluster_secondary_range_name = 7; - * - * @return The clusterSecondaryRangeName. - */ - java.lang.String getClusterSecondaryRangeName(); - /** - * - * - *
-   * The name of the secondary range to be used for the cluster CIDR
-   * block.  The secondary range will be used for pod IP
-   * addresses. This must be an existing secondary range associated
-   * with the cluster subnetwork.
-   * This field is only applicable with use_ip_aliases is true and
-   * create_subnetwork is false.
-   * 
- * - * string cluster_secondary_range_name = 7; - * - * @return The bytes for clusterSecondaryRangeName. - */ - com.google.protobuf.ByteString getClusterSecondaryRangeNameBytes(); - - /** - * - * - *
-   * The name of the secondary range to be used as for the services
-   * CIDR block.  The secondary range will be used for service
-   * ClusterIPs. This must be an existing secondary range associated
-   * with the cluster subnetwork.
-   * This field is only applicable with use_ip_aliases is true and
-   * create_subnetwork is false.
-   * 
- * - * string services_secondary_range_name = 8; - * - * @return The servicesSecondaryRangeName. - */ - java.lang.String getServicesSecondaryRangeName(); - /** - * - * - *
-   * The name of the secondary range to be used as for the services
-   * CIDR block.  The secondary range will be used for service
-   * ClusterIPs. This must be an existing secondary range associated
-   * with the cluster subnetwork.
-   * This field is only applicable with use_ip_aliases is true and
-   * create_subnetwork is false.
-   * 
- * - * string services_secondary_range_name = 8; - * - * @return The bytes for servicesSecondaryRangeName. - */ - com.google.protobuf.ByteString getServicesSecondaryRangeNameBytes(); - - /** - * - * - *
-   * The IP address range for the cluster pod IPs. If this field is set, then
-   * `cluster.cluster_ipv4_cidr` must be left blank.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string cluster_ipv4_cidr_block = 9; - * - * @return The clusterIpv4CidrBlock. - */ - java.lang.String getClusterIpv4CidrBlock(); - /** - * - * - *
-   * The IP address range for the cluster pod IPs. If this field is set, then
-   * `cluster.cluster_ipv4_cidr` must be left blank.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string cluster_ipv4_cidr_block = 9; - * - * @return The bytes for clusterIpv4CidrBlock. - */ - com.google.protobuf.ByteString getClusterIpv4CidrBlockBytes(); - - /** - * - * - *
-   * The IP address range of the instance IPs in this cluster.
-   * This is applicable only if `create_subnetwork` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string node_ipv4_cidr_block = 10; - * - * @return The nodeIpv4CidrBlock. - */ - java.lang.String getNodeIpv4CidrBlock(); - /** - * - * - *
-   * The IP address range of the instance IPs in this cluster.
-   * This is applicable only if `create_subnetwork` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string node_ipv4_cidr_block = 10; - * - * @return The bytes for nodeIpv4CidrBlock. - */ - com.google.protobuf.ByteString getNodeIpv4CidrBlockBytes(); - - /** - * - * - *
-   * The IP address range of the services IPs in this cluster. If blank, a range
-   * will be automatically chosen with the default size.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string services_ipv4_cidr_block = 11; - * - * @return The servicesIpv4CidrBlock. - */ - java.lang.String getServicesIpv4CidrBlock(); - /** - * - * - *
-   * The IP address range of the services IPs in this cluster. If blank, a range
-   * will be automatically chosen with the default size.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * Set to blank to have a range chosen with the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string services_ipv4_cidr_block = 11; - * - * @return The bytes for servicesIpv4CidrBlock. - */ - com.google.protobuf.ByteString getServicesIpv4CidrBlockBytes(); - - /** - * - * - *
-   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-   * range will be automatically chosen with the default size.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * If unspecified, the range will use the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string tpu_ipv4_cidr_block = 13; - * - * @return The tpuIpv4CidrBlock. - */ - java.lang.String getTpuIpv4CidrBlock(); - /** - * - * - *
-   * The IP address range of the Cloud TPUs in this cluster. If unspecified, a
-   * range will be automatically chosen with the default size.
-   * This field is only applicable when `use_ip_aliases` is true.
-   * If unspecified, the range will use the default size.
-   * Set to /netmask (e.g. `/14`) to have a range chosen with a specific
-   * netmask.
-   * Set to a
-   * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-   * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
-   * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
-   * to use.
-   * 
- * - * string tpu_ipv4_cidr_block = 13; - * - * @return The bytes for tpuIpv4CidrBlock. - */ - com.google.protobuf.ByteString getTpuIpv4CidrBlockBytes(); - - /** - * - * - *
-   * Whether routes will be used for pod IPs in the cluster.
-   * This is used in conjunction with use_ip_aliases. It cannot be true if
-   * use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
-   * then the server picks the default IP allocation mode
-   * 
- * - * bool use_routes = 15; - * - * @return The useRoutes. - */ - boolean getUseRoutes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfig.java deleted file mode 100644 index a2303fea..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfig.java +++ /dev/null @@ -1,548 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * IntraNodeVisibilityConfig contains the desired config of the intra-node
- * visibility on this cluster.
- * 
- * - * Protobuf type {@code google.container.v1.IntraNodeVisibilityConfig} - */ -public final class IntraNodeVisibilityConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.IntraNodeVisibilityConfig) - IntraNodeVisibilityConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use IntraNodeVisibilityConfig.newBuilder() to construct. - private IntraNodeVisibilityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private IntraNodeVisibilityConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new IntraNodeVisibilityConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private IntraNodeVisibilityConfig( - 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: - { - enabled_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IntraNodeVisibilityConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IntraNodeVisibilityConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.IntraNodeVisibilityConfig.class, - com.google.container.v1.IntraNodeVisibilityConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - * - * - *
-   * Enables intra node visibility for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); - } - 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.container.v1.IntraNodeVisibilityConfig)) { - return super.equals(obj); - } - com.google.container.v1.IntraNodeVisibilityConfig other = - (com.google.container.v1.IntraNodeVisibilityConfig) obj; - - if (getEnabled() != other.getEnabled()) 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) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.IntraNodeVisibilityConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.IntraNodeVisibilityConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.IntraNodeVisibilityConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.IntraNodeVisibilityConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.IntraNodeVisibilityConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.IntraNodeVisibilityConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.IntraNodeVisibilityConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.IntraNodeVisibilityConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.IntraNodeVisibilityConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.IntraNodeVisibilityConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.IntraNodeVisibilityConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.IntraNodeVisibilityConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.IntraNodeVisibilityConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * IntraNodeVisibilityConfig contains the desired config of the intra-node
-   * visibility on this cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.IntraNodeVisibilityConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.IntraNodeVisibilityConfig) - com.google.container.v1.IntraNodeVisibilityConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IntraNodeVisibilityConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IntraNodeVisibilityConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.IntraNodeVisibilityConfig.class, - com.google.container.v1.IntraNodeVisibilityConfig.Builder.class); - } - - // Construct using com.google.container.v1.IntraNodeVisibilityConfig.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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_IntraNodeVisibilityConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.IntraNodeVisibilityConfig getDefaultInstanceForType() { - return com.google.container.v1.IntraNodeVisibilityConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.IntraNodeVisibilityConfig build() { - com.google.container.v1.IntraNodeVisibilityConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.IntraNodeVisibilityConfig buildPartial() { - com.google.container.v1.IntraNodeVisibilityConfig result = - new com.google.container.v1.IntraNodeVisibilityConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.IntraNodeVisibilityConfig) { - return mergeFrom((com.google.container.v1.IntraNodeVisibilityConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.IntraNodeVisibilityConfig other) { - if (other == com.google.container.v1.IntraNodeVisibilityConfig.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - 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.container.v1.IntraNodeVisibilityConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.container.v1.IntraNodeVisibilityConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean enabled_; - /** - * - * - *
-     * Enables intra node visibility for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Enables intra node visibility for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Enables intra node visibility for this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = 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.container.v1.IntraNodeVisibilityConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.IntraNodeVisibilityConfig) - private static final com.google.container.v1.IntraNodeVisibilityConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.IntraNodeVisibilityConfig(); - } - - public static com.google.container.v1.IntraNodeVisibilityConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IntraNodeVisibilityConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IntraNodeVisibilityConfig(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.container.v1.IntraNodeVisibilityConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfigOrBuilder.java deleted file mode 100644 index 38e2b812..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfigOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface IntraNodeVisibilityConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.IntraNodeVisibilityConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Enables intra node visibility for this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Jwk.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Jwk.java deleted file mode 100644 index e7beaf38..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Jwk.java +++ /dev/null @@ -1,2061 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Jwk is a JSON Web Key as specified in RFC 7517
- * 
- * - * Protobuf type {@code google.container.v1.Jwk} - */ -public final class Jwk extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.Jwk) - JwkOrBuilder { - private static final long serialVersionUID = 0L; - // Use Jwk.newBuilder() to construct. - private Jwk(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Jwk() { - kty_ = ""; - alg_ = ""; - use_ = ""; - kid_ = ""; - n_ = ""; - e_ = ""; - x_ = ""; - y_ = ""; - crv_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Jwk(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Jwk( - 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(); - - kty_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - alg_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - use_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - kid_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - n_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - e_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - x_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - y_ = s; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - crv_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Jwk_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Jwk_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.Jwk.class, com.google.container.v1.Jwk.Builder.class); - } - - public static final int KTY_FIELD_NUMBER = 1; - private volatile java.lang.Object kty_; - /** - * - * - *
-   * Key Type.
-   * 
- * - * string kty = 1; - * - * @return The kty. - */ - @java.lang.Override - public java.lang.String getKty() { - java.lang.Object ref = kty_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kty_ = s; - return s; - } - } - /** - * - * - *
-   * Key Type.
-   * 
- * - * string kty = 1; - * - * @return The bytes for kty. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKtyBytes() { - java.lang.Object ref = kty_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kty_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ALG_FIELD_NUMBER = 2; - private volatile java.lang.Object alg_; - /** - * - * - *
-   * Algorithm.
-   * 
- * - * string alg = 2; - * - * @return The alg. - */ - @java.lang.Override - public java.lang.String getAlg() { - java.lang.Object ref = alg_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alg_ = s; - return s; - } - } - /** - * - * - *
-   * Algorithm.
-   * 
- * - * string alg = 2; - * - * @return The bytes for alg. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAlgBytes() { - java.lang.Object ref = alg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - alg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USE_FIELD_NUMBER = 3; - private volatile java.lang.Object use_; - /** - * - * - *
-   * Permitted uses for the public keys.
-   * 
- * - * string use = 3; - * - * @return The use. - */ - @java.lang.Override - public java.lang.String getUse() { - java.lang.Object ref = use_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - use_ = s; - return s; - } - } - /** - * - * - *
-   * Permitted uses for the public keys.
-   * 
- * - * string use = 3; - * - * @return The bytes for use. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUseBytes() { - java.lang.Object ref = use_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - use_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KID_FIELD_NUMBER = 4; - private volatile java.lang.Object kid_; - /** - * - * - *
-   * Key ID.
-   * 
- * - * string kid = 4; - * - * @return The kid. - */ - @java.lang.Override - public java.lang.String getKid() { - java.lang.Object ref = kid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kid_ = s; - return s; - } - } - /** - * - * - *
-   * Key ID.
-   * 
- * - * string kid = 4; - * - * @return The bytes for kid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getKidBytes() { - java.lang.Object ref = kid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int N_FIELD_NUMBER = 5; - private volatile java.lang.Object n_; - /** - * - * - *
-   * Used for RSA keys.
-   * 
- * - * string n = 5; - * - * @return The n. - */ - @java.lang.Override - public java.lang.String getN() { - java.lang.Object ref = n_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - n_ = s; - return s; - } - } - /** - * - * - *
-   * Used for RSA keys.
-   * 
- * - * string n = 5; - * - * @return The bytes for n. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNBytes() { - java.lang.Object ref = n_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - n_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int E_FIELD_NUMBER = 6; - private volatile java.lang.Object e_; - /** - * - * - *
-   * Used for RSA keys.
-   * 
- * - * string e = 6; - * - * @return The e. - */ - @java.lang.Override - public java.lang.String getE() { - java.lang.Object ref = e_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - e_ = s; - return s; - } - } - /** - * - * - *
-   * Used for RSA keys.
-   * 
- * - * string e = 6; - * - * @return The bytes for e. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEBytes() { - java.lang.Object ref = e_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - e_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int X_FIELD_NUMBER = 7; - private volatile java.lang.Object x_; - /** - * - * - *
-   * Used for ECDSA keys.
-   * 
- * - * string x = 7; - * - * @return The x. - */ - @java.lang.Override - public java.lang.String getX() { - java.lang.Object ref = x_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - x_ = s; - return s; - } - } - /** - * - * - *
-   * Used for ECDSA keys.
-   * 
- * - * string x = 7; - * - * @return The bytes for x. - */ - @java.lang.Override - public com.google.protobuf.ByteString getXBytes() { - java.lang.Object ref = x_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - x_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int Y_FIELD_NUMBER = 8; - private volatile java.lang.Object y_; - /** - * - * - *
-   * Used for ECDSA keys.
-   * 
- * - * string y = 8; - * - * @return The y. - */ - @java.lang.Override - public java.lang.String getY() { - java.lang.Object ref = y_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - y_ = s; - return s; - } - } - /** - * - * - *
-   * Used for ECDSA keys.
-   * 
- * - * string y = 8; - * - * @return The bytes for y. - */ - @java.lang.Override - public com.google.protobuf.ByteString getYBytes() { - java.lang.Object ref = y_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - y_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CRV_FIELD_NUMBER = 9; - private volatile java.lang.Object crv_; - /** - * - * - *
-   * Used for ECDSA keys.
-   * 
- * - * string crv = 9; - * - * @return The crv. - */ - @java.lang.Override - public java.lang.String getCrv() { - java.lang.Object ref = crv_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crv_ = s; - return s; - } - } - /** - * - * - *
-   * Used for ECDSA keys.
-   * 
- * - * string crv = 9; - * - * @return The bytes for crv. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCrvBytes() { - java.lang.Object ref = crv_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - crv_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getKtyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kty_); - } - if (!getAlgBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, alg_); - } - if (!getUseBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, use_); - } - if (!getKidBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, kid_); - } - if (!getNBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, n_); - } - if (!getEBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, e_); - } - if (!getXBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, x_); - } - if (!getYBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, y_); - } - if (!getCrvBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, crv_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKtyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kty_); - } - if (!getAlgBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, alg_); - } - if (!getUseBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, use_); - } - if (!getKidBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, kid_); - } - if (!getNBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, n_); - } - if (!getEBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, e_); - } - if (!getXBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, x_); - } - if (!getYBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, y_); - } - if (!getCrvBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, crv_); - } - 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.container.v1.Jwk)) { - return super.equals(obj); - } - com.google.container.v1.Jwk other = (com.google.container.v1.Jwk) obj; - - if (!getKty().equals(other.getKty())) return false; - if (!getAlg().equals(other.getAlg())) return false; - if (!getUse().equals(other.getUse())) return false; - if (!getKid().equals(other.getKid())) return false; - if (!getN().equals(other.getN())) return false; - if (!getE().equals(other.getE())) return false; - if (!getX().equals(other.getX())) return false; - if (!getY().equals(other.getY())) return false; - if (!getCrv().equals(other.getCrv())) 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) + KTY_FIELD_NUMBER; - hash = (53 * hash) + getKty().hashCode(); - hash = (37 * hash) + ALG_FIELD_NUMBER; - hash = (53 * hash) + getAlg().hashCode(); - hash = (37 * hash) + USE_FIELD_NUMBER; - hash = (53 * hash) + getUse().hashCode(); - hash = (37 * hash) + KID_FIELD_NUMBER; - hash = (53 * hash) + getKid().hashCode(); - hash = (37 * hash) + N_FIELD_NUMBER; - hash = (53 * hash) + getN().hashCode(); - hash = (37 * hash) + E_FIELD_NUMBER; - hash = (53 * hash) + getE().hashCode(); - hash = (37 * hash) + X_FIELD_NUMBER; - hash = (53 * hash) + getX().hashCode(); - hash = (37 * hash) + Y_FIELD_NUMBER; - hash = (53 * hash) + getY().hashCode(); - hash = (37 * hash) + CRV_FIELD_NUMBER; - hash = (53 * hash) + getCrv().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.Jwk parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.Jwk parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.Jwk parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.Jwk parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.Jwk parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.Jwk parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.Jwk parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.Jwk parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.Jwk parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.Jwk parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.Jwk parseFrom(com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.Jwk parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.Jwk prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Jwk is a JSON Web Key as specified in RFC 7517
-   * 
- * - * Protobuf type {@code google.container.v1.Jwk} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.Jwk) - com.google.container.v1.JwkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Jwk_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Jwk_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.Jwk.class, com.google.container.v1.Jwk.Builder.class); - } - - // Construct using com.google.container.v1.Jwk.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(); - kty_ = ""; - - alg_ = ""; - - use_ = ""; - - kid_ = ""; - - n_ = ""; - - e_ = ""; - - x_ = ""; - - y_ = ""; - - crv_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Jwk_descriptor; - } - - @java.lang.Override - public com.google.container.v1.Jwk getDefaultInstanceForType() { - return com.google.container.v1.Jwk.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.Jwk build() { - com.google.container.v1.Jwk result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.Jwk buildPartial() { - com.google.container.v1.Jwk result = new com.google.container.v1.Jwk(this); - result.kty_ = kty_; - result.alg_ = alg_; - result.use_ = use_; - result.kid_ = kid_; - result.n_ = n_; - result.e_ = e_; - result.x_ = x_; - result.y_ = y_; - result.crv_ = crv_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.Jwk) { - return mergeFrom((com.google.container.v1.Jwk) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.Jwk other) { - if (other == com.google.container.v1.Jwk.getDefaultInstance()) return this; - if (!other.getKty().isEmpty()) { - kty_ = other.kty_; - onChanged(); - } - if (!other.getAlg().isEmpty()) { - alg_ = other.alg_; - onChanged(); - } - if (!other.getUse().isEmpty()) { - use_ = other.use_; - onChanged(); - } - if (!other.getKid().isEmpty()) { - kid_ = other.kid_; - onChanged(); - } - if (!other.getN().isEmpty()) { - n_ = other.n_; - onChanged(); - } - if (!other.getE().isEmpty()) { - e_ = other.e_; - onChanged(); - } - if (!other.getX().isEmpty()) { - x_ = other.x_; - onChanged(); - } - if (!other.getY().isEmpty()) { - y_ = other.y_; - onChanged(); - } - if (!other.getCrv().isEmpty()) { - crv_ = other.crv_; - 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.container.v1.Jwk parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.Jwk) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object kty_ = ""; - /** - * - * - *
-     * Key Type.
-     * 
- * - * string kty = 1; - * - * @return The kty. - */ - public java.lang.String getKty() { - java.lang.Object ref = kty_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kty_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Key Type.
-     * 
- * - * string kty = 1; - * - * @return The bytes for kty. - */ - public com.google.protobuf.ByteString getKtyBytes() { - java.lang.Object ref = kty_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kty_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Key Type.
-     * 
- * - * string kty = 1; - * - * @param value The kty to set. - * @return This builder for chaining. - */ - public Builder setKty(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kty_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Key Type.
-     * 
- * - * string kty = 1; - * - * @return This builder for chaining. - */ - public Builder clearKty() { - - kty_ = getDefaultInstance().getKty(); - onChanged(); - return this; - } - /** - * - * - *
-     * Key Type.
-     * 
- * - * string kty = 1; - * - * @param value The bytes for kty to set. - * @return This builder for chaining. - */ - public Builder setKtyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kty_ = value; - onChanged(); - return this; - } - - private java.lang.Object alg_ = ""; - /** - * - * - *
-     * Algorithm.
-     * 
- * - * string alg = 2; - * - * @return The alg. - */ - public java.lang.String getAlg() { - java.lang.Object ref = alg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alg_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Algorithm.
-     * 
- * - * string alg = 2; - * - * @return The bytes for alg. - */ - public com.google.protobuf.ByteString getAlgBytes() { - java.lang.Object ref = alg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - alg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Algorithm.
-     * 
- * - * string alg = 2; - * - * @param value The alg to set. - * @return This builder for chaining. - */ - public Builder setAlg(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - alg_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Algorithm.
-     * 
- * - * string alg = 2; - * - * @return This builder for chaining. - */ - public Builder clearAlg() { - - alg_ = getDefaultInstance().getAlg(); - onChanged(); - return this; - } - /** - * - * - *
-     * Algorithm.
-     * 
- * - * string alg = 2; - * - * @param value The bytes for alg to set. - * @return This builder for chaining. - */ - public Builder setAlgBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - alg_ = value; - onChanged(); - return this; - } - - private java.lang.Object use_ = ""; - /** - * - * - *
-     * Permitted uses for the public keys.
-     * 
- * - * string use = 3; - * - * @return The use. - */ - public java.lang.String getUse() { - java.lang.Object ref = use_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - use_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Permitted uses for the public keys.
-     * 
- * - * string use = 3; - * - * @return The bytes for use. - */ - public com.google.protobuf.ByteString getUseBytes() { - java.lang.Object ref = use_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - use_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Permitted uses for the public keys.
-     * 
- * - * string use = 3; - * - * @param value The use to set. - * @return This builder for chaining. - */ - public Builder setUse(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - use_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Permitted uses for the public keys.
-     * 
- * - * string use = 3; - * - * @return This builder for chaining. - */ - public Builder clearUse() { - - use_ = getDefaultInstance().getUse(); - onChanged(); - return this; - } - /** - * - * - *
-     * Permitted uses for the public keys.
-     * 
- * - * string use = 3; - * - * @param value The bytes for use to set. - * @return This builder for chaining. - */ - public Builder setUseBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - use_ = value; - onChanged(); - return this; - } - - private java.lang.Object kid_ = ""; - /** - * - * - *
-     * Key ID.
-     * 
- * - * string kid = 4; - * - * @return The kid. - */ - public java.lang.String getKid() { - java.lang.Object ref = kid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Key ID.
-     * 
- * - * string kid = 4; - * - * @return The bytes for kid. - */ - public com.google.protobuf.ByteString getKidBytes() { - java.lang.Object ref = kid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Key ID.
-     * 
- * - * string kid = 4; - * - * @param value The kid to set. - * @return This builder for chaining. - */ - public Builder setKid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kid_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Key ID.
-     * 
- * - * string kid = 4; - * - * @return This builder for chaining. - */ - public Builder clearKid() { - - kid_ = getDefaultInstance().getKid(); - onChanged(); - return this; - } - /** - * - * - *
-     * Key ID.
-     * 
- * - * string kid = 4; - * - * @param value The bytes for kid to set. - * @return This builder for chaining. - */ - public Builder setKidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kid_ = value; - onChanged(); - return this; - } - - private java.lang.Object n_ = ""; - /** - * - * - *
-     * Used for RSA keys.
-     * 
- * - * string n = 5; - * - * @return The n. - */ - public java.lang.String getN() { - java.lang.Object ref = n_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - n_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Used for RSA keys.
-     * 
- * - * string n = 5; - * - * @return The bytes for n. - */ - public com.google.protobuf.ByteString getNBytes() { - java.lang.Object ref = n_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - n_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Used for RSA keys.
-     * 
- * - * string n = 5; - * - * @param value The n to set. - * @return This builder for chaining. - */ - public Builder setN(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - n_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Used for RSA keys.
-     * 
- * - * string n = 5; - * - * @return This builder for chaining. - */ - public Builder clearN() { - - n_ = getDefaultInstance().getN(); - onChanged(); - return this; - } - /** - * - * - *
-     * Used for RSA keys.
-     * 
- * - * string n = 5; - * - * @param value The bytes for n to set. - * @return This builder for chaining. - */ - public Builder setNBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - n_ = value; - onChanged(); - return this; - } - - private java.lang.Object e_ = ""; - /** - * - * - *
-     * Used for RSA keys.
-     * 
- * - * string e = 6; - * - * @return The e. - */ - public java.lang.String getE() { - java.lang.Object ref = e_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - e_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Used for RSA keys.
-     * 
- * - * string e = 6; - * - * @return The bytes for e. - */ - public com.google.protobuf.ByteString getEBytes() { - java.lang.Object ref = e_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - e_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Used for RSA keys.
-     * 
- * - * string e = 6; - * - * @param value The e to set. - * @return This builder for chaining. - */ - public Builder setE(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - e_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Used for RSA keys.
-     * 
- * - * string e = 6; - * - * @return This builder for chaining. - */ - public Builder clearE() { - - e_ = getDefaultInstance().getE(); - onChanged(); - return this; - } - /** - * - * - *
-     * Used for RSA keys.
-     * 
- * - * string e = 6; - * - * @param value The bytes for e to set. - * @return This builder for chaining. - */ - public Builder setEBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - e_ = value; - onChanged(); - return this; - } - - private java.lang.Object x_ = ""; - /** - * - * - *
-     * Used for ECDSA keys.
-     * 
- * - * string x = 7; - * - * @return The x. - */ - public java.lang.String getX() { - java.lang.Object ref = x_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - x_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Used for ECDSA keys.
-     * 
- * - * string x = 7; - * - * @return The bytes for x. - */ - public com.google.protobuf.ByteString getXBytes() { - java.lang.Object ref = x_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - x_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Used for ECDSA keys.
-     * 
- * - * string x = 7; - * - * @param value The x to set. - * @return This builder for chaining. - */ - public Builder setX(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - x_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Used for ECDSA keys.
-     * 
- * - * string x = 7; - * - * @return This builder for chaining. - */ - public Builder clearX() { - - x_ = getDefaultInstance().getX(); - onChanged(); - return this; - } - /** - * - * - *
-     * Used for ECDSA keys.
-     * 
- * - * string x = 7; - * - * @param value The bytes for x to set. - * @return This builder for chaining. - */ - public Builder setXBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - x_ = value; - onChanged(); - return this; - } - - private java.lang.Object y_ = ""; - /** - * - * - *
-     * Used for ECDSA keys.
-     * 
- * - * string y = 8; - * - * @return The y. - */ - public java.lang.String getY() { - java.lang.Object ref = y_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - y_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Used for ECDSA keys.
-     * 
- * - * string y = 8; - * - * @return The bytes for y. - */ - public com.google.protobuf.ByteString getYBytes() { - java.lang.Object ref = y_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - y_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Used for ECDSA keys.
-     * 
- * - * string y = 8; - * - * @param value The y to set. - * @return This builder for chaining. - */ - public Builder setY(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - y_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Used for ECDSA keys.
-     * 
- * - * string y = 8; - * - * @return This builder for chaining. - */ - public Builder clearY() { - - y_ = getDefaultInstance().getY(); - onChanged(); - return this; - } - /** - * - * - *
-     * Used for ECDSA keys.
-     * 
- * - * string y = 8; - * - * @param value The bytes for y to set. - * @return This builder for chaining. - */ - public Builder setYBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - y_ = value; - onChanged(); - return this; - } - - private java.lang.Object crv_ = ""; - /** - * - * - *
-     * Used for ECDSA keys.
-     * 
- * - * string crv = 9; - * - * @return The crv. - */ - public java.lang.String getCrv() { - java.lang.Object ref = crv_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - crv_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Used for ECDSA keys.
-     * 
- * - * string crv = 9; - * - * @return The bytes for crv. - */ - public com.google.protobuf.ByteString getCrvBytes() { - java.lang.Object ref = crv_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - crv_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Used for ECDSA keys.
-     * 
- * - * string crv = 9; - * - * @param value The crv to set. - * @return This builder for chaining. - */ - public Builder setCrv(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - crv_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Used for ECDSA keys.
-     * 
- * - * string crv = 9; - * - * @return This builder for chaining. - */ - public Builder clearCrv() { - - crv_ = getDefaultInstance().getCrv(); - onChanged(); - return this; - } - /** - * - * - *
-     * Used for ECDSA keys.
-     * 
- * - * string crv = 9; - * - * @param value The bytes for crv to set. - * @return This builder for chaining. - */ - public Builder setCrvBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - crv_ = 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.container.v1.Jwk) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.Jwk) - private static final com.google.container.v1.Jwk DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.Jwk(); - } - - public static com.google.container.v1.Jwk getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Jwk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Jwk(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.container.v1.Jwk getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/JwkOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/JwkOrBuilder.java deleted file mode 100644 index 1a1d84d2..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/JwkOrBuilder.java +++ /dev/null @@ -1,250 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface JwkOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.Jwk) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Key Type.
-   * 
- * - * string kty = 1; - * - * @return The kty. - */ - java.lang.String getKty(); - /** - * - * - *
-   * Key Type.
-   * 
- * - * string kty = 1; - * - * @return The bytes for kty. - */ - com.google.protobuf.ByteString getKtyBytes(); - - /** - * - * - *
-   * Algorithm.
-   * 
- * - * string alg = 2; - * - * @return The alg. - */ - java.lang.String getAlg(); - /** - * - * - *
-   * Algorithm.
-   * 
- * - * string alg = 2; - * - * @return The bytes for alg. - */ - com.google.protobuf.ByteString getAlgBytes(); - - /** - * - * - *
-   * Permitted uses for the public keys.
-   * 
- * - * string use = 3; - * - * @return The use. - */ - java.lang.String getUse(); - /** - * - * - *
-   * Permitted uses for the public keys.
-   * 
- * - * string use = 3; - * - * @return The bytes for use. - */ - com.google.protobuf.ByteString getUseBytes(); - - /** - * - * - *
-   * Key ID.
-   * 
- * - * string kid = 4; - * - * @return The kid. - */ - java.lang.String getKid(); - /** - * - * - *
-   * Key ID.
-   * 
- * - * string kid = 4; - * - * @return The bytes for kid. - */ - com.google.protobuf.ByteString getKidBytes(); - - /** - * - * - *
-   * Used for RSA keys.
-   * 
- * - * string n = 5; - * - * @return The n. - */ - java.lang.String getN(); - /** - * - * - *
-   * Used for RSA keys.
-   * 
- * - * string n = 5; - * - * @return The bytes for n. - */ - com.google.protobuf.ByteString getNBytes(); - - /** - * - * - *
-   * Used for RSA keys.
-   * 
- * - * string e = 6; - * - * @return The e. - */ - java.lang.String getE(); - /** - * - * - *
-   * Used for RSA keys.
-   * 
- * - * string e = 6; - * - * @return The bytes for e. - */ - com.google.protobuf.ByteString getEBytes(); - - /** - * - * - *
-   * Used for ECDSA keys.
-   * 
- * - * string x = 7; - * - * @return The x. - */ - java.lang.String getX(); - /** - * - * - *
-   * Used for ECDSA keys.
-   * 
- * - * string x = 7; - * - * @return The bytes for x. - */ - com.google.protobuf.ByteString getXBytes(); - - /** - * - * - *
-   * Used for ECDSA keys.
-   * 
- * - * string y = 8; - * - * @return The y. - */ - java.lang.String getY(); - /** - * - * - *
-   * Used for ECDSA keys.
-   * 
- * - * string y = 8; - * - * @return The bytes for y. - */ - com.google.protobuf.ByteString getYBytes(); - - /** - * - * - *
-   * Used for ECDSA keys.
-   * 
- * - * string crv = 9; - * - * @return The crv. - */ - java.lang.String getCrv(); - /** - * - * - *
-   * Used for ECDSA keys.
-   * 
- * - * string crv = 9; - * - * @return The bytes for crv. - */ - com.google.protobuf.ByteString getCrvBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboard.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboard.java deleted file mode 100644 index 7507bf7a..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboard.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Configuration for the Kubernetes Dashboard.
- * 
- * - * Protobuf type {@code google.container.v1.KubernetesDashboard} - */ -public final class KubernetesDashboard extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.KubernetesDashboard) - KubernetesDashboardOrBuilder { - private static final long serialVersionUID = 0L; - // Use KubernetesDashboard.newBuilder() to construct. - private KubernetesDashboard(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private KubernetesDashboard() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new KubernetesDashboard(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private KubernetesDashboard( - 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: - { - disabled_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_KubernetesDashboard_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_KubernetesDashboard_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.KubernetesDashboard.class, - com.google.container.v1.KubernetesDashboard.Builder.class); - } - - public static final int DISABLED_FIELD_NUMBER = 1; - private boolean disabled_; - /** - * - * - *
-   * Whether the Kubernetes Dashboard is enabled for this cluster.
-   * 
- * - * bool disabled = 1; - * - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (disabled_ != false) { - output.writeBool(1, disabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (disabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disabled_); - } - 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.container.v1.KubernetesDashboard)) { - return super.equals(obj); - } - com.google.container.v1.KubernetesDashboard other = - (com.google.container.v1.KubernetesDashboard) obj; - - if (getDisabled() != other.getDisabled()) 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) + DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.KubernetesDashboard parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.KubernetesDashboard parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.KubernetesDashboard parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.KubernetesDashboard parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.KubernetesDashboard parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.KubernetesDashboard parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.KubernetesDashboard parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.KubernetesDashboard parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.KubernetesDashboard parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.KubernetesDashboard parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.KubernetesDashboard parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.KubernetesDashboard parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.KubernetesDashboard prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 Kubernetes Dashboard.
-   * 
- * - * Protobuf type {@code google.container.v1.KubernetesDashboard} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.KubernetesDashboard) - com.google.container.v1.KubernetesDashboardOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_KubernetesDashboard_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_KubernetesDashboard_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.KubernetesDashboard.class, - com.google.container.v1.KubernetesDashboard.Builder.class); - } - - // Construct using com.google.container.v1.KubernetesDashboard.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(); - disabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_KubernetesDashboard_descriptor; - } - - @java.lang.Override - public com.google.container.v1.KubernetesDashboard getDefaultInstanceForType() { - return com.google.container.v1.KubernetesDashboard.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.KubernetesDashboard build() { - com.google.container.v1.KubernetesDashboard result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.KubernetesDashboard buildPartial() { - com.google.container.v1.KubernetesDashboard result = - new com.google.container.v1.KubernetesDashboard(this); - result.disabled_ = disabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.KubernetesDashboard) { - return mergeFrom((com.google.container.v1.KubernetesDashboard) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.KubernetesDashboard other) { - if (other == com.google.container.v1.KubernetesDashboard.getDefaultInstance()) return this; - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - 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.container.v1.KubernetesDashboard parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.KubernetesDashboard) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean disabled_; - /** - * - * - *
-     * Whether the Kubernetes Dashboard is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - * - * - *
-     * Whether the Kubernetes Dashboard is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the Kubernetes Dashboard is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisabled() { - - disabled_ = 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.container.v1.KubernetesDashboard) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.KubernetesDashboard) - private static final com.google.container.v1.KubernetesDashboard DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.KubernetesDashboard(); - } - - public static com.google.container.v1.KubernetesDashboard getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KubernetesDashboard parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KubernetesDashboard(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.container.v1.KubernetesDashboard getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboardOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboardOrBuilder.java deleted file mode 100644 index 3132e05c..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboardOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface KubernetesDashboardOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.KubernetesDashboard) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether the Kubernetes Dashboard is enabled for this cluster.
-   * 
- * - * bool disabled = 1; - * - * @return The disabled. - */ - boolean getDisabled(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbac.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbac.java deleted file mode 100644 index 6e332f24..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbac.java +++ /dev/null @@ -1,555 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Configuration for the legacy Attribute Based Access Control authorization
- * mode.
- * 
- * - * Protobuf type {@code google.container.v1.LegacyAbac} - */ -public final class LegacyAbac extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.LegacyAbac) - LegacyAbacOrBuilder { - private static final long serialVersionUID = 0L; - // Use LegacyAbac.newBuilder() to construct. - private LegacyAbac(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private LegacyAbac() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new LegacyAbac(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private LegacyAbac( - 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: - { - enabled_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LegacyAbac_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LegacyAbac_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.LegacyAbac.class, - com.google.container.v1.LegacyAbac.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - * - * - *
-   * Whether the ABAC authorizer is enabled for this cluster. When enabled,
-   * identities in the system, including service accounts, nodes, and
-   * controllers, will have statically granted permissions beyond those
-   * provided by the RBAC configuration or IAM.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); - } - 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.container.v1.LegacyAbac)) { - return super.equals(obj); - } - com.google.container.v1.LegacyAbac other = (com.google.container.v1.LegacyAbac) obj; - - if (getEnabled() != other.getEnabled()) 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) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.LegacyAbac parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.LegacyAbac parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.LegacyAbac parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.LegacyAbac parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.LegacyAbac parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.LegacyAbac parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.LegacyAbac parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.LegacyAbac parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.LegacyAbac parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.LegacyAbac parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.LegacyAbac parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.LegacyAbac parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.LegacyAbac prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 legacy Attribute Based Access Control authorization
-   * mode.
-   * 
- * - * Protobuf type {@code google.container.v1.LegacyAbac} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.LegacyAbac) - com.google.container.v1.LegacyAbacOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LegacyAbac_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LegacyAbac_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.LegacyAbac.class, - com.google.container.v1.LegacyAbac.Builder.class); - } - - // Construct using com.google.container.v1.LegacyAbac.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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_LegacyAbac_descriptor; - } - - @java.lang.Override - public com.google.container.v1.LegacyAbac getDefaultInstanceForType() { - return com.google.container.v1.LegacyAbac.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.LegacyAbac build() { - com.google.container.v1.LegacyAbac result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.LegacyAbac buildPartial() { - com.google.container.v1.LegacyAbac result = new com.google.container.v1.LegacyAbac(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.LegacyAbac) { - return mergeFrom((com.google.container.v1.LegacyAbac) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.LegacyAbac other) { - if (other == com.google.container.v1.LegacyAbac.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - 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.container.v1.LegacyAbac parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.LegacyAbac) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean enabled_; - /** - * - * - *
-     * Whether the ABAC authorizer is enabled for this cluster. When enabled,
-     * identities in the system, including service accounts, nodes, and
-     * controllers, will have statically granted permissions beyond those
-     * provided by the RBAC configuration or IAM.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether the ABAC authorizer is enabled for this cluster. When enabled,
-     * identities in the system, including service accounts, nodes, and
-     * controllers, will have statically granted permissions beyond those
-     * provided by the RBAC configuration or IAM.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the ABAC authorizer is enabled for this cluster. When enabled,
-     * identities in the system, including service accounts, nodes, and
-     * controllers, will have statically granted permissions beyond those
-     * provided by the RBAC configuration or IAM.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = 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.container.v1.LegacyAbac) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.LegacyAbac) - private static final com.google.container.v1.LegacyAbac DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.LegacyAbac(); - } - - public static com.google.container.v1.LegacyAbac getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LegacyAbac parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LegacyAbac(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.container.v1.LegacyAbac getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbacOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbacOrBuilder.java deleted file mode 100644 index 373ff779..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbacOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface LegacyAbacOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.LegacyAbac) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether the ABAC authorizer is enabled for this cluster. When enabled,
-   * identities in the system, including service accounts, nodes, and
-   * controllers, will have statically granted permissions beyond those
-   * provided by the RBAC configuration or IAM.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java deleted file mode 100644 index 1f407a47..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java +++ /dev/null @@ -1,1055 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * ListClustersRequest lists clusters.
- * 
- * - * Protobuf type {@code google.container.v1.ListClustersRequest} - */ -public final class ListClustersRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.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_ = ""; - zone_ = ""; - parent_ = ""; - } - - @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 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - zone_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListClustersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListClustersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListClustersRequest.class, - com.google.container.v1.ListClustersRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides, or "-" for all zones. This field has been deprecated and
-   * replaced by the parent field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides, or "-" for all zones. This field has been deprecated and
-   * replaced by the parent field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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 PARENT_FIELD_NUMBER = 4; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * The parent (project and location) where the clusters will be listed.
-   * Specified in the format `projects/*/locations/*`.
-   * Location "-" matches all zones and all regions.
-   * 
- * - * string parent = 4; - * - * @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; - } - } - /** - * - * - *
-   * The parent (project and location) where the clusters will be listed.
-   * Specified in the format `projects/*/locations/*`.
-   * Location "-" matches all zones and all regions.
-   * 
- * - * string parent = 4; - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); - } - 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.container.v1.ListClustersRequest)) { - return super.equals(obj); - } - com.google.container.v1.ListClustersRequest other = - (com.google.container.v1.ListClustersRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getParent().equals(other.getParent())) 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) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ListClustersRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.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.container.v1.ListClustersRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.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.container.v1.ListClustersRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListClustersRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListClustersRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.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.container.v1.ListClustersRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.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.container.v1.ListClustersRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.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.container.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; - } - /** - * - * - *
-   * ListClustersRequest lists clusters.
-   * 
- * - * Protobuf type {@code google.container.v1.ListClustersRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ListClustersRequest) - com.google.container.v1.ListClustersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListClustersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListClustersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListClustersRequest.class, - com.google.container.v1.ListClustersRequest.Builder.class); - } - - // Construct using com.google.container.v1.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_ = ""; - - zone_ = ""; - - parent_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListClustersRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ListClustersRequest getDefaultInstanceForType() { - return com.google.container.v1.ListClustersRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ListClustersRequest build() { - com.google.container.v1.ListClustersRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ListClustersRequest buildPartial() { - com.google.container.v1.ListClustersRequest result = - new com.google.container.v1.ListClustersRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ListClustersRequest) { - return mergeFrom((com.google.container.v1.ListClustersRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ListClustersRequest other) { - if (other == com.google.container.v1.ListClustersRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - 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.container.v1.ListClustersRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.ListClustersRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides, or "-" for all zones. This field has been deprecated and
-     * replaced by the parent field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides, or "-" for all zones. This field has been deprecated and
-     * replaced by the parent field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides, or "-" for all zones. This field has been deprecated and
-     * replaced by the parent field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides, or "-" for all zones. This field has been deprecated and
-     * replaced by the parent field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides, or "-" for all zones. This field has been deprecated and
-     * replaced by the parent field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * The parent (project and location) where the clusters will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * - * @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; - } - } - /** - * - * - *
-     * The parent (project and location) where the clusters will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * - * @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; - } - } - /** - * - * - *
-     * The parent (project and location) where the clusters will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * - * @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; - } - /** - * - * - *
-     * The parent (project and location) where the clusters will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * The parent (project and location) where the clusters will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * - * @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; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ListClustersRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ListClustersRequest) - private static final com.google.container.v1.ListClustersRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ListClustersRequest(); - } - - public static com.google.container.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 { - 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.container.v1.ListClustersRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java deleted file mode 100644 index bde054ad..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ListClustersRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ListClustersRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides, or "-" for all zones. This field has been deprecated and
-   * replaced by the parent field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides, or "-" for all zones. This field has been deprecated and
-   * replaced by the parent field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * The parent (project and location) where the clusters will be listed.
-   * Specified in the format `projects/*/locations/*`.
-   * Location "-" matches all zones and all regions.
-   * 
- * - * string parent = 4; - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * The parent (project and location) where the clusters will be listed.
-   * Specified in the format `projects/*/locations/*`.
-   * Location "-" matches all zones and all regions.
-   * 
- * - * string parent = 4; - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponse.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponse.java deleted file mode 100644 index 1c455f9e..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponse.java +++ /dev/null @@ -1,1255 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * ListClustersResponse is the result of ListClustersRequest.
- * 
- * - * Protobuf type {@code google.container.v1.ListClustersResponse} - */ -public final class ListClustersResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.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(); - missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @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.container.v1.Cluster.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - missingZones_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - missingZones_.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)) { - clusters_ = java.util.Collections.unmodifiableList(clusters_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - missingZones_ = missingZones_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListClustersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListClustersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListClustersResponse.class, - com.google.container.v1.ListClustersResponse.Builder.class); - } - - public static final int CLUSTERS_FIELD_NUMBER = 1; - private java.util.List clusters_; - /** - * - * - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - @java.lang.Override - public java.util.List getClustersList() { - return clusters_; - } - /** - * - * - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - @java.lang.Override - public java.util.List - getClustersOrBuilderList() { - return clusters_; - } - /** - * - * - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - @java.lang.Override - public int getClustersCount() { - return clusters_.size(); - } - /** - * - * - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - @java.lang.Override - public com.google.container.v1.Cluster getClusters(int index) { - return clusters_.get(index); - } - /** - * - * - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - @java.lang.Override - public com.google.container.v1.ClusterOrBuilder getClustersOrBuilder(int index) { - return clusters_.get(index); - } - - public static final int MISSING_ZONES_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList missingZones_; - /** - * - * - *
-   * If any zones are listed here, the list of clusters returned
-   * may be missing those zones.
-   * 
- * - * repeated string missing_zones = 2; - * - * @return A list containing the missingZones. - */ - public com.google.protobuf.ProtocolStringList getMissingZonesList() { - return missingZones_; - } - /** - * - * - *
-   * If any zones are listed here, the list of clusters returned
-   * may be missing those zones.
-   * 
- * - * repeated string missing_zones = 2; - * - * @return The count of missingZones. - */ - public int getMissingZonesCount() { - return missingZones_.size(); - } - /** - * - * - *
-   * If any zones are listed here, the list of clusters returned
-   * may be missing those zones.
-   * 
- * - * repeated string missing_zones = 2; - * - * @param index The index of the element to return. - * @return The missingZones at the given index. - */ - public java.lang.String getMissingZones(int index) { - return missingZones_.get(index); - } - /** - * - * - *
-   * If any zones are listed here, the list of clusters returned
-   * may be missing those zones.
-   * 
- * - * repeated string missing_zones = 2; - * - * @param index The index of the value to return. - * @return The bytes of the missingZones at the given index. - */ - public com.google.protobuf.ByteString getMissingZonesBytes(int index) { - return missingZones_.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 < clusters_.size(); i++) { - output.writeMessage(1, clusters_.get(i)); - } - for (int i = 0; i < missingZones_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, missingZones_.getRaw(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 < clusters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, clusters_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < missingZones_.size(); i++) { - dataSize += computeStringSizeNoTag(missingZones_.getRaw(i)); - } - size += dataSize; - size += 1 * getMissingZonesList().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.container.v1.ListClustersResponse)) { - return super.equals(obj); - } - com.google.container.v1.ListClustersResponse other = - (com.google.container.v1.ListClustersResponse) obj; - - if (!getClustersList().equals(other.getClustersList())) return false; - if (!getMissingZonesList().equals(other.getMissingZonesList())) 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(); - } - if (getMissingZonesCount() > 0) { - hash = (37 * hash) + MISSING_ZONES_FIELD_NUMBER; - hash = (53 * hash) + getMissingZonesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ListClustersResponse parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.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.container.v1.ListClustersResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.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.container.v1.ListClustersResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListClustersResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListClustersResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.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.container.v1.ListClustersResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.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.container.v1.ListClustersResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.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.container.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; - } - /** - * - * - *
-   * ListClustersResponse is the result of ListClustersRequest.
-   * 
- * - * Protobuf type {@code google.container.v1.ListClustersResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ListClustersResponse) - com.google.container.v1.ListClustersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListClustersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListClustersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListClustersResponse.class, - com.google.container.v1.ListClustersResponse.Builder.class); - } - - // Construct using com.google.container.v1.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(); - } - missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListClustersResponse_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ListClustersResponse getDefaultInstanceForType() { - return com.google.container.v1.ListClustersResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ListClustersResponse build() { - com.google.container.v1.ListClustersResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ListClustersResponse buildPartial() { - com.google.container.v1.ListClustersResponse result = - new com.google.container.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(); - } - if (((bitField0_ & 0x00000002) != 0)) { - missingZones_ = missingZones_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.missingZones_ = missingZones_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ListClustersResponse) { - return mergeFrom((com.google.container.v1.ListClustersResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ListClustersResponse other) { - if (other == com.google.container.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.missingZones_.isEmpty()) { - if (missingZones_.isEmpty()) { - missingZones_ = other.missingZones_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMissingZonesIsMutable(); - missingZones_.addAll(other.missingZones_); - } - 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.container.v1.ListClustersResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.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.container.v1.Cluster, - com.google.container.v1.Cluster.Builder, - com.google.container.v1.ClusterOrBuilder> - clustersBuilder_; - - /** - * - * - *
-     * A list of clusters in the project in the specified zone, or
-     * across all ones.
-     * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - public java.util.List getClustersList() { - if (clustersBuilder_ == null) { - return java.util.Collections.unmodifiableList(clusters_); - } else { - return clustersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A list of clusters in the project in the specified zone, or
-     * across all ones.
-     * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - public int getClustersCount() { - if (clustersBuilder_ == null) { - return clusters_.size(); - } else { - return clustersBuilder_.getCount(); - } - } - /** - * - * - *
-     * A list of clusters in the project in the specified zone, or
-     * across all ones.
-     * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - public com.google.container.v1.Cluster getClusters(int index) { - if (clustersBuilder_ == null) { - return clusters_.get(index); - } else { - return clustersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A list of clusters in the project in the specified zone, or
-     * across all ones.
-     * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - public Builder setClusters(int index, com.google.container.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; - } - /** - * - * - *
-     * A list of clusters in the project in the specified zone, or
-     * across all ones.
-     * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - public Builder setClusters(int index, com.google.container.v1.Cluster.Builder builderForValue) { - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - clusters_.set(index, builderForValue.build()); - onChanged(); - } else { - clustersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of clusters in the project in the specified zone, or
-     * across all ones.
-     * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - public Builder addClusters(com.google.container.v1.Cluster value) { - if (clustersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClustersIsMutable(); - clusters_.add(value); - onChanged(); - } else { - clustersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A list of clusters in the project in the specified zone, or
-     * across all ones.
-     * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - public Builder addClusters(int index, com.google.container.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; - } - /** - * - * - *
-     * A list of clusters in the project in the specified zone, or
-     * across all ones.
-     * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - public Builder addClusters(com.google.container.v1.Cluster.Builder builderForValue) { - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - clusters_.add(builderForValue.build()); - onChanged(); - } else { - clustersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of clusters in the project in the specified zone, or
-     * across all ones.
-     * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - public Builder addClusters(int index, com.google.container.v1.Cluster.Builder builderForValue) { - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - clusters_.add(index, builderForValue.build()); - onChanged(); - } else { - clustersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of clusters in the project in the specified zone, or
-     * across all ones.
-     * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - 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; - } - /** - * - * - *
-     * A list of clusters in the project in the specified zone, or
-     * across all ones.
-     * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - public Builder clearClusters() { - if (clustersBuilder_ == null) { - clusters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - clustersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of clusters in the project in the specified zone, or
-     * across all ones.
-     * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - public Builder removeClusters(int index) { - if (clustersBuilder_ == null) { - ensureClustersIsMutable(); - clusters_.remove(index); - onChanged(); - } else { - clustersBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A list of clusters in the project in the specified zone, or
-     * across all ones.
-     * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - public com.google.container.v1.Cluster.Builder getClustersBuilder(int index) { - return getClustersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of clusters in the project in the specified zone, or
-     * across all ones.
-     * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - public com.google.container.v1.ClusterOrBuilder getClustersOrBuilder(int index) { - if (clustersBuilder_ == null) { - return clusters_.get(index); - } else { - return clustersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A list of clusters in the project in the specified zone, or
-     * across all ones.
-     * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - public java.util.List - getClustersOrBuilderList() { - if (clustersBuilder_ != null) { - return clustersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(clusters_); - } - } - /** - * - * - *
-     * A list of clusters in the project in the specified zone, or
-     * across all ones.
-     * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - public com.google.container.v1.Cluster.Builder addClustersBuilder() { - return getClustersFieldBuilder() - .addBuilder(com.google.container.v1.Cluster.getDefaultInstance()); - } - /** - * - * - *
-     * A list of clusters in the project in the specified zone, or
-     * across all ones.
-     * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - public com.google.container.v1.Cluster.Builder addClustersBuilder(int index) { - return getClustersFieldBuilder() - .addBuilder(index, com.google.container.v1.Cluster.getDefaultInstance()); - } - /** - * - * - *
-     * A list of clusters in the project in the specified zone, or
-     * across all ones.
-     * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - public java.util.List getClustersBuilderList() { - return getClustersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.Cluster, - com.google.container.v1.Cluster.Builder, - com.google.container.v1.ClusterOrBuilder> - getClustersFieldBuilder() { - if (clustersBuilder_ == null) { - clustersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.Cluster, - com.google.container.v1.Cluster.Builder, - com.google.container.v1.ClusterOrBuilder>( - clusters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - clusters_ = null; - } - return clustersBuilder_; - } - - private com.google.protobuf.LazyStringList missingZones_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureMissingZonesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - missingZones_ = new com.google.protobuf.LazyStringArrayList(missingZones_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * - * @return A list containing the missingZones. - */ - public com.google.protobuf.ProtocolStringList getMissingZonesList() { - return missingZones_.getUnmodifiableView(); - } - /** - * - * - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * - * @return The count of missingZones. - */ - public int getMissingZonesCount() { - return missingZones_.size(); - } - /** - * - * - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * - * @param index The index of the element to return. - * @return The missingZones at the given index. - */ - public java.lang.String getMissingZones(int index) { - return missingZones_.get(index); - } - /** - * - * - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * - * @param index The index of the value to return. - * @return The bytes of the missingZones at the given index. - */ - public com.google.protobuf.ByteString getMissingZonesBytes(int index) { - return missingZones_.getByteString(index); - } - /** - * - * - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * - * @param index The index to set the value at. - * @param value The missingZones to set. - * @return This builder for chaining. - */ - public Builder setMissingZones(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMissingZonesIsMutable(); - missingZones_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * - * @param value The missingZones to add. - * @return This builder for chaining. - */ - public Builder addMissingZones(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMissingZonesIsMutable(); - missingZones_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * - * @param values The missingZones to add. - * @return This builder for chaining. - */ - public Builder addAllMissingZones(java.lang.Iterable values) { - ensureMissingZonesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, missingZones_); - onChanged(); - return this; - } - /** - * - * - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * - * @return This builder for chaining. - */ - public Builder clearMissingZones() { - missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * If any zones are listed here, the list of clusters returned
-     * may be missing those zones.
-     * 
- * - * repeated string missing_zones = 2; - * - * @param value The bytes of the missingZones to add. - * @return This builder for chaining. - */ - public Builder addMissingZonesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureMissingZonesIsMutable(); - missingZones_.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.container.v1.ListClustersResponse) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ListClustersResponse) - private static final com.google.container.v1.ListClustersResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ListClustersResponse(); - } - - public static com.google.container.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 { - 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.container.v1.ListClustersResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponseOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponseOrBuilder.java deleted file mode 100644 index e50ec4c0..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponseOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ListClustersResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ListClustersResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - java.util.List getClustersList(); - /** - * - * - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - com.google.container.v1.Cluster getClusters(int index); - /** - * - * - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - int getClustersCount(); - /** - * - * - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - java.util.List getClustersOrBuilderList(); - /** - * - * - *
-   * A list of clusters in the project in the specified zone, or
-   * across all ones.
-   * 
- * - * repeated .google.container.v1.Cluster clusters = 1; - */ - com.google.container.v1.ClusterOrBuilder getClustersOrBuilder(int index); - - /** - * - * - *
-   * If any zones are listed here, the list of clusters returned
-   * may be missing those zones.
-   * 
- * - * repeated string missing_zones = 2; - * - * @return A list containing the missingZones. - */ - java.util.List getMissingZonesList(); - /** - * - * - *
-   * If any zones are listed here, the list of clusters returned
-   * may be missing those zones.
-   * 
- * - * repeated string missing_zones = 2; - * - * @return The count of missingZones. - */ - int getMissingZonesCount(); - /** - * - * - *
-   * If any zones are listed here, the list of clusters returned
-   * may be missing those zones.
-   * 
- * - * repeated string missing_zones = 2; - * - * @param index The index of the element to return. - * @return The missingZones at the given index. - */ - java.lang.String getMissingZones(int index); - /** - * - * - *
-   * If any zones are listed here, the list of clusters returned
-   * may be missing those zones.
-   * 
- * - * repeated string missing_zones = 2; - * - * @param index The index of the value to return. - * @return The bytes of the missingZones at the given index. - */ - com.google.protobuf.ByteString getMissingZonesBytes(int index); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java deleted file mode 100644 index e68f6e41..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java +++ /dev/null @@ -1,1241 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * ListNodePoolsRequest lists the node pool(s) for a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.ListNodePoolsRequest} - */ -public final class ListNodePoolsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ListNodePoolsRequest) - ListNodePoolsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListNodePoolsRequest.newBuilder() to construct. - private ListNodePoolsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListNodePoolsRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListNodePoolsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListNodePoolsRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListNodePoolsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListNodePoolsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListNodePoolsRequest.class, - com.google.container.v1.ListNodePoolsRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the parent
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the parent
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARENT_FIELD_NUMBER = 5; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * The parent (project, location, cluster id) where the node pools will be
-   * listed. Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string parent = 5; - * - * @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; - } - } - /** - * - * - *
-   * The parent (project, location, cluster id) where the node pools will be
-   * listed. Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string parent = 5; - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); - } - 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.container.v1.ListNodePoolsRequest)) { - return super.equals(obj); - } - com.google.container.v1.ListNodePoolsRequest other = - (com.google.container.v1.ListNodePoolsRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - if (!getParent().equals(other.getParent())) 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) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ListNodePoolsRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListNodePoolsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListNodePoolsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListNodePoolsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListNodePoolsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListNodePoolsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListNodePoolsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ListNodePoolsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ListNodePoolsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ListNodePoolsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ListNodePoolsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ListNodePoolsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ListNodePoolsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * ListNodePoolsRequest lists the node pool(s) for a cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.ListNodePoolsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ListNodePoolsRequest) - com.google.container.v1.ListNodePoolsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListNodePoolsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListNodePoolsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListNodePoolsRequest.class, - com.google.container.v1.ListNodePoolsRequest.Builder.class); - } - - // Construct using com.google.container.v1.ListNodePoolsRequest.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - parent_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListNodePoolsRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ListNodePoolsRequest getDefaultInstanceForType() { - return com.google.container.v1.ListNodePoolsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ListNodePoolsRequest build() { - com.google.container.v1.ListNodePoolsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ListNodePoolsRequest buildPartial() { - com.google.container.v1.ListNodePoolsRequest result = - new com.google.container.v1.ListNodePoolsRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ListNodePoolsRequest) { - return mergeFrom((com.google.container.v1.ListNodePoolsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ListNodePoolsRequest other) { - if (other == com.google.container.v1.ListNodePoolsRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - 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.container.v1.ListNodePoolsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.ListNodePoolsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the parent
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * The parent (project, location, cluster id) where the node pools will be
-     * listed. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string parent = 5; - * - * @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; - } - } - /** - * - * - *
-     * The parent (project, location, cluster id) where the node pools will be
-     * listed. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string parent = 5; - * - * @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; - } - } - /** - * - * - *
-     * The parent (project, location, cluster id) where the node pools will be
-     * listed. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string parent = 5; - * - * @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; - } - /** - * - * - *
-     * The parent (project, location, cluster id) where the node pools will be
-     * listed. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string parent = 5; - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * The parent (project, location, cluster id) where the node pools will be
-     * listed. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string parent = 5; - * - * @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; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ListNodePoolsRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ListNodePoolsRequest) - private static final com.google.container.v1.ListNodePoolsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ListNodePoolsRequest(); - } - - public static com.google.container.v1.ListNodePoolsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNodePoolsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNodePoolsRequest(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.container.v1.ListNodePoolsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java deleted file mode 100644 index a0c3d136..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ListNodePoolsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ListNodePoolsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the parent
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the parent
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * The parent (project, location, cluster id) where the node pools will be
-   * listed. Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string parent = 5; - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * The parent (project, location, cluster id) where the node pools will be
-   * listed. Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string parent = 5; - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponse.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponse.java deleted file mode 100644 index 11a0a60e..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponse.java +++ /dev/null @@ -1,945 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * ListNodePoolsResponse is the result of ListNodePoolsRequest.
- * 
- * - * Protobuf type {@code google.container.v1.ListNodePoolsResponse} - */ -public final class ListNodePoolsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ListNodePoolsResponse) - ListNodePoolsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListNodePoolsResponse.newBuilder() to construct. - private ListNodePoolsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListNodePoolsResponse() { - nodePools_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListNodePoolsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListNodePoolsResponse( - 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)) { - nodePools_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nodePools_.add( - input.readMessage(com.google.container.v1.NodePool.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)) { - nodePools_ = java.util.Collections.unmodifiableList(nodePools_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListNodePoolsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListNodePoolsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListNodePoolsResponse.class, - com.google.container.v1.ListNodePoolsResponse.Builder.class); - } - - public static final int NODE_POOLS_FIELD_NUMBER = 1; - private java.util.List nodePools_; - /** - * - * - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - @java.lang.Override - public java.util.List getNodePoolsList() { - return nodePools_; - } - /** - * - * - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - @java.lang.Override - public java.util.List - getNodePoolsOrBuilderList() { - return nodePools_; - } - /** - * - * - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - @java.lang.Override - public int getNodePoolsCount() { - return nodePools_.size(); - } - /** - * - * - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - @java.lang.Override - public com.google.container.v1.NodePool getNodePools(int index) { - return nodePools_.get(index); - } - /** - * - * - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - @java.lang.Override - public com.google.container.v1.NodePoolOrBuilder getNodePoolsOrBuilder(int index) { - return nodePools_.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 < nodePools_.size(); i++) { - output.writeMessage(1, nodePools_.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 < nodePools_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, nodePools_.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.container.v1.ListNodePoolsResponse)) { - return super.equals(obj); - } - com.google.container.v1.ListNodePoolsResponse other = - (com.google.container.v1.ListNodePoolsResponse) obj; - - if (!getNodePoolsList().equals(other.getNodePoolsList())) 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 (getNodePoolsCount() > 0) { - hash = (37 * hash) + NODE_POOLS_FIELD_NUMBER; - hash = (53 * hash) + getNodePoolsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ListNodePoolsResponse parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListNodePoolsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListNodePoolsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListNodePoolsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListNodePoolsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListNodePoolsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListNodePoolsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ListNodePoolsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ListNodePoolsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ListNodePoolsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ListNodePoolsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ListNodePoolsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ListNodePoolsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * ListNodePoolsResponse is the result of ListNodePoolsRequest.
-   * 
- * - * Protobuf type {@code google.container.v1.ListNodePoolsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ListNodePoolsResponse) - com.google.container.v1.ListNodePoolsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListNodePoolsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListNodePoolsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListNodePoolsResponse.class, - com.google.container.v1.ListNodePoolsResponse.Builder.class); - } - - // Construct using com.google.container.v1.ListNodePoolsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getNodePoolsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (nodePoolsBuilder_ == null) { - nodePools_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - nodePoolsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListNodePoolsResponse_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ListNodePoolsResponse getDefaultInstanceForType() { - return com.google.container.v1.ListNodePoolsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ListNodePoolsResponse build() { - com.google.container.v1.ListNodePoolsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ListNodePoolsResponse buildPartial() { - com.google.container.v1.ListNodePoolsResponse result = - new com.google.container.v1.ListNodePoolsResponse(this); - int from_bitField0_ = bitField0_; - if (nodePoolsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodePools_ = java.util.Collections.unmodifiableList(nodePools_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodePools_ = nodePools_; - } else { - result.nodePools_ = nodePoolsBuilder_.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.container.v1.ListNodePoolsResponse) { - return mergeFrom((com.google.container.v1.ListNodePoolsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ListNodePoolsResponse other) { - if (other == com.google.container.v1.ListNodePoolsResponse.getDefaultInstance()) return this; - if (nodePoolsBuilder_ == null) { - if (!other.nodePools_.isEmpty()) { - if (nodePools_.isEmpty()) { - nodePools_ = other.nodePools_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodePoolsIsMutable(); - nodePools_.addAll(other.nodePools_); - } - onChanged(); - } - } else { - if (!other.nodePools_.isEmpty()) { - if (nodePoolsBuilder_.isEmpty()) { - nodePoolsBuilder_.dispose(); - nodePoolsBuilder_ = null; - nodePools_ = other.nodePools_; - bitField0_ = (bitField0_ & ~0x00000001); - nodePoolsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNodePoolsFieldBuilder() - : null; - } else { - nodePoolsBuilder_.addAllMessages(other.nodePools_); - } - } - } - 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.container.v1.ListNodePoolsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.ListNodePoolsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List nodePools_ = - java.util.Collections.emptyList(); - - private void ensureNodePoolsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nodePools_ = new java.util.ArrayList(nodePools_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodePool, - com.google.container.v1.NodePool.Builder, - com.google.container.v1.NodePoolOrBuilder> - nodePoolsBuilder_; - - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - public java.util.List getNodePoolsList() { - if (nodePoolsBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodePools_); - } else { - return nodePoolsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - public int getNodePoolsCount() { - if (nodePoolsBuilder_ == null) { - return nodePools_.size(); - } else { - return nodePoolsBuilder_.getCount(); - } - } - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - public com.google.container.v1.NodePool getNodePools(int index) { - if (nodePoolsBuilder_ == null) { - return nodePools_.get(index); - } else { - return nodePoolsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - public Builder setNodePools(int index, com.google.container.v1.NodePool value) { - if (nodePoolsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodePoolsIsMutable(); - nodePools_.set(index, value); - onChanged(); - } else { - nodePoolsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - public Builder setNodePools( - int index, com.google.container.v1.NodePool.Builder builderForValue) { - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - nodePools_.set(index, builderForValue.build()); - onChanged(); - } else { - nodePoolsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - public Builder addNodePools(com.google.container.v1.NodePool value) { - if (nodePoolsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodePoolsIsMutable(); - nodePools_.add(value); - onChanged(); - } else { - nodePoolsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - public Builder addNodePools(int index, com.google.container.v1.NodePool value) { - if (nodePoolsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodePoolsIsMutable(); - nodePools_.add(index, value); - onChanged(); - } else { - nodePoolsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - public Builder addNodePools(com.google.container.v1.NodePool.Builder builderForValue) { - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - nodePools_.add(builderForValue.build()); - onChanged(); - } else { - nodePoolsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - public Builder addNodePools( - int index, com.google.container.v1.NodePool.Builder builderForValue) { - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - nodePools_.add(index, builderForValue.build()); - onChanged(); - } else { - nodePoolsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - public Builder addAllNodePools( - java.lang.Iterable values) { - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodePools_); - onChanged(); - } else { - nodePoolsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - public Builder clearNodePools() { - if (nodePoolsBuilder_ == null) { - nodePools_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodePoolsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - public Builder removeNodePools(int index) { - if (nodePoolsBuilder_ == null) { - ensureNodePoolsIsMutable(); - nodePools_.remove(index); - onChanged(); - } else { - nodePoolsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - public com.google.container.v1.NodePool.Builder getNodePoolsBuilder(int index) { - return getNodePoolsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - public com.google.container.v1.NodePoolOrBuilder getNodePoolsOrBuilder(int index) { - if (nodePoolsBuilder_ == null) { - return nodePools_.get(index); - } else { - return nodePoolsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - public java.util.List - getNodePoolsOrBuilderList() { - if (nodePoolsBuilder_ != null) { - return nodePoolsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodePools_); - } - } - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - public com.google.container.v1.NodePool.Builder addNodePoolsBuilder() { - return getNodePoolsFieldBuilder() - .addBuilder(com.google.container.v1.NodePool.getDefaultInstance()); - } - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - public com.google.container.v1.NodePool.Builder addNodePoolsBuilder(int index) { - return getNodePoolsFieldBuilder() - .addBuilder(index, com.google.container.v1.NodePool.getDefaultInstance()); - } - /** - * - * - *
-     * A list of node pools for a cluster.
-     * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - public java.util.List getNodePoolsBuilderList() { - return getNodePoolsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodePool, - com.google.container.v1.NodePool.Builder, - com.google.container.v1.NodePoolOrBuilder> - getNodePoolsFieldBuilder() { - if (nodePoolsBuilder_ == null) { - nodePoolsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodePool, - com.google.container.v1.NodePool.Builder, - com.google.container.v1.NodePoolOrBuilder>( - nodePools_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - nodePools_ = null; - } - return nodePoolsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ListNodePoolsResponse) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ListNodePoolsResponse) - private static final com.google.container.v1.ListNodePoolsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ListNodePoolsResponse(); - } - - public static com.google.container.v1.ListNodePoolsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNodePoolsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNodePoolsResponse(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.container.v1.ListNodePoolsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponseOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponseOrBuilder.java deleted file mode 100644 index ce1bc174..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponseOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ListNodePoolsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ListNodePoolsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - java.util.List getNodePoolsList(); - /** - * - * - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - com.google.container.v1.NodePool getNodePools(int index); - /** - * - * - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - int getNodePoolsCount(); - /** - * - * - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - java.util.List getNodePoolsOrBuilderList(); - /** - * - * - *
-   * A list of node pools for a cluster.
-   * 
- * - * repeated .google.container.v1.NodePool node_pools = 1; - */ - com.google.container.v1.NodePoolOrBuilder getNodePoolsOrBuilder(int index); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java deleted file mode 100644 index c613c800..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java +++ /dev/null @@ -1,1055 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * ListOperationsRequest lists operations.
- * 
- * - * Protobuf type {@code google.container.v1.ListOperationsRequest} - */ -public final class ListOperationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ListOperationsRequest) - ListOperationsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListOperationsRequest.newBuilder() to construct. - private ListOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListOperationsRequest() { - projectId_ = ""; - zone_ = ""; - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListOperationsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListOperationsRequest( - 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(); - - zone_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListOperationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListOperationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListOperationsRequest.class, - com.google.container.v1.ListOperationsRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-   * operations for, or `-` for all zones. This field has been deprecated and
-   * replaced by the parent field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-   * operations for, or `-` for all zones. This field has been deprecated and
-   * replaced by the parent field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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 PARENT_FIELD_NUMBER = 4; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * The parent (project and location) where the operations will be listed.
-   * Specified in the format `projects/*/locations/*`.
-   * Location "-" matches all zones and all regions.
-   * 
- * - * string parent = 4; - * - * @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; - } - } - /** - * - * - *
-   * The parent (project and location) where the operations will be listed.
-   * Specified in the format `projects/*/locations/*`.
-   * Location "-" matches all zones and all regions.
-   * 
- * - * string parent = 4; - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); - } - 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.container.v1.ListOperationsRequest)) { - return super.equals(obj); - } - com.google.container.v1.ListOperationsRequest other = - (com.google.container.v1.ListOperationsRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getParent().equals(other.getParent())) 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) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ListOperationsRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListOperationsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListOperationsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListOperationsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListOperationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListOperationsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListOperationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ListOperationsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ListOperationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ListOperationsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ListOperationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ListOperationsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ListOperationsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * ListOperationsRequest lists operations.
-   * 
- * - * Protobuf type {@code google.container.v1.ListOperationsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ListOperationsRequest) - com.google.container.v1.ListOperationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListOperationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListOperationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListOperationsRequest.class, - com.google.container.v1.ListOperationsRequest.Builder.class); - } - - // Construct using com.google.container.v1.ListOperationsRequest.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_ = ""; - - zone_ = ""; - - parent_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListOperationsRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ListOperationsRequest getDefaultInstanceForType() { - return com.google.container.v1.ListOperationsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ListOperationsRequest build() { - com.google.container.v1.ListOperationsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ListOperationsRequest buildPartial() { - com.google.container.v1.ListOperationsRequest result = - new com.google.container.v1.ListOperationsRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ListOperationsRequest) { - return mergeFrom((com.google.container.v1.ListOperationsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ListOperationsRequest other) { - if (other == com.google.container.v1.ListOperationsRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - 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.container.v1.ListOperationsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.ListOperationsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the parent field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-     * operations for, or `-` for all zones. This field has been deprecated and
-     * replaced by the parent field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-     * operations for, or `-` for all zones. This field has been deprecated and
-     * replaced by the parent field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-     * operations for, or `-` for all zones. This field has been deprecated and
-     * replaced by the parent field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-     * operations for, or `-` for all zones. This field has been deprecated and
-     * replaced by the parent field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-     * operations for, or `-` for all zones. This field has been deprecated and
-     * replaced by the parent field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * The parent (project and location) where the operations will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * - * @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; - } - } - /** - * - * - *
-     * The parent (project and location) where the operations will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * - * @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; - } - } - /** - * - * - *
-     * The parent (project and location) where the operations will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * - * @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; - } - /** - * - * - *
-     * The parent (project and location) where the operations will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * The parent (project and location) where the operations will be listed.
-     * Specified in the format `projects/*/locations/*`.
-     * Location "-" matches all zones and all regions.
-     * 
- * - * string parent = 4; - * - * @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; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ListOperationsRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ListOperationsRequest) - private static final com.google.container.v1.ListOperationsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ListOperationsRequest(); - } - - public static com.google.container.v1.ListOperationsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListOperationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListOperationsRequest(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.container.v1.ListOperationsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java deleted file mode 100644 index 0a448e97..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ListOperationsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ListOperationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the parent field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-   * operations for, or `-` for all zones. This field has been deprecated and
-   * replaced by the parent field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) to return
-   * operations for, or `-` for all zones. This field has been deprecated and
-   * replaced by the parent field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * The parent (project and location) where the operations will be listed.
-   * Specified in the format `projects/*/locations/*`.
-   * Location "-" matches all zones and all regions.
-   * 
- * - * string parent = 4; - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * The parent (project and location) where the operations will be listed.
-   * Specified in the format `projects/*/locations/*`.
-   * Location "-" matches all zones and all regions.
-   * 
- * - * string parent = 4; - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponse.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponse.java deleted file mode 100644 index 91c2e7f1..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponse.java +++ /dev/null @@ -1,1234 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * ListOperationsResponse is the result of ListOperationsRequest.
- * 
- * - * Protobuf type {@code google.container.v1.ListOperationsResponse} - */ -public final class ListOperationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ListOperationsResponse) - ListOperationsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListOperationsResponse.newBuilder() to construct. - private ListOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListOperationsResponse() { - operations_ = java.util.Collections.emptyList(); - missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListOperationsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListOperationsResponse( - 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)) { - operations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - operations_.add( - input.readMessage(com.google.container.v1.Operation.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - missingZones_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - missingZones_.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)) { - operations_ = java.util.Collections.unmodifiableList(operations_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - missingZones_ = missingZones_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListOperationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListOperationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListOperationsResponse.class, - com.google.container.v1.ListOperationsResponse.Builder.class); - } - - public static final int OPERATIONS_FIELD_NUMBER = 1; - private java.util.List operations_; - /** - * - * - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - @java.lang.Override - public java.util.List getOperationsList() { - return operations_; - } - /** - * - * - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - @java.lang.Override - public java.util.List - getOperationsOrBuilderList() { - return operations_; - } - /** - * - * - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - @java.lang.Override - public int getOperationsCount() { - return operations_.size(); - } - /** - * - * - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - @java.lang.Override - public com.google.container.v1.Operation getOperations(int index) { - return operations_.get(index); - } - /** - * - * - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - @java.lang.Override - public com.google.container.v1.OperationOrBuilder getOperationsOrBuilder(int index) { - return operations_.get(index); - } - - public static final int MISSING_ZONES_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList missingZones_; - /** - * - * - *
-   * If any zones are listed here, the list of operations returned
-   * may be missing the operations from those zones.
-   * 
- * - * repeated string missing_zones = 2; - * - * @return A list containing the missingZones. - */ - public com.google.protobuf.ProtocolStringList getMissingZonesList() { - return missingZones_; - } - /** - * - * - *
-   * If any zones are listed here, the list of operations returned
-   * may be missing the operations from those zones.
-   * 
- * - * repeated string missing_zones = 2; - * - * @return The count of missingZones. - */ - public int getMissingZonesCount() { - return missingZones_.size(); - } - /** - * - * - *
-   * If any zones are listed here, the list of operations returned
-   * may be missing the operations from those zones.
-   * 
- * - * repeated string missing_zones = 2; - * - * @param index The index of the element to return. - * @return The missingZones at the given index. - */ - public java.lang.String getMissingZones(int index) { - return missingZones_.get(index); - } - /** - * - * - *
-   * If any zones are listed here, the list of operations returned
-   * may be missing the operations from those zones.
-   * 
- * - * repeated string missing_zones = 2; - * - * @param index The index of the value to return. - * @return The bytes of the missingZones at the given index. - */ - public com.google.protobuf.ByteString getMissingZonesBytes(int index) { - return missingZones_.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 < operations_.size(); i++) { - output.writeMessage(1, operations_.get(i)); - } - for (int i = 0; i < missingZones_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, missingZones_.getRaw(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 < operations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, operations_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < missingZones_.size(); i++) { - dataSize += computeStringSizeNoTag(missingZones_.getRaw(i)); - } - size += dataSize; - size += 1 * getMissingZonesList().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.container.v1.ListOperationsResponse)) { - return super.equals(obj); - } - com.google.container.v1.ListOperationsResponse other = - (com.google.container.v1.ListOperationsResponse) obj; - - if (!getOperationsList().equals(other.getOperationsList())) return false; - if (!getMissingZonesList().equals(other.getMissingZonesList())) 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 (getOperationsCount() > 0) { - hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; - hash = (53 * hash) + getOperationsList().hashCode(); - } - if (getMissingZonesCount() > 0) { - hash = (37 * hash) + MISSING_ZONES_FIELD_NUMBER; - hash = (53 * hash) + getMissingZonesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ListOperationsResponse parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListOperationsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListOperationsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListOperationsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListOperationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListOperationsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListOperationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ListOperationsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ListOperationsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ListOperationsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ListOperationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ListOperationsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ListOperationsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * ListOperationsResponse is the result of ListOperationsRequest.
-   * 
- * - * Protobuf type {@code google.container.v1.ListOperationsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ListOperationsResponse) - com.google.container.v1.ListOperationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListOperationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListOperationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListOperationsResponse.class, - com.google.container.v1.ListOperationsResponse.Builder.class); - } - - // Construct using com.google.container.v1.ListOperationsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getOperationsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (operationsBuilder_ == null) { - operations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - operationsBuilder_.clear(); - } - missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListOperationsResponse_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ListOperationsResponse getDefaultInstanceForType() { - return com.google.container.v1.ListOperationsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ListOperationsResponse build() { - com.google.container.v1.ListOperationsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ListOperationsResponse buildPartial() { - com.google.container.v1.ListOperationsResponse result = - new com.google.container.v1.ListOperationsResponse(this); - int from_bitField0_ = bitField0_; - if (operationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - operations_ = java.util.Collections.unmodifiableList(operations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.operations_ = operations_; - } else { - result.operations_ = operationsBuilder_.build(); - } - if (((bitField0_ & 0x00000002) != 0)) { - missingZones_ = missingZones_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.missingZones_ = missingZones_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ListOperationsResponse) { - return mergeFrom((com.google.container.v1.ListOperationsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ListOperationsResponse other) { - if (other == com.google.container.v1.ListOperationsResponse.getDefaultInstance()) return this; - if (operationsBuilder_ == null) { - if (!other.operations_.isEmpty()) { - if (operations_.isEmpty()) { - operations_ = other.operations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOperationsIsMutable(); - operations_.addAll(other.operations_); - } - onChanged(); - } - } else { - if (!other.operations_.isEmpty()) { - if (operationsBuilder_.isEmpty()) { - operationsBuilder_.dispose(); - operationsBuilder_ = null; - operations_ = other.operations_; - bitField0_ = (bitField0_ & ~0x00000001); - operationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOperationsFieldBuilder() - : null; - } else { - operationsBuilder_.addAllMessages(other.operations_); - } - } - } - if (!other.missingZones_.isEmpty()) { - if (missingZones_.isEmpty()) { - missingZones_ = other.missingZones_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMissingZonesIsMutable(); - missingZones_.addAll(other.missingZones_); - } - 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.container.v1.ListOperationsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.ListOperationsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List operations_ = - java.util.Collections.emptyList(); - - private void ensureOperationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - operations_ = new java.util.ArrayList(operations_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.Operation, - com.google.container.v1.Operation.Builder, - com.google.container.v1.OperationOrBuilder> - operationsBuilder_; - - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - public java.util.List getOperationsList() { - if (operationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(operations_); - } else { - return operationsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - public int getOperationsCount() { - if (operationsBuilder_ == null) { - return operations_.size(); - } else { - return operationsBuilder_.getCount(); - } - } - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - public com.google.container.v1.Operation getOperations(int index) { - if (operationsBuilder_ == null) { - return operations_.get(index); - } else { - return operationsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - public Builder setOperations(int index, com.google.container.v1.Operation value) { - if (operationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOperationsIsMutable(); - operations_.set(index, value); - onChanged(); - } else { - operationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - public Builder setOperations( - int index, com.google.container.v1.Operation.Builder builderForValue) { - if (operationsBuilder_ == null) { - ensureOperationsIsMutable(); - operations_.set(index, builderForValue.build()); - onChanged(); - } else { - operationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - public Builder addOperations(com.google.container.v1.Operation value) { - if (operationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOperationsIsMutable(); - operations_.add(value); - onChanged(); - } else { - operationsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - public Builder addOperations(int index, com.google.container.v1.Operation value) { - if (operationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOperationsIsMutable(); - operations_.add(index, value); - onChanged(); - } else { - operationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - public Builder addOperations(com.google.container.v1.Operation.Builder builderForValue) { - if (operationsBuilder_ == null) { - ensureOperationsIsMutable(); - operations_.add(builderForValue.build()); - onChanged(); - } else { - operationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - public Builder addOperations( - int index, com.google.container.v1.Operation.Builder builderForValue) { - if (operationsBuilder_ == null) { - ensureOperationsIsMutable(); - operations_.add(index, builderForValue.build()); - onChanged(); - } else { - operationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - public Builder addAllOperations( - java.lang.Iterable values) { - if (operationsBuilder_ == null) { - ensureOperationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, operations_); - onChanged(); - } else { - operationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - public Builder clearOperations() { - if (operationsBuilder_ == null) { - operations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - operationsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - public Builder removeOperations(int index) { - if (operationsBuilder_ == null) { - ensureOperationsIsMutable(); - operations_.remove(index); - onChanged(); - } else { - operationsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - public com.google.container.v1.Operation.Builder getOperationsBuilder(int index) { - return getOperationsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - public com.google.container.v1.OperationOrBuilder getOperationsOrBuilder(int index) { - if (operationsBuilder_ == null) { - return operations_.get(index); - } else { - return operationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - public java.util.List - getOperationsOrBuilderList() { - if (operationsBuilder_ != null) { - return operationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(operations_); - } - } - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - public com.google.container.v1.Operation.Builder addOperationsBuilder() { - return getOperationsFieldBuilder() - .addBuilder(com.google.container.v1.Operation.getDefaultInstance()); - } - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - public com.google.container.v1.Operation.Builder addOperationsBuilder(int index) { - return getOperationsFieldBuilder() - .addBuilder(index, com.google.container.v1.Operation.getDefaultInstance()); - } - /** - * - * - *
-     * A list of operations in the project in the specified zone.
-     * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - public java.util.List getOperationsBuilderList() { - return getOperationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.Operation, - com.google.container.v1.Operation.Builder, - com.google.container.v1.OperationOrBuilder> - getOperationsFieldBuilder() { - if (operationsBuilder_ == null) { - operationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.Operation, - com.google.container.v1.Operation.Builder, - com.google.container.v1.OperationOrBuilder>( - operations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - operations_ = null; - } - return operationsBuilder_; - } - - private com.google.protobuf.LazyStringList missingZones_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureMissingZonesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - missingZones_ = new com.google.protobuf.LazyStringArrayList(missingZones_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * - * @return A list containing the missingZones. - */ - public com.google.protobuf.ProtocolStringList getMissingZonesList() { - return missingZones_.getUnmodifiableView(); - } - /** - * - * - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * - * @return The count of missingZones. - */ - public int getMissingZonesCount() { - return missingZones_.size(); - } - /** - * - * - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * - * @param index The index of the element to return. - * @return The missingZones at the given index. - */ - public java.lang.String getMissingZones(int index) { - return missingZones_.get(index); - } - /** - * - * - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * - * @param index The index of the value to return. - * @return The bytes of the missingZones at the given index. - */ - public com.google.protobuf.ByteString getMissingZonesBytes(int index) { - return missingZones_.getByteString(index); - } - /** - * - * - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * - * @param index The index to set the value at. - * @param value The missingZones to set. - * @return This builder for chaining. - */ - public Builder setMissingZones(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMissingZonesIsMutable(); - missingZones_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * - * @param value The missingZones to add. - * @return This builder for chaining. - */ - public Builder addMissingZones(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMissingZonesIsMutable(); - missingZones_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * - * @param values The missingZones to add. - * @return This builder for chaining. - */ - public Builder addAllMissingZones(java.lang.Iterable values) { - ensureMissingZonesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, missingZones_); - onChanged(); - return this; - } - /** - * - * - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * - * @return This builder for chaining. - */ - public Builder clearMissingZones() { - missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * If any zones are listed here, the list of operations returned
-     * may be missing the operations from those zones.
-     * 
- * - * repeated string missing_zones = 2; - * - * @param value The bytes of the missingZones to add. - * @return This builder for chaining. - */ - public Builder addMissingZonesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureMissingZonesIsMutable(); - missingZones_.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.container.v1.ListOperationsResponse) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ListOperationsResponse) - private static final com.google.container.v1.ListOperationsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ListOperationsResponse(); - } - - public static com.google.container.v1.ListOperationsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListOperationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListOperationsResponse(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.container.v1.ListOperationsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponseOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponseOrBuilder.java deleted file mode 100644 index 7ca207bd..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponseOrBuilder.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ListOperationsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ListOperationsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - java.util.List getOperationsList(); - /** - * - * - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - com.google.container.v1.Operation getOperations(int index); - /** - * - * - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - int getOperationsCount(); - /** - * - * - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - java.util.List getOperationsOrBuilderList(); - /** - * - * - *
-   * A list of operations in the project in the specified zone.
-   * 
- * - * repeated .google.container.v1.Operation operations = 1; - */ - com.google.container.v1.OperationOrBuilder getOperationsOrBuilder(int index); - - /** - * - * - *
-   * If any zones are listed here, the list of operations returned
-   * may be missing the operations from those zones.
-   * 
- * - * repeated string missing_zones = 2; - * - * @return A list containing the missingZones. - */ - java.util.List getMissingZonesList(); - /** - * - * - *
-   * If any zones are listed here, the list of operations returned
-   * may be missing the operations from those zones.
-   * 
- * - * repeated string missing_zones = 2; - * - * @return The count of missingZones. - */ - int getMissingZonesCount(); - /** - * - * - *
-   * If any zones are listed here, the list of operations returned
-   * may be missing the operations from those zones.
-   * 
- * - * repeated string missing_zones = 2; - * - * @param index The index of the element to return. - * @return The missingZones at the given index. - */ - java.lang.String getMissingZones(int index); - /** - * - * - *
-   * If any zones are listed here, the list of operations returned
-   * may be missing the operations from those zones.
-   * 
- * - * repeated string missing_zones = 2; - * - * @param index The index of the value to return. - * @return The bytes of the missingZones at the given index. - */ - com.google.protobuf.ByteString getMissingZonesBytes(int index); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequest.java deleted file mode 100644 index 54e28e04..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequest.java +++ /dev/null @@ -1,1133 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * ListUsableSubnetworksRequest requests the list of usable subnetworks
- * available to a user for creating clusters.
- * 
- * - * Protobuf type {@code google.container.v1.ListUsableSubnetworksRequest} - */ -public final class ListUsableSubnetworksRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ListUsableSubnetworksRequest) - ListUsableSubnetworksRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListUsableSubnetworksRequest.newBuilder() to construct. - private ListUsableSubnetworksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListUsableSubnetworksRequest() { - parent_ = ""; - filter_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListUsableSubnetworksRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListUsableSubnetworksRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListUsableSubnetworksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListUsableSubnetworksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListUsableSubnetworksRequest.class, - com.google.container.v1.ListUsableSubnetworksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * The parent project where subnetworks are usable.
-   * Specified in the format `projects/*`.
-   * 
- * - * string parent = 1; - * - * @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; - } - } - /** - * - * - *
-   * The parent project where subnetworks are usable.
-   * Specified in the format `projects/*`.
-   * 
- * - * string parent = 1; - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; - /** - * - * - *
-   * Filtering currently only supports equality on the networkProjectId and must
-   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-   * is the project which owns the listed subnetworks. This defaults to the
-   * parent project ID.
-   * 
- * - * string filter = 2; - * - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - * - * - *
-   * Filtering currently only supports equality on the networkProjectId and must
-   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-   * is the project which owns the listed subnetworks. This defaults to the
-   * parent project ID.
-   * 
- * - * string filter = 2; - * - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; - /** - * - * - *
-   * The max number of results per page that should be returned. If the number
-   * of available results is larger than `page_size`, a `next_page_token` is
-   * returned which can be used to get the next page of results in subsequent
-   * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
-   * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * Specifies a page token to use. Set this to the nextPageToken returned by
-   * previous list requests to get the next page of results.
-   * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * Specifies a page token to use. Set this to the nextPageToken returned by
-   * previous list requests to get the next page of results.
-   * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!getFilterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); - } - if (pageSize_ != 0) { - output.writeInt32(3, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!getFilterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.ListUsableSubnetworksRequest)) { - return super.equals(obj); - } - com.google.container.v1.ListUsableSubnetworksRequest other = - (com.google.container.v1.ListUsableSubnetworksRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ListUsableSubnetworksRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListUsableSubnetworksRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListUsableSubnetworksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListUsableSubnetworksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListUsableSubnetworksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListUsableSubnetworksRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListUsableSubnetworksRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ListUsableSubnetworksRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ListUsableSubnetworksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ListUsableSubnetworksRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ListUsableSubnetworksRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ListUsableSubnetworksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ListUsableSubnetworksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * ListUsableSubnetworksRequest requests the list of usable subnetworks
-   * available to a user for creating clusters.
-   * 
- * - * Protobuf type {@code google.container.v1.ListUsableSubnetworksRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ListUsableSubnetworksRequest) - com.google.container.v1.ListUsableSubnetworksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListUsableSubnetworksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListUsableSubnetworksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListUsableSubnetworksRequest.class, - com.google.container.v1.ListUsableSubnetworksRequest.Builder.class); - } - - // Construct using com.google.container.v1.ListUsableSubnetworksRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - filter_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListUsableSubnetworksRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ListUsableSubnetworksRequest getDefaultInstanceForType() { - return com.google.container.v1.ListUsableSubnetworksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ListUsableSubnetworksRequest build() { - com.google.container.v1.ListUsableSubnetworksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ListUsableSubnetworksRequest buildPartial() { - com.google.container.v1.ListUsableSubnetworksRequest result = - new com.google.container.v1.ListUsableSubnetworksRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ListUsableSubnetworksRequest) { - return mergeFrom((com.google.container.v1.ListUsableSubnetworksRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ListUsableSubnetworksRequest other) { - if (other == com.google.container.v1.ListUsableSubnetworksRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.container.v1.ListUsableSubnetworksRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.container.v1.ListUsableSubnetworksRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * The parent project where subnetworks are usable.
-     * Specified in the format `projects/*`.
-     * 
- * - * string parent = 1; - * - * @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; - } - } - /** - * - * - *
-     * The parent project where subnetworks are usable.
-     * Specified in the format `projects/*`.
-     * 
- * - * string parent = 1; - * - * @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; - } - } - /** - * - * - *
-     * The parent project where subnetworks are usable.
-     * Specified in the format `projects/*`.
-     * 
- * - * string parent = 1; - * - * @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; - } - /** - * - * - *
-     * The parent project where subnetworks are usable.
-     * Specified in the format `projects/*`.
-     * 
- * - * string parent = 1; - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * The parent project where subnetworks are usable.
-     * Specified in the format `projects/*`.
-     * 
- * - * string parent = 1; - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - * - * - *
-     * Filtering currently only supports equality on the networkProjectId and must
-     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-     * is the project which owns the listed subnetworks. This defaults to the
-     * parent project ID.
-     * 
- * - * string filter = 2; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Filtering currently only supports equality on the networkProjectId and must
-     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-     * is the project which owns the listed subnetworks. This defaults to the
-     * parent project ID.
-     * 
- * - * string filter = 2; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Filtering currently only supports equality on the networkProjectId and must
-     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-     * is the project which owns the listed subnetworks. This defaults to the
-     * parent project ID.
-     * 
- * - * string filter = 2; - * - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Filtering currently only supports equality on the networkProjectId and must
-     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-     * is the project which owns the listed subnetworks. This defaults to the
-     * parent project ID.
-     * 
- * - * string filter = 2; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - * - * - *
-     * Filtering currently only supports equality on the networkProjectId and must
-     * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-     * is the project which owns the listed subnetworks. This defaults to the
-     * parent project ID.
-     * 
- * - * string filter = 2; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The max number of results per page that should be returned. If the number
-     * of available results is larger than `page_size`, a `next_page_token` is
-     * returned which can be used to get the next page of results in subsequent
-     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
-     * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The max number of results per page that should be returned. If the number
-     * of available results is larger than `page_size`, a `next_page_token` is
-     * returned which can be used to get the next page of results in subsequent
-     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
-     * 
- * - * int32 page_size = 3; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The max number of results per page that should be returned. If the number
-     * of available results is larger than `page_size`, a `next_page_token` is
-     * returned which can be used to get the next page of results in subsequent
-     * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
-     * 
- * - * int32 page_size = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * Specifies a page token to use. Set this to the nextPageToken returned by
-     * previous list requests to get the next page of results.
-     * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Specifies a page token to use. Set this to the nextPageToken returned by
-     * previous list requests to get the next page of results.
-     * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Specifies a page token to use. Set this to the nextPageToken returned by
-     * previous list requests to get the next page of results.
-     * 
- * - * string page_token = 4; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies a page token to use. Set this to the nextPageToken returned by
-     * previous list requests to get the next page of results.
-     * 
- * - * string page_token = 4; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies a page token to use. Set this to the nextPageToken returned by
-     * previous list requests to get the next page of results.
-     * 
- * - * string page_token = 4; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ListUsableSubnetworksRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ListUsableSubnetworksRequest) - private static final com.google.container.v1.ListUsableSubnetworksRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ListUsableSubnetworksRequest(); - } - - public static com.google.container.v1.ListUsableSubnetworksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableSubnetworksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListUsableSubnetworksRequest(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.container.v1.ListUsableSubnetworksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequestOrBuilder.java deleted file mode 100644 index 35ff092c..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequestOrBuilder.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ListUsableSubnetworksRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ListUsableSubnetworksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The parent project where subnetworks are usable.
-   * Specified in the format `projects/*`.
-   * 
- * - * string parent = 1; - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * The parent project where subnetworks are usable.
-   * Specified in the format `projects/*`.
-   * 
- * - * string parent = 1; - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Filtering currently only supports equality on the networkProjectId and must
-   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-   * is the project which owns the listed subnetworks. This defaults to the
-   * parent project ID.
-   * 
- * - * string filter = 2; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * Filtering currently only supports equality on the networkProjectId and must
-   * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId`
-   * is the project which owns the listed subnetworks. This defaults to the
-   * parent project ID.
-   * 
- * - * string filter = 2; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); - - /** - * - * - *
-   * The max number of results per page that should be returned. If the number
-   * of available results is larger than `page_size`, a `next_page_token` is
-   * returned which can be used to get the next page of results in subsequent
-   * requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
-   * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Specifies a page token to use. Set this to the nextPageToken returned by
-   * previous list requests to get the next page of results.
-   * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * Specifies a page token to use. Set this to the nextPageToken returned by
-   * previous list requests to get the next page of results.
-   * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponse.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponse.java deleted file mode 100644 index b75fc0f0..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponse.java +++ /dev/null @@ -1,1154 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * ListUsableSubnetworksResponse is the response of
- * ListUsableSubnetworksRequest.
- * 
- * - * Protobuf type {@code google.container.v1.ListUsableSubnetworksResponse} - */ -public final class ListUsableSubnetworksResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ListUsableSubnetworksResponse) - ListUsableSubnetworksResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListUsableSubnetworksResponse.newBuilder() to construct. - private ListUsableSubnetworksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListUsableSubnetworksResponse() { - subnetworks_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListUsableSubnetworksResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListUsableSubnetworksResponse( - 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)) { - subnetworks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - subnetworks_.add( - input.readMessage( - com.google.container.v1.UsableSubnetwork.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)) { - subnetworks_ = java.util.Collections.unmodifiableList(subnetworks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListUsableSubnetworksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListUsableSubnetworksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListUsableSubnetworksResponse.class, - com.google.container.v1.ListUsableSubnetworksResponse.Builder.class); - } - - public static final int SUBNETWORKS_FIELD_NUMBER = 1; - private java.util.List subnetworks_; - /** - * - * - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - @java.lang.Override - public java.util.List getSubnetworksList() { - return subnetworks_; - } - /** - * - * - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - @java.lang.Override - public java.util.List - getSubnetworksOrBuilderList() { - return subnetworks_; - } - /** - * - * - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - @java.lang.Override - public int getSubnetworksCount() { - return subnetworks_.size(); - } - /** - * - * - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - @java.lang.Override - public com.google.container.v1.UsableSubnetwork getSubnetworks(int index) { - return subnetworks_.get(index); - } - /** - * - * - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - @java.lang.Override - public com.google.container.v1.UsableSubnetworkOrBuilder getSubnetworksOrBuilder(int index) { - return subnetworks_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * This token allows you to get the next page of results for list requests.
-   * If the number of results is larger than `page_size`, use the
-   * `next_page_token` as a value for the query parameter `page_token` in the
-   * next request. The value will become empty when there are no more 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; - } - } - /** - * - * - *
-   * This token allows you to get the next page of results for list requests.
-   * If the number of results is larger than `page_size`, use the
-   * `next_page_token` as a value for the query parameter `page_token` in the
-   * next request. The value will become empty when there are no more 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 < subnetworks_.size(); i++) { - output.writeMessage(1, subnetworks_.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 < subnetworks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, subnetworks_.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.container.v1.ListUsableSubnetworksResponse)) { - return super.equals(obj); - } - com.google.container.v1.ListUsableSubnetworksResponse other = - (com.google.container.v1.ListUsableSubnetworksResponse) obj; - - if (!getSubnetworksList().equals(other.getSubnetworksList())) 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 (getSubnetworksCount() > 0) { - hash = (37 * hash) + SUBNETWORKS_FIELD_NUMBER; - hash = (53 * hash) + getSubnetworksList().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.container.v1.ListUsableSubnetworksResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListUsableSubnetworksResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListUsableSubnetworksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListUsableSubnetworksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListUsableSubnetworksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ListUsableSubnetworksResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ListUsableSubnetworksResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ListUsableSubnetworksResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ListUsableSubnetworksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ListUsableSubnetworksResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ListUsableSubnetworksResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ListUsableSubnetworksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.ListUsableSubnetworksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * ListUsableSubnetworksResponse is the response of
-   * ListUsableSubnetworksRequest.
-   * 
- * - * Protobuf type {@code google.container.v1.ListUsableSubnetworksResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ListUsableSubnetworksResponse) - com.google.container.v1.ListUsableSubnetworksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListUsableSubnetworksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListUsableSubnetworksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ListUsableSubnetworksResponse.class, - com.google.container.v1.ListUsableSubnetworksResponse.Builder.class); - } - - // Construct using com.google.container.v1.ListUsableSubnetworksResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSubnetworksFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (subnetworksBuilder_ == null) { - subnetworks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - subnetworksBuilder_.clear(); - } - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ListUsableSubnetworksResponse_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ListUsableSubnetworksResponse getDefaultInstanceForType() { - return com.google.container.v1.ListUsableSubnetworksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ListUsableSubnetworksResponse build() { - com.google.container.v1.ListUsableSubnetworksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ListUsableSubnetworksResponse buildPartial() { - com.google.container.v1.ListUsableSubnetworksResponse result = - new com.google.container.v1.ListUsableSubnetworksResponse(this); - int from_bitField0_ = bitField0_; - if (subnetworksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - subnetworks_ = java.util.Collections.unmodifiableList(subnetworks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.subnetworks_ = subnetworks_; - } else { - result.subnetworks_ = subnetworksBuilder_.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.container.v1.ListUsableSubnetworksResponse) { - return mergeFrom((com.google.container.v1.ListUsableSubnetworksResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ListUsableSubnetworksResponse other) { - if (other == com.google.container.v1.ListUsableSubnetworksResponse.getDefaultInstance()) - return this; - if (subnetworksBuilder_ == null) { - if (!other.subnetworks_.isEmpty()) { - if (subnetworks_.isEmpty()) { - subnetworks_ = other.subnetworks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSubnetworksIsMutable(); - subnetworks_.addAll(other.subnetworks_); - } - onChanged(); - } - } else { - if (!other.subnetworks_.isEmpty()) { - if (subnetworksBuilder_.isEmpty()) { - subnetworksBuilder_.dispose(); - subnetworksBuilder_ = null; - subnetworks_ = other.subnetworks_; - bitField0_ = (bitField0_ & ~0x00000001); - subnetworksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSubnetworksFieldBuilder() - : null; - } else { - subnetworksBuilder_.addAllMessages(other.subnetworks_); - } - } - } - 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.container.v1.ListUsableSubnetworksResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.container.v1.ListUsableSubnetworksResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List subnetworks_ = - java.util.Collections.emptyList(); - - private void ensureSubnetworksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - subnetworks_ = - new java.util.ArrayList(subnetworks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.UsableSubnetwork, - com.google.container.v1.UsableSubnetwork.Builder, - com.google.container.v1.UsableSubnetworkOrBuilder> - subnetworksBuilder_; - - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - public java.util.List getSubnetworksList() { - if (subnetworksBuilder_ == null) { - return java.util.Collections.unmodifiableList(subnetworks_); - } else { - return subnetworksBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - public int getSubnetworksCount() { - if (subnetworksBuilder_ == null) { - return subnetworks_.size(); - } else { - return subnetworksBuilder_.getCount(); - } - } - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - public com.google.container.v1.UsableSubnetwork getSubnetworks(int index) { - if (subnetworksBuilder_ == null) { - return subnetworks_.get(index); - } else { - return subnetworksBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - public Builder setSubnetworks(int index, com.google.container.v1.UsableSubnetwork value) { - if (subnetworksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubnetworksIsMutable(); - subnetworks_.set(index, value); - onChanged(); - } else { - subnetworksBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - public Builder setSubnetworks( - int index, com.google.container.v1.UsableSubnetwork.Builder builderForValue) { - if (subnetworksBuilder_ == null) { - ensureSubnetworksIsMutable(); - subnetworks_.set(index, builderForValue.build()); - onChanged(); - } else { - subnetworksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - public Builder addSubnetworks(com.google.container.v1.UsableSubnetwork value) { - if (subnetworksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubnetworksIsMutable(); - subnetworks_.add(value); - onChanged(); - } else { - subnetworksBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - public Builder addSubnetworks(int index, com.google.container.v1.UsableSubnetwork value) { - if (subnetworksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubnetworksIsMutable(); - subnetworks_.add(index, value); - onChanged(); - } else { - subnetworksBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - public Builder addSubnetworks( - com.google.container.v1.UsableSubnetwork.Builder builderForValue) { - if (subnetworksBuilder_ == null) { - ensureSubnetworksIsMutable(); - subnetworks_.add(builderForValue.build()); - onChanged(); - } else { - subnetworksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - public Builder addSubnetworks( - int index, com.google.container.v1.UsableSubnetwork.Builder builderForValue) { - if (subnetworksBuilder_ == null) { - ensureSubnetworksIsMutable(); - subnetworks_.add(index, builderForValue.build()); - onChanged(); - } else { - subnetworksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - public Builder addAllSubnetworks( - java.lang.Iterable values) { - if (subnetworksBuilder_ == null) { - ensureSubnetworksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subnetworks_); - onChanged(); - } else { - subnetworksBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - public Builder clearSubnetworks() { - if (subnetworksBuilder_ == null) { - subnetworks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - subnetworksBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - public Builder removeSubnetworks(int index) { - if (subnetworksBuilder_ == null) { - ensureSubnetworksIsMutable(); - subnetworks_.remove(index); - onChanged(); - } else { - subnetworksBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - public com.google.container.v1.UsableSubnetwork.Builder getSubnetworksBuilder(int index) { - return getSubnetworksFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - public com.google.container.v1.UsableSubnetworkOrBuilder getSubnetworksOrBuilder(int index) { - if (subnetworksBuilder_ == null) { - return subnetworks_.get(index); - } else { - return subnetworksBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - public java.util.List - getSubnetworksOrBuilderList() { - if (subnetworksBuilder_ != null) { - return subnetworksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(subnetworks_); - } - } - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - public com.google.container.v1.UsableSubnetwork.Builder addSubnetworksBuilder() { - return getSubnetworksFieldBuilder() - .addBuilder(com.google.container.v1.UsableSubnetwork.getDefaultInstance()); - } - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - public com.google.container.v1.UsableSubnetwork.Builder addSubnetworksBuilder(int index) { - return getSubnetworksFieldBuilder() - .addBuilder(index, com.google.container.v1.UsableSubnetwork.getDefaultInstance()); - } - /** - * - * - *
-     * A list of usable subnetworks in the specified network project.
-     * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - public java.util.List - getSubnetworksBuilderList() { - return getSubnetworksFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.UsableSubnetwork, - com.google.container.v1.UsableSubnetwork.Builder, - com.google.container.v1.UsableSubnetworkOrBuilder> - getSubnetworksFieldBuilder() { - if (subnetworksBuilder_ == null) { - subnetworksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.UsableSubnetwork, - com.google.container.v1.UsableSubnetwork.Builder, - com.google.container.v1.UsableSubnetworkOrBuilder>( - subnetworks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - subnetworks_ = null; - } - return subnetworksBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * This token allows you to get the next page of results for list requests.
-     * If the number of results is larger than `page_size`, use the
-     * `next_page_token` as a value for the query parameter `page_token` in the
-     * next request. The value will become empty when there are no more 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; - } - } - /** - * - * - *
-     * This token allows you to get the next page of results for list requests.
-     * If the number of results is larger than `page_size`, use the
-     * `next_page_token` as a value for the query parameter `page_token` in the
-     * next request. The value will become empty when there are no more 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; - } - } - /** - * - * - *
-     * This token allows you to get the next page of results for list requests.
-     * If the number of results is larger than `page_size`, use the
-     * `next_page_token` as a value for the query parameter `page_token` in the
-     * next request. The value will become empty when there are no more 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; - } - /** - * - * - *
-     * This token allows you to get the next page of results for list requests.
-     * If the number of results is larger than `page_size`, use the
-     * `next_page_token` as a value for the query parameter `page_token` in the
-     * next request. The value will become empty when there are no more pages.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * This token allows you to get the next page of results for list requests.
-     * If the number of results is larger than `page_size`, use the
-     * `next_page_token` as a value for the query parameter `page_token` in the
-     * next request. The value will become empty when there are no more 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.container.v1.ListUsableSubnetworksResponse) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ListUsableSubnetworksResponse) - private static final com.google.container.v1.ListUsableSubnetworksResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ListUsableSubnetworksResponse(); - } - - public static com.google.container.v1.ListUsableSubnetworksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableSubnetworksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListUsableSubnetworksResponse(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.container.v1.ListUsableSubnetworksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponseOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponseOrBuilder.java deleted file mode 100644 index 6eb2bb2b..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponseOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ListUsableSubnetworksResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ListUsableSubnetworksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - java.util.List getSubnetworksList(); - /** - * - * - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - com.google.container.v1.UsableSubnetwork getSubnetworks(int index); - /** - * - * - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - int getSubnetworksCount(); - /** - * - * - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - java.util.List - getSubnetworksOrBuilderList(); - /** - * - * - *
-   * A list of usable subnetworks in the specified network project.
-   * 
- * - * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - com.google.container.v1.UsableSubnetworkOrBuilder getSubnetworksOrBuilder(int index); - - /** - * - * - *
-   * This token allows you to get the next page of results for list requests.
-   * If the number of results is larger than `page_size`, use the
-   * `next_page_token` as a value for the query parameter `page_token` in the
-   * next request. The value will become empty when there are no more pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * This token allows you to get the next page of results for list requests.
-   * If the number of results is larger than `page_size`, use the
-   * `next_page_token` as a value for the query parameter `page_token` in the
-   * next request. The value will become empty when there are no more pages.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicy.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicy.java deleted file mode 100644 index 48a53299..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicy.java +++ /dev/null @@ -1,939 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * MaintenancePolicy defines the maintenance policy to be used for the cluster.
- * 
- * - * Protobuf type {@code google.container.v1.MaintenancePolicy} - */ -public final class MaintenancePolicy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.MaintenancePolicy) - MaintenancePolicyOrBuilder { - private static final long serialVersionUID = 0L; - // Use MaintenancePolicy.newBuilder() to construct. - private MaintenancePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MaintenancePolicy() { - resourceVersion_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MaintenancePolicy(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private MaintenancePolicy( - 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.container.v1.MaintenanceWindow.Builder subBuilder = null; - if (window_ != null) { - subBuilder = window_.toBuilder(); - } - window_ = - input.readMessage( - com.google.container.v1.MaintenanceWindow.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(window_); - window_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - resourceVersion_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenancePolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenancePolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MaintenancePolicy.class, - com.google.container.v1.MaintenancePolicy.Builder.class); - } - - public static final int WINDOW_FIELD_NUMBER = 1; - private com.google.container.v1.MaintenanceWindow window_; - /** - * - * - *
-   * Specifies the maintenance window in which maintenance may be performed.
-   * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - * - * @return Whether the window field is set. - */ - @java.lang.Override - public boolean hasWindow() { - return window_ != null; - } - /** - * - * - *
-   * Specifies the maintenance window in which maintenance may be performed.
-   * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - * - * @return The window. - */ - @java.lang.Override - public com.google.container.v1.MaintenanceWindow getWindow() { - return window_ == null - ? com.google.container.v1.MaintenanceWindow.getDefaultInstance() - : window_; - } - /** - * - * - *
-   * Specifies the maintenance window in which maintenance may be performed.
-   * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - */ - @java.lang.Override - public com.google.container.v1.MaintenanceWindowOrBuilder getWindowOrBuilder() { - return getWindow(); - } - - public static final int RESOURCE_VERSION_FIELD_NUMBER = 3; - private volatile java.lang.Object resourceVersion_; - /** - * - * - *
-   * A hash identifying the version of this policy, so that updates to fields of
-   * the policy won't accidentally undo intermediate changes (and so that users
-   * of the API unaware of some fields won't accidentally remove other fields).
-   * Make a `get()` request to the cluster to get the current
-   * resource version and include it with requests to set the policy.
-   * 
- * - * string resource_version = 3; - * - * @return The resourceVersion. - */ - @java.lang.Override - public java.lang.String getResourceVersion() { - java.lang.Object ref = resourceVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceVersion_ = s; - return s; - } - } - /** - * - * - *
-   * A hash identifying the version of this policy, so that updates to fields of
-   * the policy won't accidentally undo intermediate changes (and so that users
-   * of the API unaware of some fields won't accidentally remove other fields).
-   * Make a `get()` request to the cluster to get the current
-   * resource version and include it with requests to set the policy.
-   * 
- * - * string resource_version = 3; - * - * @return The bytes for resourceVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getResourceVersionBytes() { - java.lang.Object ref = resourceVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resourceVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (window_ != null) { - output.writeMessage(1, getWindow()); - } - if (!getResourceVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceVersion_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (window_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWindow()); - } - if (!getResourceVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceVersion_); - } - 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.container.v1.MaintenancePolicy)) { - return super.equals(obj); - } - com.google.container.v1.MaintenancePolicy other = - (com.google.container.v1.MaintenancePolicy) obj; - - if (hasWindow() != other.hasWindow()) return false; - if (hasWindow()) { - if (!getWindow().equals(other.getWindow())) return false; - } - if (!getResourceVersion().equals(other.getResourceVersion())) 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 (hasWindow()) { - hash = (37 * hash) + WINDOW_FIELD_NUMBER; - hash = (53 * hash) + getWindow().hashCode(); - } - hash = (37 * hash) + RESOURCE_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getResourceVersion().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.MaintenancePolicy parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MaintenancePolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MaintenancePolicy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MaintenancePolicy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MaintenancePolicy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MaintenancePolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MaintenancePolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.MaintenancePolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.MaintenancePolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.MaintenancePolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.MaintenancePolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.MaintenancePolicy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.MaintenancePolicy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * MaintenancePolicy defines the maintenance policy to be used for the cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.MaintenancePolicy} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.MaintenancePolicy) - com.google.container.v1.MaintenancePolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenancePolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenancePolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MaintenancePolicy.class, - com.google.container.v1.MaintenancePolicy.Builder.class); - } - - // Construct using com.google.container.v1.MaintenancePolicy.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 (windowBuilder_ == null) { - window_ = null; - } else { - window_ = null; - windowBuilder_ = null; - } - resourceVersion_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenancePolicy_descriptor; - } - - @java.lang.Override - public com.google.container.v1.MaintenancePolicy getDefaultInstanceForType() { - return com.google.container.v1.MaintenancePolicy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.MaintenancePolicy build() { - com.google.container.v1.MaintenancePolicy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.MaintenancePolicy buildPartial() { - com.google.container.v1.MaintenancePolicy result = - new com.google.container.v1.MaintenancePolicy(this); - if (windowBuilder_ == null) { - result.window_ = window_; - } else { - result.window_ = windowBuilder_.build(); - } - result.resourceVersion_ = resourceVersion_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.MaintenancePolicy) { - return mergeFrom((com.google.container.v1.MaintenancePolicy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.MaintenancePolicy other) { - if (other == com.google.container.v1.MaintenancePolicy.getDefaultInstance()) return this; - if (other.hasWindow()) { - mergeWindow(other.getWindow()); - } - if (!other.getResourceVersion().isEmpty()) { - resourceVersion_ = other.resourceVersion_; - 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.container.v1.MaintenancePolicy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.MaintenancePolicy) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.container.v1.MaintenanceWindow window_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaintenanceWindow, - com.google.container.v1.MaintenanceWindow.Builder, - com.google.container.v1.MaintenanceWindowOrBuilder> - windowBuilder_; - /** - * - * - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - * - * @return Whether the window field is set. - */ - public boolean hasWindow() { - return windowBuilder_ != null || window_ != null; - } - /** - * - * - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - * - * @return The window. - */ - public com.google.container.v1.MaintenanceWindow getWindow() { - if (windowBuilder_ == null) { - return window_ == null - ? com.google.container.v1.MaintenanceWindow.getDefaultInstance() - : window_; - } else { - return windowBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - */ - public Builder setWindow(com.google.container.v1.MaintenanceWindow value) { - if (windowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - window_ = value; - onChanged(); - } else { - windowBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - */ - public Builder setWindow(com.google.container.v1.MaintenanceWindow.Builder builderForValue) { - if (windowBuilder_ == null) { - window_ = builderForValue.build(); - onChanged(); - } else { - windowBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - */ - public Builder mergeWindow(com.google.container.v1.MaintenanceWindow value) { - if (windowBuilder_ == null) { - if (window_ != null) { - window_ = - com.google.container.v1.MaintenanceWindow.newBuilder(window_) - .mergeFrom(value) - .buildPartial(); - } else { - window_ = value; - } - onChanged(); - } else { - windowBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - */ - public Builder clearWindow() { - if (windowBuilder_ == null) { - window_ = null; - onChanged(); - } else { - window_ = null; - windowBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - */ - public com.google.container.v1.MaintenanceWindow.Builder getWindowBuilder() { - - onChanged(); - return getWindowFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - */ - public com.google.container.v1.MaintenanceWindowOrBuilder getWindowOrBuilder() { - if (windowBuilder_ != null) { - return windowBuilder_.getMessageOrBuilder(); - } else { - return window_ == null - ? com.google.container.v1.MaintenanceWindow.getDefaultInstance() - : window_; - } - } - /** - * - * - *
-     * Specifies the maintenance window in which maintenance may be performed.
-     * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaintenanceWindow, - com.google.container.v1.MaintenanceWindow.Builder, - com.google.container.v1.MaintenanceWindowOrBuilder> - getWindowFieldBuilder() { - if (windowBuilder_ == null) { - windowBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaintenanceWindow, - com.google.container.v1.MaintenanceWindow.Builder, - com.google.container.v1.MaintenanceWindowOrBuilder>( - getWindow(), getParentForChildren(), isClean()); - window_ = null; - } - return windowBuilder_; - } - - private java.lang.Object resourceVersion_ = ""; - /** - * - * - *
-     * A hash identifying the version of this policy, so that updates to fields of
-     * the policy won't accidentally undo intermediate changes (and so that users
-     * of the API unaware of some fields won't accidentally remove other fields).
-     * Make a `get()` request to the cluster to get the current
-     * resource version and include it with requests to set the policy.
-     * 
- * - * string resource_version = 3; - * - * @return The resourceVersion. - */ - public java.lang.String getResourceVersion() { - java.lang.Object ref = resourceVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A hash identifying the version of this policy, so that updates to fields of
-     * the policy won't accidentally undo intermediate changes (and so that users
-     * of the API unaware of some fields won't accidentally remove other fields).
-     * Make a `get()` request to the cluster to get the current
-     * resource version and include it with requests to set the policy.
-     * 
- * - * string resource_version = 3; - * - * @return The bytes for resourceVersion. - */ - public com.google.protobuf.ByteString getResourceVersionBytes() { - java.lang.Object ref = resourceVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resourceVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A hash identifying the version of this policy, so that updates to fields of
-     * the policy won't accidentally undo intermediate changes (and so that users
-     * of the API unaware of some fields won't accidentally remove other fields).
-     * Make a `get()` request to the cluster to get the current
-     * resource version and include it with requests to set the policy.
-     * 
- * - * string resource_version = 3; - * - * @param value The resourceVersion to set. - * @return This builder for chaining. - */ - public Builder setResourceVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceVersion_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A hash identifying the version of this policy, so that updates to fields of
-     * the policy won't accidentally undo intermediate changes (and so that users
-     * of the API unaware of some fields won't accidentally remove other fields).
-     * Make a `get()` request to the cluster to get the current
-     * resource version and include it with requests to set the policy.
-     * 
- * - * string resource_version = 3; - * - * @return This builder for chaining. - */ - public Builder clearResourceVersion() { - - resourceVersion_ = getDefaultInstance().getResourceVersion(); - onChanged(); - return this; - } - /** - * - * - *
-     * A hash identifying the version of this policy, so that updates to fields of
-     * the policy won't accidentally undo intermediate changes (and so that users
-     * of the API unaware of some fields won't accidentally remove other fields).
-     * Make a `get()` request to the cluster to get the current
-     * resource version and include it with requests to set the policy.
-     * 
- * - * string resource_version = 3; - * - * @param value The bytes for resourceVersion to set. - * @return This builder for chaining. - */ - public Builder setResourceVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - resourceVersion_ = 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.container.v1.MaintenancePolicy) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.MaintenancePolicy) - private static final com.google.container.v1.MaintenancePolicy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.MaintenancePolicy(); - } - - public static com.google.container.v1.MaintenancePolicy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MaintenancePolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MaintenancePolicy(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.container.v1.MaintenancePolicy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicyOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicyOrBuilder.java deleted file mode 100644 index b021ce80..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicyOrBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface MaintenancePolicyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.MaintenancePolicy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Specifies the maintenance window in which maintenance may be performed.
-   * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - * - * @return Whether the window field is set. - */ - boolean hasWindow(); - /** - * - * - *
-   * Specifies the maintenance window in which maintenance may be performed.
-   * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - * - * @return The window. - */ - com.google.container.v1.MaintenanceWindow getWindow(); - /** - * - * - *
-   * Specifies the maintenance window in which maintenance may be performed.
-   * 
- * - * .google.container.v1.MaintenanceWindow window = 1; - */ - com.google.container.v1.MaintenanceWindowOrBuilder getWindowOrBuilder(); - - /** - * - * - *
-   * A hash identifying the version of this policy, so that updates to fields of
-   * the policy won't accidentally undo intermediate changes (and so that users
-   * of the API unaware of some fields won't accidentally remove other fields).
-   * Make a `get()` request to the cluster to get the current
-   * resource version and include it with requests to set the policy.
-   * 
- * - * string resource_version = 3; - * - * @return The resourceVersion. - */ - java.lang.String getResourceVersion(); - /** - * - * - *
-   * A hash identifying the version of this policy, so that updates to fields of
-   * the policy won't accidentally undo intermediate changes (and so that users
-   * of the API unaware of some fields won't accidentally remove other fields).
-   * Make a `get()` request to the cluster to get the current
-   * resource version and include it with requests to set the policy.
-   * 
- * - * string resource_version = 3; - * - * @return The bytes for resourceVersion. - */ - com.google.protobuf.ByteString getResourceVersionBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindow.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindow.java deleted file mode 100644 index 406cb1c2..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindow.java +++ /dev/null @@ -1,1535 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * MaintenanceWindow defines the maintenance window to be used for the cluster.
- * 
- * - * Protobuf type {@code google.container.v1.MaintenanceWindow} - */ -public final class MaintenanceWindow extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.MaintenanceWindow) - MaintenanceWindowOrBuilder { - private static final long serialVersionUID = 0L; - // Use MaintenanceWindow.newBuilder() to construct. - private MaintenanceWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MaintenanceWindow() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MaintenanceWindow(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private MaintenanceWindow( - 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.container.v1.DailyMaintenanceWindow.Builder subBuilder = null; - if (policyCase_ == 2) { - subBuilder = ((com.google.container.v1.DailyMaintenanceWindow) policy_).toBuilder(); - } - policy_ = - input.readMessage( - com.google.container.v1.DailyMaintenanceWindow.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.container.v1.DailyMaintenanceWindow) policy_); - policy_ = subBuilder.buildPartial(); - } - policyCase_ = 2; - break; - } - case 26: - { - com.google.container.v1.RecurringTimeWindow.Builder subBuilder = null; - if (policyCase_ == 3) { - subBuilder = ((com.google.container.v1.RecurringTimeWindow) policy_).toBuilder(); - } - policy_ = - input.readMessage( - com.google.container.v1.RecurringTimeWindow.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.container.v1.RecurringTimeWindow) policy_); - policy_ = subBuilder.buildPartial(); - } - policyCase_ = 3; - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - maintenanceExclusions_ = - com.google.protobuf.MapField.newMapField( - MaintenanceExclusionsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - maintenanceExclusions__ = - input.readMessage( - MaintenanceExclusionsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - maintenanceExclusions_ - .getMutableMap() - .put(maintenanceExclusions__.getKey(), maintenanceExclusions__.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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenanceWindow_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetMaintenanceExclusions(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenanceWindow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MaintenanceWindow.class, - com.google.container.v1.MaintenanceWindow.Builder.class); - } - - private int policyCase_ = 0; - private java.lang.Object policy_; - - public enum PolicyCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - DAILY_MAINTENANCE_WINDOW(2), - RECURRING_WINDOW(3), - POLICY_NOT_SET(0); - private final int value; - - private PolicyCase(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 PolicyCase valueOf(int value) { - return forNumber(value); - } - - public static PolicyCase forNumber(int value) { - switch (value) { - case 2: - return DAILY_MAINTENANCE_WINDOW; - case 3: - return RECURRING_WINDOW; - case 0: - return POLICY_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public PolicyCase getPolicyCase() { - return PolicyCase.forNumber(policyCase_); - } - - public static final int DAILY_MAINTENANCE_WINDOW_FIELD_NUMBER = 2; - /** - * - * - *
-   * DailyMaintenanceWindow specifies a daily maintenance operation window.
-   * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - * - * @return Whether the dailyMaintenanceWindow field is set. - */ - @java.lang.Override - public boolean hasDailyMaintenanceWindow() { - return policyCase_ == 2; - } - /** - * - * - *
-   * DailyMaintenanceWindow specifies a daily maintenance operation window.
-   * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - * - * @return The dailyMaintenanceWindow. - */ - @java.lang.Override - public com.google.container.v1.DailyMaintenanceWindow getDailyMaintenanceWindow() { - if (policyCase_ == 2) { - return (com.google.container.v1.DailyMaintenanceWindow) policy_; - } - return com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance(); - } - /** - * - * - *
-   * DailyMaintenanceWindow specifies a daily maintenance operation window.
-   * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - */ - @java.lang.Override - public com.google.container.v1.DailyMaintenanceWindowOrBuilder - getDailyMaintenanceWindowOrBuilder() { - if (policyCase_ == 2) { - return (com.google.container.v1.DailyMaintenanceWindow) policy_; - } - return com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance(); - } - - public static final int RECURRING_WINDOW_FIELD_NUMBER = 3; - /** - * - * - *
-   * RecurringWindow specifies some number of recurring time periods for
-   * maintenance to occur. The time windows may be overlapping. If no
-   * maintenance windows are set, maintenance can occur at any time.
-   * 
- * - * .google.container.v1.RecurringTimeWindow recurring_window = 3; - * - * @return Whether the recurringWindow field is set. - */ - @java.lang.Override - public boolean hasRecurringWindow() { - return policyCase_ == 3; - } - /** - * - * - *
-   * RecurringWindow specifies some number of recurring time periods for
-   * maintenance to occur. The time windows may be overlapping. If no
-   * maintenance windows are set, maintenance can occur at any time.
-   * 
- * - * .google.container.v1.RecurringTimeWindow recurring_window = 3; - * - * @return The recurringWindow. - */ - @java.lang.Override - public com.google.container.v1.RecurringTimeWindow getRecurringWindow() { - if (policyCase_ == 3) { - return (com.google.container.v1.RecurringTimeWindow) policy_; - } - return com.google.container.v1.RecurringTimeWindow.getDefaultInstance(); - } - /** - * - * - *
-   * RecurringWindow specifies some number of recurring time periods for
-   * maintenance to occur. The time windows may be overlapping. If no
-   * maintenance windows are set, maintenance can occur at any time.
-   * 
- * - * .google.container.v1.RecurringTimeWindow recurring_window = 3; - */ - @java.lang.Override - public com.google.container.v1.RecurringTimeWindowOrBuilder getRecurringWindowOrBuilder() { - if (policyCase_ == 3) { - return (com.google.container.v1.RecurringTimeWindow) policy_; - } - return com.google.container.v1.RecurringTimeWindow.getDefaultInstance(); - } - - public static final int MAINTENANCE_EXCLUSIONS_FIELD_NUMBER = 4; - - private static final class MaintenanceExclusionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenanceWindow_MaintenanceExclusionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.container.v1.TimeWindow.getDefaultInstance()); - } - - private com.google.protobuf.MapField - maintenanceExclusions_; - - private com.google.protobuf.MapField - internalGetMaintenanceExclusions() { - if (maintenanceExclusions_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MaintenanceExclusionsDefaultEntryHolder.defaultEntry); - } - return maintenanceExclusions_; - } - - public int getMaintenanceExclusionsCount() { - return internalGetMaintenanceExclusions().getMap().size(); - } - /** - * - * - *
-   * Exceptions to maintenance window. Non-emergency maintenance should not
-   * occur in these windows.
-   * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - @java.lang.Override - public boolean containsMaintenanceExclusions(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetMaintenanceExclusions().getMap().containsKey(key); - } - /** Use {@link #getMaintenanceExclusionsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getMaintenanceExclusions() { - return getMaintenanceExclusionsMap(); - } - /** - * - * - *
-   * Exceptions to maintenance window. Non-emergency maintenance should not
-   * occur in these windows.
-   * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - @java.lang.Override - public java.util.Map - getMaintenanceExclusionsMap() { - return internalGetMaintenanceExclusions().getMap(); - } - /** - * - * - *
-   * Exceptions to maintenance window. Non-emergency maintenance should not
-   * occur in these windows.
-   * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - @java.lang.Override - public com.google.container.v1.TimeWindow getMaintenanceExclusionsOrDefault( - java.lang.String key, com.google.container.v1.TimeWindow defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = - internalGetMaintenanceExclusions().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Exceptions to maintenance window. Non-emergency maintenance should not
-   * occur in these windows.
-   * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - @java.lang.Override - public com.google.container.v1.TimeWindow getMaintenanceExclusionsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = - internalGetMaintenanceExclusions().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 (policyCase_ == 2) { - output.writeMessage(2, (com.google.container.v1.DailyMaintenanceWindow) policy_); - } - if (policyCase_ == 3) { - output.writeMessage(3, (com.google.container.v1.RecurringTimeWindow) policy_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, - internalGetMaintenanceExclusions(), - MaintenanceExclusionsDefaultEntryHolder.defaultEntry, - 4); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (policyCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.container.v1.DailyMaintenanceWindow) policy_); - } - if (policyCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.container.v1.RecurringTimeWindow) policy_); - } - for (java.util.Map.Entry entry : - internalGetMaintenanceExclusions().getMap().entrySet()) { - com.google.protobuf.MapEntry - maintenanceExclusions__ = - MaintenanceExclusionsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, maintenanceExclusions__); - } - 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.container.v1.MaintenanceWindow)) { - return super.equals(obj); - } - com.google.container.v1.MaintenanceWindow other = - (com.google.container.v1.MaintenanceWindow) obj; - - if (!internalGetMaintenanceExclusions().equals(other.internalGetMaintenanceExclusions())) - return false; - if (!getPolicyCase().equals(other.getPolicyCase())) return false; - switch (policyCase_) { - case 2: - if (!getDailyMaintenanceWindow().equals(other.getDailyMaintenanceWindow())) return false; - break; - case 3: - if (!getRecurringWindow().equals(other.getRecurringWindow())) 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 (!internalGetMaintenanceExclusions().getMap().isEmpty()) { - hash = (37 * hash) + MAINTENANCE_EXCLUSIONS_FIELD_NUMBER; - hash = (53 * hash) + internalGetMaintenanceExclusions().hashCode(); - } - switch (policyCase_) { - case 2: - hash = (37 * hash) + DAILY_MAINTENANCE_WINDOW_FIELD_NUMBER; - hash = (53 * hash) + getDailyMaintenanceWindow().hashCode(); - break; - case 3: - hash = (37 * hash) + RECURRING_WINDOW_FIELD_NUMBER; - hash = (53 * hash) + getRecurringWindow().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.MaintenanceWindow parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MaintenanceWindow parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MaintenanceWindow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MaintenanceWindow parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MaintenanceWindow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MaintenanceWindow parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MaintenanceWindow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.MaintenanceWindow parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.MaintenanceWindow parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.MaintenanceWindow parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.MaintenanceWindow parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.MaintenanceWindow parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.MaintenanceWindow prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * MaintenanceWindow defines the maintenance window to be used for the cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.MaintenanceWindow} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.MaintenanceWindow) - com.google.container.v1.MaintenanceWindowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenanceWindow_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetMaintenanceExclusions(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - return internalGetMutableMaintenanceExclusions(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenanceWindow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MaintenanceWindow.class, - com.google.container.v1.MaintenanceWindow.Builder.class); - } - - // Construct using com.google.container.v1.MaintenanceWindow.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(); - internalGetMutableMaintenanceExclusions().clear(); - policyCase_ = 0; - policy_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaintenanceWindow_descriptor; - } - - @java.lang.Override - public com.google.container.v1.MaintenanceWindow getDefaultInstanceForType() { - return com.google.container.v1.MaintenanceWindow.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.MaintenanceWindow build() { - com.google.container.v1.MaintenanceWindow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.MaintenanceWindow buildPartial() { - com.google.container.v1.MaintenanceWindow result = - new com.google.container.v1.MaintenanceWindow(this); - int from_bitField0_ = bitField0_; - if (policyCase_ == 2) { - if (dailyMaintenanceWindowBuilder_ == null) { - result.policy_ = policy_; - } else { - result.policy_ = dailyMaintenanceWindowBuilder_.build(); - } - } - if (policyCase_ == 3) { - if (recurringWindowBuilder_ == null) { - result.policy_ = policy_; - } else { - result.policy_ = recurringWindowBuilder_.build(); - } - } - result.maintenanceExclusions_ = internalGetMaintenanceExclusions(); - result.maintenanceExclusions_.makeImmutable(); - result.policyCase_ = policyCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.MaintenanceWindow) { - return mergeFrom((com.google.container.v1.MaintenanceWindow) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.MaintenanceWindow other) { - if (other == com.google.container.v1.MaintenanceWindow.getDefaultInstance()) return this; - internalGetMutableMaintenanceExclusions().mergeFrom(other.internalGetMaintenanceExclusions()); - switch (other.getPolicyCase()) { - case DAILY_MAINTENANCE_WINDOW: - { - mergeDailyMaintenanceWindow(other.getDailyMaintenanceWindow()); - break; - } - case RECURRING_WINDOW: - { - mergeRecurringWindow(other.getRecurringWindow()); - break; - } - case POLICY_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.container.v1.MaintenanceWindow parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.MaintenanceWindow) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int policyCase_ = 0; - private java.lang.Object policy_; - - public PolicyCase getPolicyCase() { - return PolicyCase.forNumber(policyCase_); - } - - public Builder clearPolicy() { - policyCase_ = 0; - policy_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DailyMaintenanceWindow, - com.google.container.v1.DailyMaintenanceWindow.Builder, - com.google.container.v1.DailyMaintenanceWindowOrBuilder> - dailyMaintenanceWindowBuilder_; - /** - * - * - *
-     * DailyMaintenanceWindow specifies a daily maintenance operation window.
-     * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - * - * @return Whether the dailyMaintenanceWindow field is set. - */ - @java.lang.Override - public boolean hasDailyMaintenanceWindow() { - return policyCase_ == 2; - } - /** - * - * - *
-     * DailyMaintenanceWindow specifies a daily maintenance operation window.
-     * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - * - * @return The dailyMaintenanceWindow. - */ - @java.lang.Override - public com.google.container.v1.DailyMaintenanceWindow getDailyMaintenanceWindow() { - if (dailyMaintenanceWindowBuilder_ == null) { - if (policyCase_ == 2) { - return (com.google.container.v1.DailyMaintenanceWindow) policy_; - } - return com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance(); - } else { - if (policyCase_ == 2) { - return dailyMaintenanceWindowBuilder_.getMessage(); - } - return com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance(); - } - } - /** - * - * - *
-     * DailyMaintenanceWindow specifies a daily maintenance operation window.
-     * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - */ - public Builder setDailyMaintenanceWindow(com.google.container.v1.DailyMaintenanceWindow value) { - if (dailyMaintenanceWindowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - policy_ = value; - onChanged(); - } else { - dailyMaintenanceWindowBuilder_.setMessage(value); - } - policyCase_ = 2; - return this; - } - /** - * - * - *
-     * DailyMaintenanceWindow specifies a daily maintenance operation window.
-     * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - */ - public Builder setDailyMaintenanceWindow( - com.google.container.v1.DailyMaintenanceWindow.Builder builderForValue) { - if (dailyMaintenanceWindowBuilder_ == null) { - policy_ = builderForValue.build(); - onChanged(); - } else { - dailyMaintenanceWindowBuilder_.setMessage(builderForValue.build()); - } - policyCase_ = 2; - return this; - } - /** - * - * - *
-     * DailyMaintenanceWindow specifies a daily maintenance operation window.
-     * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - */ - public Builder mergeDailyMaintenanceWindow( - com.google.container.v1.DailyMaintenanceWindow value) { - if (dailyMaintenanceWindowBuilder_ == null) { - if (policyCase_ == 2 - && policy_ != com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance()) { - policy_ = - com.google.container.v1.DailyMaintenanceWindow.newBuilder( - (com.google.container.v1.DailyMaintenanceWindow) policy_) - .mergeFrom(value) - .buildPartial(); - } else { - policy_ = value; - } - onChanged(); - } else { - if (policyCase_ == 2) { - dailyMaintenanceWindowBuilder_.mergeFrom(value); - } - dailyMaintenanceWindowBuilder_.setMessage(value); - } - policyCase_ = 2; - return this; - } - /** - * - * - *
-     * DailyMaintenanceWindow specifies a daily maintenance operation window.
-     * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - */ - public Builder clearDailyMaintenanceWindow() { - if (dailyMaintenanceWindowBuilder_ == null) { - if (policyCase_ == 2) { - policyCase_ = 0; - policy_ = null; - onChanged(); - } - } else { - if (policyCase_ == 2) { - policyCase_ = 0; - policy_ = null; - } - dailyMaintenanceWindowBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * DailyMaintenanceWindow specifies a daily maintenance operation window.
-     * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - */ - public com.google.container.v1.DailyMaintenanceWindow.Builder - getDailyMaintenanceWindowBuilder() { - return getDailyMaintenanceWindowFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * DailyMaintenanceWindow specifies a daily maintenance operation window.
-     * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - */ - @java.lang.Override - public com.google.container.v1.DailyMaintenanceWindowOrBuilder - getDailyMaintenanceWindowOrBuilder() { - if ((policyCase_ == 2) && (dailyMaintenanceWindowBuilder_ != null)) { - return dailyMaintenanceWindowBuilder_.getMessageOrBuilder(); - } else { - if (policyCase_ == 2) { - return (com.google.container.v1.DailyMaintenanceWindow) policy_; - } - return com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance(); - } - } - /** - * - * - *
-     * DailyMaintenanceWindow specifies a daily maintenance operation window.
-     * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DailyMaintenanceWindow, - com.google.container.v1.DailyMaintenanceWindow.Builder, - com.google.container.v1.DailyMaintenanceWindowOrBuilder> - getDailyMaintenanceWindowFieldBuilder() { - if (dailyMaintenanceWindowBuilder_ == null) { - if (!(policyCase_ == 2)) { - policy_ = com.google.container.v1.DailyMaintenanceWindow.getDefaultInstance(); - } - dailyMaintenanceWindowBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DailyMaintenanceWindow, - com.google.container.v1.DailyMaintenanceWindow.Builder, - com.google.container.v1.DailyMaintenanceWindowOrBuilder>( - (com.google.container.v1.DailyMaintenanceWindow) policy_, - getParentForChildren(), - isClean()); - policy_ = null; - } - policyCase_ = 2; - onChanged(); - ; - return dailyMaintenanceWindowBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.RecurringTimeWindow, - com.google.container.v1.RecurringTimeWindow.Builder, - com.google.container.v1.RecurringTimeWindowOrBuilder> - recurringWindowBuilder_; - /** - * - * - *
-     * RecurringWindow specifies some number of recurring time periods for
-     * maintenance to occur. The time windows may be overlapping. If no
-     * maintenance windows are set, maintenance can occur at any time.
-     * 
- * - * .google.container.v1.RecurringTimeWindow recurring_window = 3; - * - * @return Whether the recurringWindow field is set. - */ - @java.lang.Override - public boolean hasRecurringWindow() { - return policyCase_ == 3; - } - /** - * - * - *
-     * RecurringWindow specifies some number of recurring time periods for
-     * maintenance to occur. The time windows may be overlapping. If no
-     * maintenance windows are set, maintenance can occur at any time.
-     * 
- * - * .google.container.v1.RecurringTimeWindow recurring_window = 3; - * - * @return The recurringWindow. - */ - @java.lang.Override - public com.google.container.v1.RecurringTimeWindow getRecurringWindow() { - if (recurringWindowBuilder_ == null) { - if (policyCase_ == 3) { - return (com.google.container.v1.RecurringTimeWindow) policy_; - } - return com.google.container.v1.RecurringTimeWindow.getDefaultInstance(); - } else { - if (policyCase_ == 3) { - return recurringWindowBuilder_.getMessage(); - } - return com.google.container.v1.RecurringTimeWindow.getDefaultInstance(); - } - } - /** - * - * - *
-     * RecurringWindow specifies some number of recurring time periods for
-     * maintenance to occur. The time windows may be overlapping. If no
-     * maintenance windows are set, maintenance can occur at any time.
-     * 
- * - * .google.container.v1.RecurringTimeWindow recurring_window = 3; - */ - public Builder setRecurringWindow(com.google.container.v1.RecurringTimeWindow value) { - if (recurringWindowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - policy_ = value; - onChanged(); - } else { - recurringWindowBuilder_.setMessage(value); - } - policyCase_ = 3; - return this; - } - /** - * - * - *
-     * RecurringWindow specifies some number of recurring time periods for
-     * maintenance to occur. The time windows may be overlapping. If no
-     * maintenance windows are set, maintenance can occur at any time.
-     * 
- * - * .google.container.v1.RecurringTimeWindow recurring_window = 3; - */ - public Builder setRecurringWindow( - com.google.container.v1.RecurringTimeWindow.Builder builderForValue) { - if (recurringWindowBuilder_ == null) { - policy_ = builderForValue.build(); - onChanged(); - } else { - recurringWindowBuilder_.setMessage(builderForValue.build()); - } - policyCase_ = 3; - return this; - } - /** - * - * - *
-     * RecurringWindow specifies some number of recurring time periods for
-     * maintenance to occur. The time windows may be overlapping. If no
-     * maintenance windows are set, maintenance can occur at any time.
-     * 
- * - * .google.container.v1.RecurringTimeWindow recurring_window = 3; - */ - public Builder mergeRecurringWindow(com.google.container.v1.RecurringTimeWindow value) { - if (recurringWindowBuilder_ == null) { - if (policyCase_ == 3 - && policy_ != com.google.container.v1.RecurringTimeWindow.getDefaultInstance()) { - policy_ = - com.google.container.v1.RecurringTimeWindow.newBuilder( - (com.google.container.v1.RecurringTimeWindow) policy_) - .mergeFrom(value) - .buildPartial(); - } else { - policy_ = value; - } - onChanged(); - } else { - if (policyCase_ == 3) { - recurringWindowBuilder_.mergeFrom(value); - } - recurringWindowBuilder_.setMessage(value); - } - policyCase_ = 3; - return this; - } - /** - * - * - *
-     * RecurringWindow specifies some number of recurring time periods for
-     * maintenance to occur. The time windows may be overlapping. If no
-     * maintenance windows are set, maintenance can occur at any time.
-     * 
- * - * .google.container.v1.RecurringTimeWindow recurring_window = 3; - */ - public Builder clearRecurringWindow() { - if (recurringWindowBuilder_ == null) { - if (policyCase_ == 3) { - policyCase_ = 0; - policy_ = null; - onChanged(); - } - } else { - if (policyCase_ == 3) { - policyCase_ = 0; - policy_ = null; - } - recurringWindowBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * RecurringWindow specifies some number of recurring time periods for
-     * maintenance to occur. The time windows may be overlapping. If no
-     * maintenance windows are set, maintenance can occur at any time.
-     * 
- * - * .google.container.v1.RecurringTimeWindow recurring_window = 3; - */ - public com.google.container.v1.RecurringTimeWindow.Builder getRecurringWindowBuilder() { - return getRecurringWindowFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * RecurringWindow specifies some number of recurring time periods for
-     * maintenance to occur. The time windows may be overlapping. If no
-     * maintenance windows are set, maintenance can occur at any time.
-     * 
- * - * .google.container.v1.RecurringTimeWindow recurring_window = 3; - */ - @java.lang.Override - public com.google.container.v1.RecurringTimeWindowOrBuilder getRecurringWindowOrBuilder() { - if ((policyCase_ == 3) && (recurringWindowBuilder_ != null)) { - return recurringWindowBuilder_.getMessageOrBuilder(); - } else { - if (policyCase_ == 3) { - return (com.google.container.v1.RecurringTimeWindow) policy_; - } - return com.google.container.v1.RecurringTimeWindow.getDefaultInstance(); - } - } - /** - * - * - *
-     * RecurringWindow specifies some number of recurring time periods for
-     * maintenance to occur. The time windows may be overlapping. If no
-     * maintenance windows are set, maintenance can occur at any time.
-     * 
- * - * .google.container.v1.RecurringTimeWindow recurring_window = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.RecurringTimeWindow, - com.google.container.v1.RecurringTimeWindow.Builder, - com.google.container.v1.RecurringTimeWindowOrBuilder> - getRecurringWindowFieldBuilder() { - if (recurringWindowBuilder_ == null) { - if (!(policyCase_ == 3)) { - policy_ = com.google.container.v1.RecurringTimeWindow.getDefaultInstance(); - } - recurringWindowBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.RecurringTimeWindow, - com.google.container.v1.RecurringTimeWindow.Builder, - com.google.container.v1.RecurringTimeWindowOrBuilder>( - (com.google.container.v1.RecurringTimeWindow) policy_, - getParentForChildren(), - isClean()); - policy_ = null; - } - policyCase_ = 3; - onChanged(); - ; - return recurringWindowBuilder_; - } - - private com.google.protobuf.MapField - maintenanceExclusions_; - - private com.google.protobuf.MapField - internalGetMaintenanceExclusions() { - if (maintenanceExclusions_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MaintenanceExclusionsDefaultEntryHolder.defaultEntry); - } - return maintenanceExclusions_; - } - - private com.google.protobuf.MapField - internalGetMutableMaintenanceExclusions() { - onChanged(); - ; - if (maintenanceExclusions_ == null) { - maintenanceExclusions_ = - com.google.protobuf.MapField.newMapField( - MaintenanceExclusionsDefaultEntryHolder.defaultEntry); - } - if (!maintenanceExclusions_.isMutable()) { - maintenanceExclusions_ = maintenanceExclusions_.copy(); - } - return maintenanceExclusions_; - } - - public int getMaintenanceExclusionsCount() { - return internalGetMaintenanceExclusions().getMap().size(); - } - /** - * - * - *
-     * Exceptions to maintenance window. Non-emergency maintenance should not
-     * occur in these windows.
-     * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - @java.lang.Override - public boolean containsMaintenanceExclusions(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetMaintenanceExclusions().getMap().containsKey(key); - } - /** Use {@link #getMaintenanceExclusionsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getMaintenanceExclusions() { - return getMaintenanceExclusionsMap(); - } - /** - * - * - *
-     * Exceptions to maintenance window. Non-emergency maintenance should not
-     * occur in these windows.
-     * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - @java.lang.Override - public java.util.Map - getMaintenanceExclusionsMap() { - return internalGetMaintenanceExclusions().getMap(); - } - /** - * - * - *
-     * Exceptions to maintenance window. Non-emergency maintenance should not
-     * occur in these windows.
-     * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - @java.lang.Override - public com.google.container.v1.TimeWindow getMaintenanceExclusionsOrDefault( - java.lang.String key, com.google.container.v1.TimeWindow defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = - internalGetMaintenanceExclusions().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Exceptions to maintenance window. Non-emergency maintenance should not
-     * occur in these windows.
-     * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - @java.lang.Override - public com.google.container.v1.TimeWindow getMaintenanceExclusionsOrThrow( - java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = - internalGetMaintenanceExclusions().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearMaintenanceExclusions() { - internalGetMutableMaintenanceExclusions().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Exceptions to maintenance window. Non-emergency maintenance should not
-     * occur in these windows.
-     * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - public Builder removeMaintenanceExclusions(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableMaintenanceExclusions().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableMaintenanceExclusions() { - return internalGetMutableMaintenanceExclusions().getMutableMap(); - } - /** - * - * - *
-     * Exceptions to maintenance window. Non-emergency maintenance should not
-     * occur in these windows.
-     * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - public Builder putMaintenanceExclusions( - java.lang.String key, com.google.container.v1.TimeWindow value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableMaintenanceExclusions().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Exceptions to maintenance window. Non-emergency maintenance should not
-     * occur in these windows.
-     * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - public Builder putAllMaintenanceExclusions( - java.util.Map values) { - internalGetMutableMaintenanceExclusions().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.container.v1.MaintenanceWindow) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.MaintenanceWindow) - private static final com.google.container.v1.MaintenanceWindow DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.MaintenanceWindow(); - } - - public static com.google.container.v1.MaintenanceWindow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MaintenanceWindow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MaintenanceWindow(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.container.v1.MaintenanceWindow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindowOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindowOrBuilder.java deleted file mode 100644 index e372c6c0..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindowOrBuilder.java +++ /dev/null @@ -1,163 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface MaintenanceWindowOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.MaintenanceWindow) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * DailyMaintenanceWindow specifies a daily maintenance operation window.
-   * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - * - * @return Whether the dailyMaintenanceWindow field is set. - */ - boolean hasDailyMaintenanceWindow(); - /** - * - * - *
-   * DailyMaintenanceWindow specifies a daily maintenance operation window.
-   * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - * - * @return The dailyMaintenanceWindow. - */ - com.google.container.v1.DailyMaintenanceWindow getDailyMaintenanceWindow(); - /** - * - * - *
-   * DailyMaintenanceWindow specifies a daily maintenance operation window.
-   * 
- * - * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - */ - com.google.container.v1.DailyMaintenanceWindowOrBuilder getDailyMaintenanceWindowOrBuilder(); - - /** - * - * - *
-   * RecurringWindow specifies some number of recurring time periods for
-   * maintenance to occur. The time windows may be overlapping. If no
-   * maintenance windows are set, maintenance can occur at any time.
-   * 
- * - * .google.container.v1.RecurringTimeWindow recurring_window = 3; - * - * @return Whether the recurringWindow field is set. - */ - boolean hasRecurringWindow(); - /** - * - * - *
-   * RecurringWindow specifies some number of recurring time periods for
-   * maintenance to occur. The time windows may be overlapping. If no
-   * maintenance windows are set, maintenance can occur at any time.
-   * 
- * - * .google.container.v1.RecurringTimeWindow recurring_window = 3; - * - * @return The recurringWindow. - */ - com.google.container.v1.RecurringTimeWindow getRecurringWindow(); - /** - * - * - *
-   * RecurringWindow specifies some number of recurring time periods for
-   * maintenance to occur. The time windows may be overlapping. If no
-   * maintenance windows are set, maintenance can occur at any time.
-   * 
- * - * .google.container.v1.RecurringTimeWindow recurring_window = 3; - */ - com.google.container.v1.RecurringTimeWindowOrBuilder getRecurringWindowOrBuilder(); - - /** - * - * - *
-   * Exceptions to maintenance window. Non-emergency maintenance should not
-   * occur in these windows.
-   * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - int getMaintenanceExclusionsCount(); - /** - * - * - *
-   * Exceptions to maintenance window. Non-emergency maintenance should not
-   * occur in these windows.
-   * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - boolean containsMaintenanceExclusions(java.lang.String key); - /** Use {@link #getMaintenanceExclusionsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getMaintenanceExclusions(); - /** - * - * - *
-   * Exceptions to maintenance window. Non-emergency maintenance should not
-   * occur in these windows.
-   * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - java.util.Map getMaintenanceExclusionsMap(); - /** - * - * - *
-   * Exceptions to maintenance window. Non-emergency maintenance should not
-   * occur in these windows.
-   * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - com.google.container.v1.TimeWindow getMaintenanceExclusionsOrDefault( - java.lang.String key, com.google.container.v1.TimeWindow defaultValue); - /** - * - * - *
-   * Exceptions to maintenance window. Non-emergency maintenance should not
-   * occur in these windows.
-   * 
- * - * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; - */ - com.google.container.v1.TimeWindow getMaintenanceExclusionsOrThrow(java.lang.String key); - - public com.google.container.v1.MaintenanceWindow.PolicyCase getPolicyCase(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java deleted file mode 100644 index 572fec24..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java +++ /dev/null @@ -1,1785 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * The authentication information for accessing the master endpoint.
- * Authentication can be done using HTTP basic auth or using client
- * certificates.
- * 
- * - * Protobuf type {@code google.container.v1.MasterAuth} - */ -public final class MasterAuth extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.MasterAuth) - MasterAuthOrBuilder { - private static final long serialVersionUID = 0L; - // Use MasterAuth.newBuilder() to construct. - private MasterAuth(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MasterAuth() { - username_ = ""; - password_ = ""; - clusterCaCertificate_ = ""; - clientCertificate_ = ""; - clientKey_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MasterAuth(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private MasterAuth( - 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(); - - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - password_ = s; - break; - } - case 26: - { - com.google.container.v1.ClientCertificateConfig.Builder subBuilder = null; - if (clientCertificateConfig_ != null) { - subBuilder = clientCertificateConfig_.toBuilder(); - } - clientCertificateConfig_ = - input.readMessage( - com.google.container.v1.ClientCertificateConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(clientCertificateConfig_); - clientCertificateConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 802: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterCaCertificate_ = s; - break; - } - case 810: - { - java.lang.String s = input.readStringRequireUtf8(); - - clientCertificate_ = s; - break; - } - case 818: - { - java.lang.String s = input.readStringRequireUtf8(); - - clientKey_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuth_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuth_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MasterAuth.class, - com.google.container.v1.MasterAuth.Builder.class); - } - - public static final int USERNAME_FIELD_NUMBER = 1; - private volatile java.lang.Object username_; - /** - * - * - *
-   * The username to use for HTTP basic authentication to the master endpoint.
-   * For clusters v1.6.0 and later, basic authentication can be disabled by
-   * leaving username unspecified (or setting it to the empty string).
-   * Warning: basic authentication is deprecated, and will be removed in GKE
-   * control plane versions 1.19 and newer. For a list of recommended
-   * authentication methods, see:
-   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-   * 
- * - * string username = 1 [deprecated = true]; - * - * @return The username. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getUsername() { - java.lang.Object ref = username_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - username_ = s; - return s; - } - } - /** - * - * - *
-   * The username to use for HTTP basic authentication to the master endpoint.
-   * For clusters v1.6.0 and later, basic authentication can be disabled by
-   * leaving username unspecified (or setting it to the empty string).
-   * Warning: basic authentication is deprecated, and will be removed in GKE
-   * control plane versions 1.19 and newer. For a list of recommended
-   * authentication methods, see:
-   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-   * 
- * - * string username = 1 [deprecated = true]; - * - * @return The bytes for username. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getUsernameBytes() { - java.lang.Object ref = username_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - username_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PASSWORD_FIELD_NUMBER = 2; - private volatile java.lang.Object password_; - /** - * - * - *
-   * The password to use for HTTP basic authentication to the master endpoint.
-   * Because the master endpoint is open to the Internet, you should create a
-   * strong password.  If a password is provided for cluster creation, username
-   * must be non-empty.
-   * Warning: basic authentication is deprecated, and will be removed in GKE
-   * control plane versions 1.19 and newer. For a list of recommended
-   * authentication methods, see:
-   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-   * 
- * - * string password = 2 [deprecated = true]; - * - * @return The password. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } - } - /** - * - * - *
-   * The password to use for HTTP basic authentication to the master endpoint.
-   * Because the master endpoint is open to the Internet, you should create a
-   * strong password.  If a password is provided for cluster creation, username
-   * must be non-empty.
-   * Warning: basic authentication is deprecated, and will be removed in GKE
-   * control plane versions 1.19 and newer. For a list of recommended
-   * authentication methods, see:
-   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-   * 
- * - * string password = 2 [deprecated = true]; - * - * @return The bytes for password. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENT_CERTIFICATE_CONFIG_FIELD_NUMBER = 3; - private com.google.container.v1.ClientCertificateConfig clientCertificateConfig_; - /** - * - * - *
-   * Configuration for client certificate authentication on the cluster. For
-   * clusters before v1.12, if no configuration is specified, a client
-   * certificate is issued.
-   * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - * - * @return Whether the clientCertificateConfig field is set. - */ - @java.lang.Override - public boolean hasClientCertificateConfig() { - return clientCertificateConfig_ != null; - } - /** - * - * - *
-   * Configuration for client certificate authentication on the cluster. For
-   * clusters before v1.12, if no configuration is specified, a client
-   * certificate is issued.
-   * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - * - * @return The clientCertificateConfig. - */ - @java.lang.Override - public com.google.container.v1.ClientCertificateConfig getClientCertificateConfig() { - return clientCertificateConfig_ == null - ? com.google.container.v1.ClientCertificateConfig.getDefaultInstance() - : clientCertificateConfig_; - } - /** - * - * - *
-   * Configuration for client certificate authentication on the cluster. For
-   * clusters before v1.12, if no configuration is specified, a client
-   * certificate is issued.
-   * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - */ - @java.lang.Override - public com.google.container.v1.ClientCertificateConfigOrBuilder - getClientCertificateConfigOrBuilder() { - return getClientCertificateConfig(); - } - - public static final int CLUSTER_CA_CERTIFICATE_FIELD_NUMBER = 100; - private volatile java.lang.Object clusterCaCertificate_; - /** - * - * - *
-   * [Output only] Base64-encoded public certificate that is the root of
-   * trust for the cluster.
-   * 
- * - * string cluster_ca_certificate = 100; - * - * @return The clusterCaCertificate. - */ - @java.lang.Override - public java.lang.String getClusterCaCertificate() { - java.lang.Object ref = clusterCaCertificate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterCaCertificate_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] Base64-encoded public certificate that is the root of
-   * trust for the cluster.
-   * 
- * - * string cluster_ca_certificate = 100; - * - * @return The bytes for clusterCaCertificate. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterCaCertificateBytes() { - java.lang.Object ref = clusterCaCertificate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterCaCertificate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENT_CERTIFICATE_FIELD_NUMBER = 101; - private volatile java.lang.Object clientCertificate_; - /** - * - * - *
-   * [Output only] Base64-encoded public certificate used by clients to
-   * authenticate to the cluster endpoint.
-   * 
- * - * string client_certificate = 101; - * - * @return The clientCertificate. - */ - @java.lang.Override - public java.lang.String getClientCertificate() { - java.lang.Object ref = clientCertificate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientCertificate_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] Base64-encoded public certificate used by clients to
-   * authenticate to the cluster endpoint.
-   * 
- * - * string client_certificate = 101; - * - * @return The bytes for clientCertificate. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClientCertificateBytes() { - java.lang.Object ref = clientCertificate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clientCertificate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENT_KEY_FIELD_NUMBER = 102; - private volatile java.lang.Object clientKey_; - /** - * - * - *
-   * [Output only] Base64-encoded private key used by clients to authenticate
-   * to the cluster endpoint.
-   * 
- * - * string client_key = 102; - * - * @return The clientKey. - */ - @java.lang.Override - public java.lang.String getClientKey() { - java.lang.Object ref = clientKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientKey_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] Base64-encoded private key used by clients to authenticate
-   * to the cluster endpoint.
-   * 
- * - * string client_key = 102; - * - * @return The bytes for clientKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClientKeyBytes() { - java.lang.Object ref = clientKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clientKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getUsernameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); - } - if (!getPasswordBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, password_); - } - if (clientCertificateConfig_ != null) { - output.writeMessage(3, getClientCertificateConfig()); - } - if (!getClusterCaCertificateBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 100, clusterCaCertificate_); - } - if (!getClientCertificateBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 101, clientCertificate_); - } - if (!getClientKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 102, clientKey_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getUsernameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, username_); - } - if (!getPasswordBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, password_); - } - if (clientCertificateConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getClientCertificateConfig()); - } - if (!getClusterCaCertificateBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, clusterCaCertificate_); - } - if (!getClientCertificateBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, clientCertificate_); - } - if (!getClientKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(102, clientKey_); - } - 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.container.v1.MasterAuth)) { - return super.equals(obj); - } - com.google.container.v1.MasterAuth other = (com.google.container.v1.MasterAuth) obj; - - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; - if (hasClientCertificateConfig() != other.hasClientCertificateConfig()) return false; - if (hasClientCertificateConfig()) { - if (!getClientCertificateConfig().equals(other.getClientCertificateConfig())) return false; - } - if (!getClusterCaCertificate().equals(other.getClusterCaCertificate())) return false; - if (!getClientCertificate().equals(other.getClientCertificate())) return false; - if (!getClientKey().equals(other.getClientKey())) 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) + USERNAME_FIELD_NUMBER; - hash = (53 * hash) + getUsername().hashCode(); - hash = (37 * hash) + PASSWORD_FIELD_NUMBER; - hash = (53 * hash) + getPassword().hashCode(); - if (hasClientCertificateConfig()) { - hash = (37 * hash) + CLIENT_CERTIFICATE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getClientCertificateConfig().hashCode(); - } - hash = (37 * hash) + CLUSTER_CA_CERTIFICATE_FIELD_NUMBER; - hash = (53 * hash) + getClusterCaCertificate().hashCode(); - hash = (37 * hash) + CLIENT_CERTIFICATE_FIELD_NUMBER; - hash = (53 * hash) + getClientCertificate().hashCode(); - hash = (37 * hash) + CLIENT_KEY_FIELD_NUMBER; - hash = (53 * hash) + getClientKey().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.MasterAuth parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MasterAuth parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MasterAuth parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MasterAuth parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MasterAuth parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MasterAuth parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MasterAuth parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.MasterAuth parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.MasterAuth parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.MasterAuth parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.MasterAuth parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.MasterAuth parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.MasterAuth prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 authentication information for accessing the master endpoint.
-   * Authentication can be done using HTTP basic auth or using client
-   * certificates.
-   * 
- * - * Protobuf type {@code google.container.v1.MasterAuth} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.MasterAuth) - com.google.container.v1.MasterAuthOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuth_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuth_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MasterAuth.class, - com.google.container.v1.MasterAuth.Builder.class); - } - - // Construct using com.google.container.v1.MasterAuth.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(); - username_ = ""; - - password_ = ""; - - if (clientCertificateConfigBuilder_ == null) { - clientCertificateConfig_ = null; - } else { - clientCertificateConfig_ = null; - clientCertificateConfigBuilder_ = null; - } - clusterCaCertificate_ = ""; - - clientCertificate_ = ""; - - clientKey_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuth_descriptor; - } - - @java.lang.Override - public com.google.container.v1.MasterAuth getDefaultInstanceForType() { - return com.google.container.v1.MasterAuth.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.MasterAuth build() { - com.google.container.v1.MasterAuth result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.MasterAuth buildPartial() { - com.google.container.v1.MasterAuth result = new com.google.container.v1.MasterAuth(this); - result.username_ = username_; - result.password_ = password_; - if (clientCertificateConfigBuilder_ == null) { - result.clientCertificateConfig_ = clientCertificateConfig_; - } else { - result.clientCertificateConfig_ = clientCertificateConfigBuilder_.build(); - } - result.clusterCaCertificate_ = clusterCaCertificate_; - result.clientCertificate_ = clientCertificate_; - result.clientKey_ = clientKey_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.MasterAuth) { - return mergeFrom((com.google.container.v1.MasterAuth) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.MasterAuth other) { - if (other == com.google.container.v1.MasterAuth.getDefaultInstance()) return this; - if (!other.getUsername().isEmpty()) { - username_ = other.username_; - onChanged(); - } - if (!other.getPassword().isEmpty()) { - password_ = other.password_; - onChanged(); - } - if (other.hasClientCertificateConfig()) { - mergeClientCertificateConfig(other.getClientCertificateConfig()); - } - if (!other.getClusterCaCertificate().isEmpty()) { - clusterCaCertificate_ = other.clusterCaCertificate_; - onChanged(); - } - if (!other.getClientCertificate().isEmpty()) { - clientCertificate_ = other.clientCertificate_; - onChanged(); - } - if (!other.getClientKey().isEmpty()) { - clientKey_ = other.clientKey_; - 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.container.v1.MasterAuth parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.MasterAuth) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object username_ = ""; - /** - * - * - *
-     * The username to use for HTTP basic authentication to the master endpoint.
-     * For clusters v1.6.0 and later, basic authentication can be disabled by
-     * leaving username unspecified (or setting it to the empty string).
-     * Warning: basic authentication is deprecated, and will be removed in GKE
-     * control plane versions 1.19 and newer. For a list of recommended
-     * authentication methods, see:
-     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-     * 
- * - * string username = 1 [deprecated = true]; - * - * @return The username. - */ - @java.lang.Deprecated - public java.lang.String getUsername() { - java.lang.Object ref = username_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - username_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The username to use for HTTP basic authentication to the master endpoint.
-     * For clusters v1.6.0 and later, basic authentication can be disabled by
-     * leaving username unspecified (or setting it to the empty string).
-     * Warning: basic authentication is deprecated, and will be removed in GKE
-     * control plane versions 1.19 and newer. For a list of recommended
-     * authentication methods, see:
-     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-     * 
- * - * string username = 1 [deprecated = true]; - * - * @return The bytes for username. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getUsernameBytes() { - java.lang.Object ref = username_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - username_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The username to use for HTTP basic authentication to the master endpoint.
-     * For clusters v1.6.0 and later, basic authentication can be disabled by
-     * leaving username unspecified (or setting it to the empty string).
-     * Warning: basic authentication is deprecated, and will be removed in GKE
-     * control plane versions 1.19 and newer. For a list of recommended
-     * authentication methods, see:
-     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-     * 
- * - * string username = 1 [deprecated = true]; - * - * @param value The username to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setUsername(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The username to use for HTTP basic authentication to the master endpoint.
-     * For clusters v1.6.0 and later, basic authentication can be disabled by
-     * leaving username unspecified (or setting it to the empty string).
-     * Warning: basic authentication is deprecated, and will be removed in GKE
-     * control plane versions 1.19 and newer. For a list of recommended
-     * authentication methods, see:
-     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-     * 
- * - * string username = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearUsername() { - - username_ = getDefaultInstance().getUsername(); - onChanged(); - return this; - } - /** - * - * - *
-     * The username to use for HTTP basic authentication to the master endpoint.
-     * For clusters v1.6.0 and later, basic authentication can be disabled by
-     * leaving username unspecified (or setting it to the empty string).
-     * Warning: basic authentication is deprecated, and will be removed in GKE
-     * control plane versions 1.19 and newer. For a list of recommended
-     * authentication methods, see:
-     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-     * 
- * - * string username = 1 [deprecated = true]; - * - * @param value The bytes for username to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value; - onChanged(); - return this; - } - - private java.lang.Object password_ = ""; - /** - * - * - *
-     * The password to use for HTTP basic authentication to the master endpoint.
-     * Because the master endpoint is open to the Internet, you should create a
-     * strong password.  If a password is provided for cluster creation, username
-     * must be non-empty.
-     * Warning: basic authentication is deprecated, and will be removed in GKE
-     * control plane versions 1.19 and newer. For a list of recommended
-     * authentication methods, see:
-     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-     * 
- * - * string password = 2 [deprecated = true]; - * - * @return The password. - */ - @java.lang.Deprecated - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - password_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The password to use for HTTP basic authentication to the master endpoint.
-     * Because the master endpoint is open to the Internet, you should create a
-     * strong password.  If a password is provided for cluster creation, username
-     * must be non-empty.
-     * Warning: basic authentication is deprecated, and will be removed in GKE
-     * control plane versions 1.19 and newer. For a list of recommended
-     * authentication methods, see:
-     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-     * 
- * - * string password = 2 [deprecated = true]; - * - * @return The bytes for password. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The password to use for HTTP basic authentication to the master endpoint.
-     * Because the master endpoint is open to the Internet, you should create a
-     * strong password.  If a password is provided for cluster creation, username
-     * must be non-empty.
-     * Warning: basic authentication is deprecated, and will be removed in GKE
-     * control plane versions 1.19 and newer. For a list of recommended
-     * authentication methods, see:
-     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-     * 
- * - * string password = 2 [deprecated = true]; - * - * @param value The password to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setPassword(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - password_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The password to use for HTTP basic authentication to the master endpoint.
-     * Because the master endpoint is open to the Internet, you should create a
-     * strong password.  If a password is provided for cluster creation, username
-     * must be non-empty.
-     * Warning: basic authentication is deprecated, and will be removed in GKE
-     * control plane versions 1.19 and newer. For a list of recommended
-     * authentication methods, see:
-     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-     * 
- * - * string password = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearPassword() { - - password_ = getDefaultInstance().getPassword(); - onChanged(); - return this; - } - /** - * - * - *
-     * The password to use for HTTP basic authentication to the master endpoint.
-     * Because the master endpoint is open to the Internet, you should create a
-     * strong password.  If a password is provided for cluster creation, username
-     * must be non-empty.
-     * Warning: basic authentication is deprecated, and will be removed in GKE
-     * control plane versions 1.19 and newer. For a list of recommended
-     * authentication methods, see:
-     * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-     * 
- * - * string password = 2 [deprecated = true]; - * - * @param value The bytes for password to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - password_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.ClientCertificateConfig clientCertificateConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClientCertificateConfig, - com.google.container.v1.ClientCertificateConfig.Builder, - com.google.container.v1.ClientCertificateConfigOrBuilder> - clientCertificateConfigBuilder_; - /** - * - * - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - * - * @return Whether the clientCertificateConfig field is set. - */ - public boolean hasClientCertificateConfig() { - return clientCertificateConfigBuilder_ != null || clientCertificateConfig_ != null; - } - /** - * - * - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - * - * @return The clientCertificateConfig. - */ - public com.google.container.v1.ClientCertificateConfig getClientCertificateConfig() { - if (clientCertificateConfigBuilder_ == null) { - return clientCertificateConfig_ == null - ? com.google.container.v1.ClientCertificateConfig.getDefaultInstance() - : clientCertificateConfig_; - } else { - return clientCertificateConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - */ - public Builder setClientCertificateConfig( - com.google.container.v1.ClientCertificateConfig value) { - if (clientCertificateConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - clientCertificateConfig_ = value; - onChanged(); - } else { - clientCertificateConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - */ - public Builder setClientCertificateConfig( - com.google.container.v1.ClientCertificateConfig.Builder builderForValue) { - if (clientCertificateConfigBuilder_ == null) { - clientCertificateConfig_ = builderForValue.build(); - onChanged(); - } else { - clientCertificateConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - */ - public Builder mergeClientCertificateConfig( - com.google.container.v1.ClientCertificateConfig value) { - if (clientCertificateConfigBuilder_ == null) { - if (clientCertificateConfig_ != null) { - clientCertificateConfig_ = - com.google.container.v1.ClientCertificateConfig.newBuilder(clientCertificateConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - clientCertificateConfig_ = value; - } - onChanged(); - } else { - clientCertificateConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - */ - public Builder clearClientCertificateConfig() { - if (clientCertificateConfigBuilder_ == null) { - clientCertificateConfig_ = null; - onChanged(); - } else { - clientCertificateConfig_ = null; - clientCertificateConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - */ - public com.google.container.v1.ClientCertificateConfig.Builder - getClientCertificateConfigBuilder() { - - onChanged(); - return getClientCertificateConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - */ - public com.google.container.v1.ClientCertificateConfigOrBuilder - getClientCertificateConfigOrBuilder() { - if (clientCertificateConfigBuilder_ != null) { - return clientCertificateConfigBuilder_.getMessageOrBuilder(); - } else { - return clientCertificateConfig_ == null - ? com.google.container.v1.ClientCertificateConfig.getDefaultInstance() - : clientCertificateConfig_; - } - } - /** - * - * - *
-     * Configuration for client certificate authentication on the cluster. For
-     * clusters before v1.12, if no configuration is specified, a client
-     * certificate is issued.
-     * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClientCertificateConfig, - com.google.container.v1.ClientCertificateConfig.Builder, - com.google.container.v1.ClientCertificateConfigOrBuilder> - getClientCertificateConfigFieldBuilder() { - if (clientCertificateConfigBuilder_ == null) { - clientCertificateConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClientCertificateConfig, - com.google.container.v1.ClientCertificateConfig.Builder, - com.google.container.v1.ClientCertificateConfigOrBuilder>( - getClientCertificateConfig(), getParentForChildren(), isClean()); - clientCertificateConfig_ = null; - } - return clientCertificateConfigBuilder_; - } - - private java.lang.Object clusterCaCertificate_ = ""; - /** - * - * - *
-     * [Output only] Base64-encoded public certificate that is the root of
-     * trust for the cluster.
-     * 
- * - * string cluster_ca_certificate = 100; - * - * @return The clusterCaCertificate. - */ - public java.lang.String getClusterCaCertificate() { - java.lang.Object ref = clusterCaCertificate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterCaCertificate_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] Base64-encoded public certificate that is the root of
-     * trust for the cluster.
-     * 
- * - * string cluster_ca_certificate = 100; - * - * @return The bytes for clusterCaCertificate. - */ - public com.google.protobuf.ByteString getClusterCaCertificateBytes() { - java.lang.Object ref = clusterCaCertificate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterCaCertificate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] Base64-encoded public certificate that is the root of
-     * trust for the cluster.
-     * 
- * - * string cluster_ca_certificate = 100; - * - * @param value The clusterCaCertificate to set. - * @return This builder for chaining. - */ - public Builder setClusterCaCertificate(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterCaCertificate_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Base64-encoded public certificate that is the root of
-     * trust for the cluster.
-     * 
- * - * string cluster_ca_certificate = 100; - * - * @return This builder for chaining. - */ - public Builder clearClusterCaCertificate() { - - clusterCaCertificate_ = getDefaultInstance().getClusterCaCertificate(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Base64-encoded public certificate that is the root of
-     * trust for the cluster.
-     * 
- * - * string cluster_ca_certificate = 100; - * - * @param value The bytes for clusterCaCertificate to set. - * @return This builder for chaining. - */ - public Builder setClusterCaCertificateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterCaCertificate_ = value; - onChanged(); - return this; - } - - private java.lang.Object clientCertificate_ = ""; - /** - * - * - *
-     * [Output only] Base64-encoded public certificate used by clients to
-     * authenticate to the cluster endpoint.
-     * 
- * - * string client_certificate = 101; - * - * @return The clientCertificate. - */ - public java.lang.String getClientCertificate() { - java.lang.Object ref = clientCertificate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientCertificate_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] Base64-encoded public certificate used by clients to
-     * authenticate to the cluster endpoint.
-     * 
- * - * string client_certificate = 101; - * - * @return The bytes for clientCertificate. - */ - public com.google.protobuf.ByteString getClientCertificateBytes() { - java.lang.Object ref = clientCertificate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clientCertificate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] Base64-encoded public certificate used by clients to
-     * authenticate to the cluster endpoint.
-     * 
- * - * string client_certificate = 101; - * - * @param value The clientCertificate to set. - * @return This builder for chaining. - */ - public Builder setClientCertificate(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientCertificate_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Base64-encoded public certificate used by clients to
-     * authenticate to the cluster endpoint.
-     * 
- * - * string client_certificate = 101; - * - * @return This builder for chaining. - */ - public Builder clearClientCertificate() { - - clientCertificate_ = getDefaultInstance().getClientCertificate(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Base64-encoded public certificate used by clients to
-     * authenticate to the cluster endpoint.
-     * 
- * - * string client_certificate = 101; - * - * @param value The bytes for clientCertificate to set. - * @return This builder for chaining. - */ - public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientCertificate_ = value; - onChanged(); - return this; - } - - private java.lang.Object clientKey_ = ""; - /** - * - * - *
-     * [Output only] Base64-encoded private key used by clients to authenticate
-     * to the cluster endpoint.
-     * 
- * - * string client_key = 102; - * - * @return The clientKey. - */ - public java.lang.String getClientKey() { - java.lang.Object ref = clientKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] Base64-encoded private key used by clients to authenticate
-     * to the cluster endpoint.
-     * 
- * - * string client_key = 102; - * - * @return The bytes for clientKey. - */ - public com.google.protobuf.ByteString getClientKeyBytes() { - java.lang.Object ref = clientKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clientKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] Base64-encoded private key used by clients to authenticate
-     * to the cluster endpoint.
-     * 
- * - * string client_key = 102; - * - * @param value The clientKey to set. - * @return This builder for chaining. - */ - public Builder setClientKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientKey_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Base64-encoded private key used by clients to authenticate
-     * to the cluster endpoint.
-     * 
- * - * string client_key = 102; - * - * @return This builder for chaining. - */ - public Builder clearClientKey() { - - clientKey_ = getDefaultInstance().getClientKey(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Base64-encoded private key used by clients to authenticate
-     * to the cluster endpoint.
-     * 
- * - * string client_key = 102; - * - * @param value The bytes for clientKey to set. - * @return This builder for chaining. - */ - public Builder setClientKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientKey_ = value; - 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.container.v1.MasterAuth) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.MasterAuth) - private static final com.google.container.v1.MasterAuth DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.MasterAuth(); - } - - public static com.google.container.v1.MasterAuth getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MasterAuth parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MasterAuth(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.container.v1.MasterAuth getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java deleted file mode 100644 index e2770a12..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface MasterAuthOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.MasterAuth) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The username to use for HTTP basic authentication to the master endpoint.
-   * For clusters v1.6.0 and later, basic authentication can be disabled by
-   * leaving username unspecified (or setting it to the empty string).
-   * Warning: basic authentication is deprecated, and will be removed in GKE
-   * control plane versions 1.19 and newer. For a list of recommended
-   * authentication methods, see:
-   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-   * 
- * - * string username = 1 [deprecated = true]; - * - * @return The username. - */ - @java.lang.Deprecated - java.lang.String getUsername(); - /** - * - * - *
-   * The username to use for HTTP basic authentication to the master endpoint.
-   * For clusters v1.6.0 and later, basic authentication can be disabled by
-   * leaving username unspecified (or setting it to the empty string).
-   * Warning: basic authentication is deprecated, and will be removed in GKE
-   * control plane versions 1.19 and newer. For a list of recommended
-   * authentication methods, see:
-   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-   * 
- * - * string username = 1 [deprecated = true]; - * - * @return The bytes for username. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getUsernameBytes(); - - /** - * - * - *
-   * The password to use for HTTP basic authentication to the master endpoint.
-   * Because the master endpoint is open to the Internet, you should create a
-   * strong password.  If a password is provided for cluster creation, username
-   * must be non-empty.
-   * Warning: basic authentication is deprecated, and will be removed in GKE
-   * control plane versions 1.19 and newer. For a list of recommended
-   * authentication methods, see:
-   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-   * 
- * - * string password = 2 [deprecated = true]; - * - * @return The password. - */ - @java.lang.Deprecated - java.lang.String getPassword(); - /** - * - * - *
-   * The password to use for HTTP basic authentication to the master endpoint.
-   * Because the master endpoint is open to the Internet, you should create a
-   * strong password.  If a password is provided for cluster creation, username
-   * must be non-empty.
-   * Warning: basic authentication is deprecated, and will be removed in GKE
-   * control plane versions 1.19 and newer. For a list of recommended
-   * authentication methods, see:
-   * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
-   * 
- * - * string password = 2 [deprecated = true]; - * - * @return The bytes for password. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getPasswordBytes(); - - /** - * - * - *
-   * Configuration for client certificate authentication on the cluster. For
-   * clusters before v1.12, if no configuration is specified, a client
-   * certificate is issued.
-   * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - * - * @return Whether the clientCertificateConfig field is set. - */ - boolean hasClientCertificateConfig(); - /** - * - * - *
-   * Configuration for client certificate authentication on the cluster. For
-   * clusters before v1.12, if no configuration is specified, a client
-   * certificate is issued.
-   * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - * - * @return The clientCertificateConfig. - */ - com.google.container.v1.ClientCertificateConfig getClientCertificateConfig(); - /** - * - * - *
-   * Configuration for client certificate authentication on the cluster. For
-   * clusters before v1.12, if no configuration is specified, a client
-   * certificate is issued.
-   * 
- * - * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - */ - com.google.container.v1.ClientCertificateConfigOrBuilder getClientCertificateConfigOrBuilder(); - - /** - * - * - *
-   * [Output only] Base64-encoded public certificate that is the root of
-   * trust for the cluster.
-   * 
- * - * string cluster_ca_certificate = 100; - * - * @return The clusterCaCertificate. - */ - java.lang.String getClusterCaCertificate(); - /** - * - * - *
-   * [Output only] Base64-encoded public certificate that is the root of
-   * trust for the cluster.
-   * 
- * - * string cluster_ca_certificate = 100; - * - * @return The bytes for clusterCaCertificate. - */ - com.google.protobuf.ByteString getClusterCaCertificateBytes(); - - /** - * - * - *
-   * [Output only] Base64-encoded public certificate used by clients to
-   * authenticate to the cluster endpoint.
-   * 
- * - * string client_certificate = 101; - * - * @return The clientCertificate. - */ - java.lang.String getClientCertificate(); - /** - * - * - *
-   * [Output only] Base64-encoded public certificate used by clients to
-   * authenticate to the cluster endpoint.
-   * 
- * - * string client_certificate = 101; - * - * @return The bytes for clientCertificate. - */ - com.google.protobuf.ByteString getClientCertificateBytes(); - - /** - * - * - *
-   * [Output only] Base64-encoded private key used by clients to authenticate
-   * to the cluster endpoint.
-   * 
- * - * string client_key = 102; - * - * @return The clientKey. - */ - java.lang.String getClientKey(); - /** - * - * - *
-   * [Output only] Base64-encoded private key used by clients to authenticate
-   * to the cluster endpoint.
-   * 
- * - * string client_key = 102; - * - * @return The bytes for clientKey. - */ - com.google.protobuf.ByteString getClientKeyBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java deleted file mode 100644 index 0fd061af..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java +++ /dev/null @@ -1,1990 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Configuration options for the master authorized networks feature. Enabled
- * master authorized networks will disallow all external traffic to access
- * Kubernetes master through HTTPS except traffic from the given CIDR blocks,
- * Google Compute Engine Public IPs and Google Prod IPs.
- * 
- * - * Protobuf type {@code google.container.v1.MasterAuthorizedNetworksConfig} - */ -public final class MasterAuthorizedNetworksConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.MasterAuthorizedNetworksConfig) - MasterAuthorizedNetworksConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use MasterAuthorizedNetworksConfig.newBuilder() to construct. - private MasterAuthorizedNetworksConfig( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MasterAuthorizedNetworksConfig() { - cidrBlocks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MasterAuthorizedNetworksConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private MasterAuthorizedNetworksConfig( - 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: - { - enabled_ = input.readBool(); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - cidrBlocks_ = - new java.util.ArrayList< - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock>(); - mutable_bitField0_ |= 0x00000001; - } - cidrBlocks_.add( - input.readMessage( - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.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)) { - cidrBlocks_ = java.util.Collections.unmodifiableList(cidrBlocks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuthorizedNetworksConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuthorizedNetworksConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MasterAuthorizedNetworksConfig.class, - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder.class); - } - - public interface CidrBlockOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * display_name is an optional field for users to identify CIDR blocks.
-     * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - * - * - *
-     * display_name is an optional field for users to identify CIDR blocks.
-     * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-     * cidr_block must be specified in CIDR notation.
-     * 
- * - * string cidr_block = 2; - * - * @return The cidrBlock. - */ - java.lang.String getCidrBlock(); - /** - * - * - *
-     * cidr_block must be specified in CIDR notation.
-     * 
- * - * string cidr_block = 2; - * - * @return The bytes for cidrBlock. - */ - com.google.protobuf.ByteString getCidrBlockBytes(); - } - /** - * - * - *
-   * CidrBlock contains an optional name and one CIDR block.
-   * 
- * - * Protobuf type {@code google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} - */ - public static final class CidrBlock extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) - CidrBlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use CidrBlock.newBuilder() to construct. - private CidrBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CidrBlock() { - displayName_ = ""; - cidrBlock_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CidrBlock(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CidrBlock( - 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(); - - displayName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - cidrBlock_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.class, - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder.class); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object displayName_; - /** - * - * - *
-     * display_name is an optional field for users to identify CIDR blocks.
-     * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - * - * - *
-     * display_name is an optional field for users to identify CIDR blocks.
-     * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CIDR_BLOCK_FIELD_NUMBER = 2; - private volatile java.lang.Object cidrBlock_; - /** - * - * - *
-     * cidr_block must be specified in CIDR notation.
-     * 
- * - * string cidr_block = 2; - * - * @return The cidrBlock. - */ - @java.lang.Override - public java.lang.String getCidrBlock() { - java.lang.Object ref = cidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cidrBlock_ = s; - return s; - } - } - /** - * - * - *
-     * cidr_block must be specified in CIDR notation.
-     * 
- * - * string cidr_block = 2; - * - * @return The bytes for cidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCidrBlockBytes() { - java.lang.Object ref = cidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - cidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDisplayNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); - } - if (!getCidrBlockBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cidrBlock_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDisplayNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); - } - if (!getCidrBlockBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cidrBlock_); - } - 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.container.v1.MasterAuthorizedNetworksConfig.CidrBlock)) { - return super.equals(obj); - } - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock other = - (com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) obj; - - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getCidrBlock().equals(other.getCidrBlock())) 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) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + CIDR_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getCidrBlock().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * CidrBlock contains an optional name and one CIDR block.
-     * 
- * - * Protobuf type {@code google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuthorizedNetworksConfig_CidrBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.class, - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder.class); - } - - // Construct using - // com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.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(); - displayName_ = ""; - - cidrBlock_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuthorizedNetworksConfig_CidrBlock_descriptor; - } - - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - getDefaultInstanceForType() { - return com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock build() { - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock buildPartial() { - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock result = - new com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock(this); - result.displayName_ = displayName_; - result.cidrBlock_ = cidrBlock_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) { - return mergeFrom( - (com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock other) { - if (other - == com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - .getDefaultInstance()) return this; - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (!other.getCidrBlock().isEmpty()) { - cidrBlock_ = other.cidrBlock_; - 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.container.v1.MasterAuthorizedNetworksConfig.CidrBlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object displayName_ = ""; - /** - * - * - *
-       * display_name is an optional field for users to identify CIDR blocks.
-       * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * display_name is an optional field for users to identify CIDR blocks.
-       * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * display_name is an optional field for users to identify CIDR blocks.
-       * 
- * - * string display_name = 1; - * - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - displayName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * display_name is an optional field for users to identify CIDR blocks.
-       * 
- * - * string display_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - - displayName_ = getDefaultInstance().getDisplayName(); - onChanged(); - return this; - } - /** - * - * - *
-       * display_name is an optional field for users to identify CIDR blocks.
-       * 
- * - * string display_name = 1; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - displayName_ = value; - onChanged(); - return this; - } - - private java.lang.Object cidrBlock_ = ""; - /** - * - * - *
-       * cidr_block must be specified in CIDR notation.
-       * 
- * - * string cidr_block = 2; - * - * @return The cidrBlock. - */ - public java.lang.String getCidrBlock() { - java.lang.Object ref = cidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * cidr_block must be specified in CIDR notation.
-       * 
- * - * string cidr_block = 2; - * - * @return The bytes for cidrBlock. - */ - public com.google.protobuf.ByteString getCidrBlockBytes() { - java.lang.Object ref = cidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - cidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * cidr_block must be specified in CIDR notation.
-       * 
- * - * string cidr_block = 2; - * - * @param value The cidrBlock to set. - * @return This builder for chaining. - */ - public Builder setCidrBlock(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cidrBlock_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * cidr_block must be specified in CIDR notation.
-       * 
- * - * string cidr_block = 2; - * - * @return This builder for chaining. - */ - public Builder clearCidrBlock() { - - cidrBlock_ = getDefaultInstance().getCidrBlock(); - onChanged(); - return this; - } - /** - * - * - *
-       * cidr_block must be specified in CIDR notation.
-       * 
- * - * string cidr_block = 2; - * - * @param value The bytes for cidrBlock to set. - * @return This builder for chaining. - */ - public Builder setCidrBlockBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cidrBlock_ = 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.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock) - private static final com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock(); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CidrBlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CidrBlock(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.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - * - * - *
-   * Whether or not master authorized networks is enabled.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - public static final int CIDR_BLOCKS_FIELD_NUMBER = 2; - private java.util.List - cidrBlocks_; - /** - * - * - *
-   * cidr_blocks define up to 50 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - @java.lang.Override - public java.util.List - getCidrBlocksList() { - return cidrBlocks_; - } - /** - * - * - *
-   * cidr_blocks define up to 50 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> - getCidrBlocksOrBuilderList() { - return cidrBlocks_; - } - /** - * - * - *
-   * cidr_blocks define up to 50 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - @java.lang.Override - public int getCidrBlocksCount() { - return cidrBlocks_.size(); - } - /** - * - * - *
-   * cidr_blocks define up to 50 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks(int index) { - return cidrBlocks_.get(index); - } - /** - * - * - *
-   * cidr_blocks define up to 50 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder - getCidrBlocksOrBuilder(int index) { - return cidrBlocks_.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 (enabled_ != false) { - output.writeBool(1, enabled_); - } - for (int i = 0; i < cidrBlocks_.size(); i++) { - output.writeMessage(2, cidrBlocks_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); - } - for (int i = 0; i < cidrBlocks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, cidrBlocks_.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.container.v1.MasterAuthorizedNetworksConfig)) { - return super.equals(obj); - } - com.google.container.v1.MasterAuthorizedNetworksConfig other = - (com.google.container.v1.MasterAuthorizedNetworksConfig) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (!getCidrBlocksList().equals(other.getCidrBlocksList())) 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) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); - if (getCidrBlocksCount() > 0) { - hash = (37 * hash) + CIDR_BLOCKS_FIELD_NUMBER; - hash = (53 * hash) + getCidrBlocksList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.MasterAuthorizedNetworksConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 options for the master authorized networks feature. Enabled
-   * master authorized networks will disallow all external traffic to access
-   * Kubernetes master through HTTPS except traffic from the given CIDR blocks,
-   * Google Compute Engine Public IPs and Google Prod IPs.
-   * 
- * - * Protobuf type {@code google.container.v1.MasterAuthorizedNetworksConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.MasterAuthorizedNetworksConfig) - com.google.container.v1.MasterAuthorizedNetworksConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuthorizedNetworksConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuthorizedNetworksConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MasterAuthorizedNetworksConfig.class, - com.google.container.v1.MasterAuthorizedNetworksConfig.Builder.class); - } - - // Construct using com.google.container.v1.MasterAuthorizedNetworksConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getCidrBlocksFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - enabled_ = false; - - if (cidrBlocksBuilder_ == null) { - cidrBlocks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - cidrBlocksBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MasterAuthorizedNetworksConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig getDefaultInstanceForType() { - return com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig build() { - com.google.container.v1.MasterAuthorizedNetworksConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.MasterAuthorizedNetworksConfig buildPartial() { - com.google.container.v1.MasterAuthorizedNetworksConfig result = - new com.google.container.v1.MasterAuthorizedNetworksConfig(this); - int from_bitField0_ = bitField0_; - result.enabled_ = enabled_; - if (cidrBlocksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - cidrBlocks_ = java.util.Collections.unmodifiableList(cidrBlocks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.cidrBlocks_ = cidrBlocks_; - } else { - result.cidrBlocks_ = cidrBlocksBuilder_.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.container.v1.MasterAuthorizedNetworksConfig) { - return mergeFrom((com.google.container.v1.MasterAuthorizedNetworksConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.MasterAuthorizedNetworksConfig other) { - if (other == com.google.container.v1.MasterAuthorizedNetworksConfig.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (cidrBlocksBuilder_ == null) { - if (!other.cidrBlocks_.isEmpty()) { - if (cidrBlocks_.isEmpty()) { - cidrBlocks_ = other.cidrBlocks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCidrBlocksIsMutable(); - cidrBlocks_.addAll(other.cidrBlocks_); - } - onChanged(); - } - } else { - if (!other.cidrBlocks_.isEmpty()) { - if (cidrBlocksBuilder_.isEmpty()) { - cidrBlocksBuilder_.dispose(); - cidrBlocksBuilder_ = null; - cidrBlocks_ = other.cidrBlocks_; - bitField0_ = (bitField0_ & ~0x00000001); - cidrBlocksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCidrBlocksFieldBuilder() - : null; - } else { - cidrBlocksBuilder_.addAllMessages(other.cidrBlocks_); - } - } - } - 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.container.v1.MasterAuthorizedNetworksConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.container.v1.MasterAuthorizedNetworksConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private boolean enabled_; - /** - * - * - *
-     * Whether or not master authorized networks is enabled.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether or not master authorized networks is enabled.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether or not master authorized networks is enabled.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - - private java.util.List - cidrBlocks_ = java.util.Collections.emptyList(); - - private void ensureCidrBlocksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - cidrBlocks_ = - new java.util.ArrayList< - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock>(cidrBlocks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock, - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> - cidrBlocksBuilder_; - - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public java.util.List - getCidrBlocksList() { - if (cidrBlocksBuilder_ == null) { - return java.util.Collections.unmodifiableList(cidrBlocks_); - } else { - return cidrBlocksBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public int getCidrBlocksCount() { - if (cidrBlocksBuilder_ == null) { - return cidrBlocks_.size(); - } else { - return cidrBlocksBuilder_.getCount(); - } - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks( - int index) { - if (cidrBlocksBuilder_ == null) { - return cidrBlocks_.get(index); - } else { - return cidrBlocksBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder setCidrBlocks( - int index, com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock value) { - if (cidrBlocksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCidrBlocksIsMutable(); - cidrBlocks_.set(index, value); - onChanged(); - } else { - cidrBlocksBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder setCidrBlocks( - int index, - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue) { - if (cidrBlocksBuilder_ == null) { - ensureCidrBlocksIsMutable(); - cidrBlocks_.set(index, builderForValue.build()); - onChanged(); - } else { - cidrBlocksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder addCidrBlocks( - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock value) { - if (cidrBlocksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCidrBlocksIsMutable(); - cidrBlocks_.add(value); - onChanged(); - } else { - cidrBlocksBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder addCidrBlocks( - int index, com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock value) { - if (cidrBlocksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCidrBlocksIsMutable(); - cidrBlocks_.add(index, value); - onChanged(); - } else { - cidrBlocksBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder addCidrBlocks( - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue) { - if (cidrBlocksBuilder_ == null) { - ensureCidrBlocksIsMutable(); - cidrBlocks_.add(builderForValue.build()); - onChanged(); - } else { - cidrBlocksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder addCidrBlocks( - int index, - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder builderForValue) { - if (cidrBlocksBuilder_ == null) { - ensureCidrBlocksIsMutable(); - cidrBlocks_.add(index, builderForValue.build()); - onChanged(); - } else { - cidrBlocksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder addAllCidrBlocks( - java.lang.Iterable< - ? extends com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock> - values) { - if (cidrBlocksBuilder_ == null) { - ensureCidrBlocksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cidrBlocks_); - onChanged(); - } else { - cidrBlocksBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder clearCidrBlocks() { - if (cidrBlocksBuilder_ == null) { - cidrBlocks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - cidrBlocksBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public Builder removeCidrBlocks(int index) { - if (cidrBlocksBuilder_ == null) { - ensureCidrBlocksIsMutable(); - cidrBlocks_.remove(index); - onChanged(); - } else { - cidrBlocksBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder - getCidrBlocksBuilder(int index) { - return getCidrBlocksFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder - getCidrBlocksOrBuilder(int index) { - if (cidrBlocksBuilder_ == null) { - return cidrBlocks_.get(index); - } else { - return cidrBlocksBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public java.util.List< - ? extends com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> - getCidrBlocksOrBuilderList() { - if (cidrBlocksBuilder_ != null) { - return cidrBlocksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(cidrBlocks_); - } - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder - addCidrBlocksBuilder() { - return getCidrBlocksFieldBuilder() - .addBuilder( - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - .getDefaultInstance()); - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder - addCidrBlocksBuilder(int index) { - return getCidrBlocksFieldBuilder() - .addBuilder( - index, - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - .getDefaultInstance()); - } - /** - * - * - *
-     * cidr_blocks define up to 50 external networks that could access
-     * Kubernetes master through HTTPS.
-     * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - public java.util.List - getCidrBlocksBuilderList() { - return getCidrBlocksFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock, - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> - getCidrBlocksFieldBuilder() { - if (cidrBlocksBuilder_ == null) { - cidrBlocksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock, - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder>( - cidrBlocks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - cidrBlocks_ = null; - } - return cidrBlocksBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.MasterAuthorizedNetworksConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.MasterAuthorizedNetworksConfig) - private static final com.google.container.v1.MasterAuthorizedNetworksConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.MasterAuthorizedNetworksConfig(); - } - - public static com.google.container.v1.MasterAuthorizedNetworksConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MasterAuthorizedNetworksConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MasterAuthorizedNetworksConfig(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.container.v1.MasterAuthorizedNetworksConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfigOrBuilder.java deleted file mode 100644 index a7d5067f..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfigOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface MasterAuthorizedNetworksConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.MasterAuthorizedNetworksConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether or not master authorized networks is enabled.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); - - /** - * - * - *
-   * cidr_blocks define up to 50 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - java.util.List - getCidrBlocksList(); - /** - * - * - *
-   * cidr_blocks define up to 50 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock getCidrBlocks(int index); - /** - * - * - *
-   * cidr_blocks define up to 50 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - int getCidrBlocksCount(); - /** - * - * - *
-   * cidr_blocks define up to 50 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - java.util.List< - ? extends com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder> - getCidrBlocksOrBuilderList(); - /** - * - * - *
-   * cidr_blocks define up to 50 external networks that could access
-   * Kubernetes master through HTTPS.
-   * 
- * - * repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * - */ - com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder getCidrBlocksOrBuilder( - int index); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraint.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraint.java deleted file mode 100644 index fde85ff1..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraint.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Constraints applied to pods.
- * 
- * - * Protobuf type {@code google.container.v1.MaxPodsConstraint} - */ -public final class MaxPodsConstraint extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.MaxPodsConstraint) - MaxPodsConstraintOrBuilder { - private static final long serialVersionUID = 0L; - // Use MaxPodsConstraint.newBuilder() to construct. - private MaxPodsConstraint(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MaxPodsConstraint() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MaxPodsConstraint(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private MaxPodsConstraint( - 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: - { - maxPodsPerNode_ = input.readInt64(); - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaxPodsConstraint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaxPodsConstraint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MaxPodsConstraint.class, - com.google.container.v1.MaxPodsConstraint.Builder.class); - } - - public static final int MAX_PODS_PER_NODE_FIELD_NUMBER = 1; - private long maxPodsPerNode_; - /** - * - * - *
-   * Constraint enforced on the max num of pods per node.
-   * 
- * - * int64 max_pods_per_node = 1; - * - * @return The maxPodsPerNode. - */ - @java.lang.Override - public long getMaxPodsPerNode() { - return maxPodsPerNode_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (maxPodsPerNode_ != 0L) { - output.writeInt64(1, maxPodsPerNode_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxPodsPerNode_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, maxPodsPerNode_); - } - 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.container.v1.MaxPodsConstraint)) { - return super.equals(obj); - } - com.google.container.v1.MaxPodsConstraint other = - (com.google.container.v1.MaxPodsConstraint) obj; - - if (getMaxPodsPerNode() != other.getMaxPodsPerNode()) 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_PODS_PER_NODE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxPodsPerNode()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.MaxPodsConstraint parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MaxPodsConstraint parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MaxPodsConstraint parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MaxPodsConstraint parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MaxPodsConstraint parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.MaxPodsConstraint parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.MaxPodsConstraint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.MaxPodsConstraint parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.MaxPodsConstraint parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.MaxPodsConstraint parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.MaxPodsConstraint parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.MaxPodsConstraint parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.MaxPodsConstraint prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Constraints applied to pods.
-   * 
- * - * Protobuf type {@code google.container.v1.MaxPodsConstraint} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.MaxPodsConstraint) - com.google.container.v1.MaxPodsConstraintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaxPodsConstraint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaxPodsConstraint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.MaxPodsConstraint.class, - com.google.container.v1.MaxPodsConstraint.Builder.class); - } - - // Construct using com.google.container.v1.MaxPodsConstraint.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(); - maxPodsPerNode_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_MaxPodsConstraint_descriptor; - } - - @java.lang.Override - public com.google.container.v1.MaxPodsConstraint getDefaultInstanceForType() { - return com.google.container.v1.MaxPodsConstraint.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.MaxPodsConstraint build() { - com.google.container.v1.MaxPodsConstraint result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.MaxPodsConstraint buildPartial() { - com.google.container.v1.MaxPodsConstraint result = - new com.google.container.v1.MaxPodsConstraint(this); - result.maxPodsPerNode_ = maxPodsPerNode_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.MaxPodsConstraint) { - return mergeFrom((com.google.container.v1.MaxPodsConstraint) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.MaxPodsConstraint other) { - if (other == com.google.container.v1.MaxPodsConstraint.getDefaultInstance()) return this; - if (other.getMaxPodsPerNode() != 0L) { - setMaxPodsPerNode(other.getMaxPodsPerNode()); - } - 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.container.v1.MaxPodsConstraint parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.MaxPodsConstraint) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private long maxPodsPerNode_; - /** - * - * - *
-     * Constraint enforced on the max num of pods per node.
-     * 
- * - * int64 max_pods_per_node = 1; - * - * @return The maxPodsPerNode. - */ - @java.lang.Override - public long getMaxPodsPerNode() { - return maxPodsPerNode_; - } - /** - * - * - *
-     * Constraint enforced on the max num of pods per node.
-     * 
- * - * int64 max_pods_per_node = 1; - * - * @param value The maxPodsPerNode to set. - * @return This builder for chaining. - */ - public Builder setMaxPodsPerNode(long value) { - - maxPodsPerNode_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Constraint enforced on the max num of pods per node.
-     * 
- * - * int64 max_pods_per_node = 1; - * - * @return This builder for chaining. - */ - public Builder clearMaxPodsPerNode() { - - maxPodsPerNode_ = 0L; - 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.container.v1.MaxPodsConstraint) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.MaxPodsConstraint) - private static final com.google.container.v1.MaxPodsConstraint DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.MaxPodsConstraint(); - } - - public static com.google.container.v1.MaxPodsConstraint getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MaxPodsConstraint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MaxPodsConstraint(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.container.v1.MaxPodsConstraint getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraintOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraintOrBuilder.java deleted file mode 100644 index 4a616a66..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraintOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface MaxPodsConstraintOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.MaxPodsConstraint) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Constraint enforced on the max num of pods per node.
-   * 
- * - * int64 max_pods_per_node = 1; - * - * @return The maxPodsPerNode. - */ - long getMaxPodsPerNode(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java deleted file mode 100644 index f0198a19..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java +++ /dev/null @@ -1,1261 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * NetworkConfig reports the relative names of network & subnetwork.
- * 
- * - * Protobuf type {@code google.container.v1.NetworkConfig} - */ -public final class NetworkConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NetworkConfig) - NetworkConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use NetworkConfig.newBuilder() to construct. - private NetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NetworkConfig() { - network_ = ""; - subnetwork_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NetworkConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private NetworkConfig( - 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(); - - network_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - subnetwork_ = s; - break; - } - case 40: - { - enableIntraNodeVisibility_ = input.readBool(); - break; - } - case 58: - { - com.google.container.v1.DefaultSnatStatus.Builder subBuilder = null; - if (defaultSnatStatus_ != null) { - subBuilder = defaultSnatStatus_.toBuilder(); - } - defaultSnatStatus_ = - input.readMessage( - com.google.container.v1.DefaultSnatStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(defaultSnatStatus_); - defaultSnatStatus_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NetworkConfig.class, - com.google.container.v1.NetworkConfig.Builder.class); - } - - public static final int NETWORK_FIELD_NUMBER = 1; - private volatile java.lang.Object network_; - /** - * - * - *
-   * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-   * to which the cluster is connected. Example:
-   * projects/my-project/global/networks/my-network
-   * 
- * - * string network = 1; - * - * @return The network. - */ - @java.lang.Override - public java.lang.String getNetwork() { - java.lang.Object 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(); - network_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-   * to which the cluster is connected. Example:
-   * projects/my-project/global/networks/my-network
-   * 
- * - * string network = 1; - * - * @return The bytes for network. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUBNETWORK_FIELD_NUMBER = 2; - private volatile java.lang.Object subnetwork_; - /** - * - * - *
-   * Output only. The relative name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-   * cluster is connected. Example:
-   * projects/my-project/regions/us-central1/subnetworks/my-subnet
-   * 
- * - * string subnetwork = 2; - * - * @return The subnetwork. - */ - @java.lang.Override - public java.lang.String getSubnetwork() { - java.lang.Object ref = subnetwork_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetwork_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The relative name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-   * cluster is connected. Example:
-   * projects/my-project/regions/us-central1/subnetworks/my-subnet
-   * 
- * - * string subnetwork = 2; - * - * @return The bytes for subnetwork. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSubnetworkBytes() { - java.lang.Object ref = subnetwork_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - subnetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENABLE_INTRA_NODE_VISIBILITY_FIELD_NUMBER = 5; - private boolean enableIntraNodeVisibility_; - /** - * - * - *
-   * Whether Intra-node visibility is enabled for this cluster.
-   * This makes same node pod to pod traffic visible for VPC network.
-   * 
- * - * bool enable_intra_node_visibility = 5; - * - * @return The enableIntraNodeVisibility. - */ - @java.lang.Override - public boolean getEnableIntraNodeVisibility() { - return enableIntraNodeVisibility_; - } - - public static final int DEFAULT_SNAT_STATUS_FIELD_NUMBER = 7; - private com.google.container.v1.DefaultSnatStatus defaultSnatStatus_; - /** - * - * - *
-   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-   * will be disabled when default_snat_status is disabled. When disabled is set
-   * to false, default IP masquerade rules will be applied to the nodes to
-   * prevent sNAT on cluster internal traffic.
-   * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - * - * @return Whether the defaultSnatStatus field is set. - */ - @java.lang.Override - public boolean hasDefaultSnatStatus() { - return defaultSnatStatus_ != null; - } - /** - * - * - *
-   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-   * will be disabled when default_snat_status is disabled. When disabled is set
-   * to false, default IP masquerade rules will be applied to the nodes to
-   * prevent sNAT on cluster internal traffic.
-   * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - * - * @return The defaultSnatStatus. - */ - @java.lang.Override - public com.google.container.v1.DefaultSnatStatus getDefaultSnatStatus() { - return defaultSnatStatus_ == null - ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() - : defaultSnatStatus_; - } - /** - * - * - *
-   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-   * will be disabled when default_snat_status is disabled. When disabled is set
-   * to false, default IP masquerade rules will be applied to the nodes to
-   * prevent sNAT on cluster internal traffic.
-   * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - @java.lang.Override - public com.google.container.v1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder() { - return getDefaultSnatStatus(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNetworkBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_); - } - if (!getSubnetworkBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnetwork_); - } - if (enableIntraNodeVisibility_ != false) { - output.writeBool(5, enableIntraNodeVisibility_); - } - if (defaultSnatStatus_ != null) { - output.writeMessage(7, getDefaultSnatStatus()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNetworkBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_); - } - if (!getSubnetworkBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnetwork_); - } - if (enableIntraNodeVisibility_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, enableIntraNodeVisibility_); - } - if (defaultSnatStatus_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDefaultSnatStatus()); - } - 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.container.v1.NetworkConfig)) { - return super.equals(obj); - } - com.google.container.v1.NetworkConfig other = (com.google.container.v1.NetworkConfig) obj; - - if (!getNetwork().equals(other.getNetwork())) return false; - if (!getSubnetwork().equals(other.getSubnetwork())) return false; - if (getEnableIntraNodeVisibility() != other.getEnableIntraNodeVisibility()) return false; - if (hasDefaultSnatStatus() != other.hasDefaultSnatStatus()) return false; - if (hasDefaultSnatStatus()) { - if (!getDefaultSnatStatus().equals(other.getDefaultSnatStatus())) 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) + NETWORK_FIELD_NUMBER; - hash = (53 * hash) + getNetwork().hashCode(); - hash = (37 * hash) + SUBNETWORK_FIELD_NUMBER; - hash = (53 * hash) + getSubnetwork().hashCode(); - hash = (37 * hash) + ENABLE_INTRA_NODE_VISIBILITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableIntraNodeVisibility()); - if (hasDefaultSnatStatus()) { - hash = (37 * hash) + DEFAULT_SNAT_STATUS_FIELD_NUMBER; - hash = (53 * hash) + getDefaultSnatStatus().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NetworkConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NetworkConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NetworkConfig parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NetworkConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NetworkConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NetworkConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NetworkConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NetworkConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NetworkConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NetworkConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NetworkConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NetworkConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * NetworkConfig reports the relative names of network & subnetwork.
-   * 
- * - * Protobuf type {@code google.container.v1.NetworkConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NetworkConfig) - com.google.container.v1.NetworkConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NetworkConfig.class, - com.google.container.v1.NetworkConfig.Builder.class); - } - - // Construct using com.google.container.v1.NetworkConfig.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(); - network_ = ""; - - subnetwork_ = ""; - - enableIntraNodeVisibility_ = false; - - if (defaultSnatStatusBuilder_ == null) { - defaultSnatStatus_ = null; - } else { - defaultSnatStatus_ = null; - defaultSnatStatusBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NetworkConfig getDefaultInstanceForType() { - return com.google.container.v1.NetworkConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NetworkConfig build() { - com.google.container.v1.NetworkConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NetworkConfig buildPartial() { - com.google.container.v1.NetworkConfig result = - new com.google.container.v1.NetworkConfig(this); - result.network_ = network_; - result.subnetwork_ = subnetwork_; - result.enableIntraNodeVisibility_ = enableIntraNodeVisibility_; - if (defaultSnatStatusBuilder_ == null) { - result.defaultSnatStatus_ = defaultSnatStatus_; - } else { - result.defaultSnatStatus_ = defaultSnatStatusBuilder_.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.container.v1.NetworkConfig) { - return mergeFrom((com.google.container.v1.NetworkConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NetworkConfig other) { - if (other == com.google.container.v1.NetworkConfig.getDefaultInstance()) return this; - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - onChanged(); - } - if (!other.getSubnetwork().isEmpty()) { - subnetwork_ = other.subnetwork_; - onChanged(); - } - if (other.getEnableIntraNodeVisibility() != false) { - setEnableIntraNodeVisibility(other.getEnableIntraNodeVisibility()); - } - if (other.hasDefaultSnatStatus()) { - mergeDefaultSnatStatus(other.getDefaultSnatStatus()); - } - 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.container.v1.NetworkConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.NetworkConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object network_ = ""; - /** - * - * - *
-     * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. Example:
-     * projects/my-project/global/networks/my-network
-     * 
- * - * string network = 1; - * - * @return The network. - */ - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - network_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. Example:
-     * projects/my-project/global/networks/my-network
-     * 
- * - * string network = 1; - * - * @return The bytes for network. - */ - public com.google.protobuf.ByteString getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. Example:
-     * projects/my-project/global/networks/my-network
-     * 
- * - * string network = 1; - * - * @param value The network to set. - * @return This builder for chaining. - */ - public Builder setNetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - network_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. Example:
-     * projects/my-project/global/networks/my-network
-     * 
- * - * string network = 1; - * - * @return This builder for chaining. - */ - public Builder clearNetwork() { - - network_ = getDefaultInstance().getNetwork(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The relative name of the Google Compute Engine
-     * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-     * to which the cluster is connected. Example:
-     * projects/my-project/global/networks/my-network
-     * 
- * - * string network = 1; - * - * @param value The bytes for network to set. - * @return This builder for chaining. - */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - network_ = value; - onChanged(); - return this; - } - - private java.lang.Object subnetwork_ = ""; - /** - * - * - *
-     * Output only. The relative name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-     * cluster is connected. Example:
-     * projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 2; - * - * @return The subnetwork. - */ - public java.lang.String getSubnetwork() { - java.lang.Object ref = subnetwork_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetwork_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The relative name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-     * cluster is connected. Example:
-     * projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 2; - * - * @return The bytes for subnetwork. - */ - public com.google.protobuf.ByteString getSubnetworkBytes() { - java.lang.Object ref = subnetwork_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - subnetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The relative name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-     * cluster is connected. Example:
-     * projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 2; - * - * @param value The subnetwork to set. - * @return This builder for chaining. - */ - public Builder setSubnetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - subnetwork_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The relative name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-     * cluster is connected. Example:
-     * projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 2; - * - * @return This builder for chaining. - */ - public Builder clearSubnetwork() { - - subnetwork_ = getDefaultInstance().getSubnetwork(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The relative name of the Google Compute Engine
-     * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-     * cluster is connected. Example:
-     * projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 2; - * - * @param value The bytes for subnetwork to set. - * @return This builder for chaining. - */ - public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - subnetwork_ = value; - onChanged(); - return this; - } - - private boolean enableIntraNodeVisibility_; - /** - * - * - *
-     * Whether Intra-node visibility is enabled for this cluster.
-     * This makes same node pod to pod traffic visible for VPC network.
-     * 
- * - * bool enable_intra_node_visibility = 5; - * - * @return The enableIntraNodeVisibility. - */ - @java.lang.Override - public boolean getEnableIntraNodeVisibility() { - return enableIntraNodeVisibility_; - } - /** - * - * - *
-     * Whether Intra-node visibility is enabled for this cluster.
-     * This makes same node pod to pod traffic visible for VPC network.
-     * 
- * - * bool enable_intra_node_visibility = 5; - * - * @param value The enableIntraNodeVisibility to set. - * @return This builder for chaining. - */ - public Builder setEnableIntraNodeVisibility(boolean value) { - - enableIntraNodeVisibility_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether Intra-node visibility is enabled for this cluster.
-     * This makes same node pod to pod traffic visible for VPC network.
-     * 
- * - * bool enable_intra_node_visibility = 5; - * - * @return This builder for chaining. - */ - public Builder clearEnableIntraNodeVisibility() { - - enableIntraNodeVisibility_ = false; - onChanged(); - return this; - } - - private com.google.container.v1.DefaultSnatStatus defaultSnatStatus_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DefaultSnatStatus, - com.google.container.v1.DefaultSnatStatus.Builder, - com.google.container.v1.DefaultSnatStatusOrBuilder> - defaultSnatStatusBuilder_; - /** - * - * - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - * - * @return Whether the defaultSnatStatus field is set. - */ - public boolean hasDefaultSnatStatus() { - return defaultSnatStatusBuilder_ != null || defaultSnatStatus_ != null; - } - /** - * - * - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - * - * @return The defaultSnatStatus. - */ - public com.google.container.v1.DefaultSnatStatus getDefaultSnatStatus() { - if (defaultSnatStatusBuilder_ == null) { - return defaultSnatStatus_ == null - ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() - : defaultSnatStatus_; - } else { - return defaultSnatStatusBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - public Builder setDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { - if (defaultSnatStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - defaultSnatStatus_ = value; - onChanged(); - } else { - defaultSnatStatusBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - public Builder setDefaultSnatStatus( - com.google.container.v1.DefaultSnatStatus.Builder builderForValue) { - if (defaultSnatStatusBuilder_ == null) { - defaultSnatStatus_ = builderForValue.build(); - onChanged(); - } else { - defaultSnatStatusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - public Builder mergeDefaultSnatStatus(com.google.container.v1.DefaultSnatStatus value) { - if (defaultSnatStatusBuilder_ == null) { - if (defaultSnatStatus_ != null) { - defaultSnatStatus_ = - com.google.container.v1.DefaultSnatStatus.newBuilder(defaultSnatStatus_) - .mergeFrom(value) - .buildPartial(); - } else { - defaultSnatStatus_ = value; - } - onChanged(); - } else { - defaultSnatStatusBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - public Builder clearDefaultSnatStatus() { - if (defaultSnatStatusBuilder_ == null) { - defaultSnatStatus_ = null; - onChanged(); - } else { - defaultSnatStatus_ = null; - defaultSnatStatusBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - public com.google.container.v1.DefaultSnatStatus.Builder getDefaultSnatStatusBuilder() { - - onChanged(); - return getDefaultSnatStatusFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - public com.google.container.v1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder() { - if (defaultSnatStatusBuilder_ != null) { - return defaultSnatStatusBuilder_.getMessageOrBuilder(); - } else { - return defaultSnatStatus_ == null - ? com.google.container.v1.DefaultSnatStatus.getDefaultInstance() - : defaultSnatStatus_; - } - } - /** - * - * - *
-     * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-     * will be disabled when default_snat_status is disabled. When disabled is set
-     * to false, default IP masquerade rules will be applied to the nodes to
-     * prevent sNAT on cluster internal traffic.
-     * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DefaultSnatStatus, - com.google.container.v1.DefaultSnatStatus.Builder, - com.google.container.v1.DefaultSnatStatusOrBuilder> - getDefaultSnatStatusFieldBuilder() { - if (defaultSnatStatusBuilder_ == null) { - defaultSnatStatusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.DefaultSnatStatus, - com.google.container.v1.DefaultSnatStatus.Builder, - com.google.container.v1.DefaultSnatStatusOrBuilder>( - getDefaultSnatStatus(), getParentForChildren(), isClean()); - defaultSnatStatus_ = null; - } - return defaultSnatStatusBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NetworkConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NetworkConfig) - private static final com.google.container.v1.NetworkConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NetworkConfig(); - } - - public static com.google.container.v1.NetworkConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NetworkConfig(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.container.v1.NetworkConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java deleted file mode 100644 index 28a283cd..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface NetworkConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NetworkConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-   * to which the cluster is connected. Example:
-   * projects/my-project/global/networks/my-network
-   * 
- * - * string network = 1; - * - * @return The network. - */ - java.lang.String getNetwork(); - /** - * - * - *
-   * Output only. The relative name of the Google Compute Engine
-   * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks)
-   * to which the cluster is connected. Example:
-   * projects/my-project/global/networks/my-network
-   * 
- * - * string network = 1; - * - * @return The bytes for network. - */ - com.google.protobuf.ByteString getNetworkBytes(); - - /** - * - * - *
-   * Output only. The relative name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-   * cluster is connected. Example:
-   * projects/my-project/regions/us-central1/subnetworks/my-subnet
-   * 
- * - * string subnetwork = 2; - * - * @return The subnetwork. - */ - java.lang.String getSubnetwork(); - /** - * - * - *
-   * Output only. The relative name of the Google Compute Engine
-   * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the
-   * cluster is connected. Example:
-   * projects/my-project/regions/us-central1/subnetworks/my-subnet
-   * 
- * - * string subnetwork = 2; - * - * @return The bytes for subnetwork. - */ - com.google.protobuf.ByteString getSubnetworkBytes(); - - /** - * - * - *
-   * Whether Intra-node visibility is enabled for this cluster.
-   * This makes same node pod to pod traffic visible for VPC network.
-   * 
- * - * bool enable_intra_node_visibility = 5; - * - * @return The enableIntraNodeVisibility. - */ - boolean getEnableIntraNodeVisibility(); - - /** - * - * - *
-   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-   * will be disabled when default_snat_status is disabled. When disabled is set
-   * to false, default IP masquerade rules will be applied to the nodes to
-   * prevent sNAT on cluster internal traffic.
-   * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - * - * @return Whether the defaultSnatStatus field is set. - */ - boolean hasDefaultSnatStatus(); - /** - * - * - *
-   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-   * will be disabled when default_snat_status is disabled. When disabled is set
-   * to false, default IP masquerade rules will be applied to the nodes to
-   * prevent sNAT on cluster internal traffic.
-   * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - * - * @return The defaultSnatStatus. - */ - com.google.container.v1.DefaultSnatStatus getDefaultSnatStatus(); - /** - * - * - *
-   * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
-   * will be disabled when default_snat_status is disabled. When disabled is set
-   * to false, default IP masquerade rules will be applied to the nodes to
-   * prevent sNAT on cluster internal traffic.
-   * 
- * - * .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - com.google.container.v1.DefaultSnatStatusOrBuilder getDefaultSnatStatusOrBuilder(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicy.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicy.java deleted file mode 100644 index 9986ce0e..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicy.java +++ /dev/null @@ -1,832 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Configuration options for the NetworkPolicy feature.
- * https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
- * 
- * - * Protobuf type {@code google.container.v1.NetworkPolicy} - */ -public final class NetworkPolicy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NetworkPolicy) - NetworkPolicyOrBuilder { - private static final long serialVersionUID = 0L; - // Use NetworkPolicy.newBuilder() to construct. - private NetworkPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NetworkPolicy() { - provider_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NetworkPolicy(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private NetworkPolicy( - 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(); - - provider_ = rawValue; - break; - } - case 16: - { - enabled_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NetworkPolicy.class, - com.google.container.v1.NetworkPolicy.Builder.class); - } - - /** - * - * - *
-   * Allowed Network Policy providers.
-   * 
- * - * Protobuf enum {@code google.container.v1.NetworkPolicy.Provider} - */ - public enum Provider implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Not set
-     * 
- * - * PROVIDER_UNSPECIFIED = 0; - */ - PROVIDER_UNSPECIFIED(0), - /** - * - * - *
-     * Tigera (Calico Felix).
-     * 
- * - * CALICO = 1; - */ - CALICO(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Not set
-     * 
- * - * PROVIDER_UNSPECIFIED = 0; - */ - public static final int PROVIDER_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Tigera (Calico Felix).
-     * 
- * - * CALICO = 1; - */ - public static final int CALICO_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 Provider 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 Provider forNumber(int value) { - switch (value) { - case 0: - return PROVIDER_UNSPECIFIED; - case 1: - return CALICO; - 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 Provider findValueByNumber(int number) { - return Provider.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.container.v1.NetworkPolicy.getDescriptor().getEnumTypes().get(0); - } - - private static final Provider[] VALUES = values(); - - public static Provider 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 Provider(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.NetworkPolicy.Provider) - } - - public static final int PROVIDER_FIELD_NUMBER = 1; - private int provider_; - /** - * - * - *
-   * The selected network policy provider.
-   * 
- * - * .google.container.v1.NetworkPolicy.Provider provider = 1; - * - * @return The enum numeric value on the wire for provider. - */ - @java.lang.Override - public int getProviderValue() { - return provider_; - } - /** - * - * - *
-   * The selected network policy provider.
-   * 
- * - * .google.container.v1.NetworkPolicy.Provider provider = 1; - * - * @return The provider. - */ - @java.lang.Override - public com.google.container.v1.NetworkPolicy.Provider getProvider() { - @SuppressWarnings("deprecation") - com.google.container.v1.NetworkPolicy.Provider result = - com.google.container.v1.NetworkPolicy.Provider.valueOf(provider_); - return result == null ? com.google.container.v1.NetworkPolicy.Provider.UNRECOGNIZED : result; - } - - public static final int ENABLED_FIELD_NUMBER = 2; - private boolean enabled_; - /** - * - * - *
-   * Whether network policy is enabled on the cluster.
-   * 
- * - * bool enabled = 2; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (provider_ - != com.google.container.v1.NetworkPolicy.Provider.PROVIDER_UNSPECIFIED.getNumber()) { - output.writeEnum(1, provider_); - } - if (enabled_ != false) { - output.writeBool(2, enabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (provider_ - != com.google.container.v1.NetworkPolicy.Provider.PROVIDER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, provider_); - } - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enabled_); - } - 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.container.v1.NetworkPolicy)) { - return super.equals(obj); - } - com.google.container.v1.NetworkPolicy other = (com.google.container.v1.NetworkPolicy) obj; - - if (provider_ != other.provider_) return false; - if (getEnabled() != other.getEnabled()) 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) + PROVIDER_FIELD_NUMBER; - hash = (53 * hash) + provider_; - hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NetworkPolicy parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NetworkPolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NetworkPolicy parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NetworkPolicy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NetworkPolicy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NetworkPolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NetworkPolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NetworkPolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NetworkPolicy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NetworkPolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NetworkPolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NetworkPolicy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NetworkPolicy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 options for the NetworkPolicy feature.
-   * https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
-   * 
- * - * Protobuf type {@code google.container.v1.NetworkPolicy} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NetworkPolicy) - com.google.container.v1.NetworkPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NetworkPolicy.class, - com.google.container.v1.NetworkPolicy.Builder.class); - } - - // Construct using com.google.container.v1.NetworkPolicy.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(); - provider_ = 0; - - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkPolicy_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NetworkPolicy getDefaultInstanceForType() { - return com.google.container.v1.NetworkPolicy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NetworkPolicy build() { - com.google.container.v1.NetworkPolicy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NetworkPolicy buildPartial() { - com.google.container.v1.NetworkPolicy result = - new com.google.container.v1.NetworkPolicy(this); - result.provider_ = provider_; - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NetworkPolicy) { - return mergeFrom((com.google.container.v1.NetworkPolicy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NetworkPolicy other) { - if (other == com.google.container.v1.NetworkPolicy.getDefaultInstance()) return this; - if (other.provider_ != 0) { - setProviderValue(other.getProviderValue()); - } - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - 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.container.v1.NetworkPolicy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.NetworkPolicy) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int provider_ = 0; - /** - * - * - *
-     * The selected network policy provider.
-     * 
- * - * .google.container.v1.NetworkPolicy.Provider provider = 1; - * - * @return The enum numeric value on the wire for provider. - */ - @java.lang.Override - public int getProviderValue() { - return provider_; - } - /** - * - * - *
-     * The selected network policy provider.
-     * 
- * - * .google.container.v1.NetworkPolicy.Provider provider = 1; - * - * @param value The enum numeric value on the wire for provider to set. - * @return This builder for chaining. - */ - public Builder setProviderValue(int value) { - - provider_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The selected network policy provider.
-     * 
- * - * .google.container.v1.NetworkPolicy.Provider provider = 1; - * - * @return The provider. - */ - @java.lang.Override - public com.google.container.v1.NetworkPolicy.Provider getProvider() { - @SuppressWarnings("deprecation") - com.google.container.v1.NetworkPolicy.Provider result = - com.google.container.v1.NetworkPolicy.Provider.valueOf(provider_); - return result == null ? com.google.container.v1.NetworkPolicy.Provider.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The selected network policy provider.
-     * 
- * - * .google.container.v1.NetworkPolicy.Provider provider = 1; - * - * @param value The provider to set. - * @return This builder for chaining. - */ - public Builder setProvider(com.google.container.v1.NetworkPolicy.Provider value) { - if (value == null) { - throw new NullPointerException(); - } - - provider_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The selected network policy provider.
-     * 
- * - * .google.container.v1.NetworkPolicy.Provider provider = 1; - * - * @return This builder for chaining. - */ - public Builder clearProvider() { - - provider_ = 0; - onChanged(); - return this; - } - - private boolean enabled_; - /** - * - * - *
-     * Whether network policy is enabled on the cluster.
-     * 
- * - * bool enabled = 2; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether network policy is enabled on the cluster.
-     * 
- * - * bool enabled = 2; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether network policy is enabled on the cluster.
-     * 
- * - * bool enabled = 2; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = 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.container.v1.NetworkPolicy) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NetworkPolicy) - private static final com.google.container.v1.NetworkPolicy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NetworkPolicy(); - } - - public static com.google.container.v1.NetworkPolicy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NetworkPolicy(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.container.v1.NetworkPolicy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfig.java deleted file mode 100644 index 0349de6a..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfig.java +++ /dev/null @@ -1,548 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Configuration for NetworkPolicy. This only tracks whether the addon
- * is enabled or not on the Master, it does not track whether network policy
- * is enabled for the nodes.
- * 
- * - * Protobuf type {@code google.container.v1.NetworkPolicyConfig} - */ -public final class NetworkPolicyConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NetworkPolicyConfig) - NetworkPolicyConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use NetworkPolicyConfig.newBuilder() to construct. - private NetworkPolicyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NetworkPolicyConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NetworkPolicyConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private NetworkPolicyConfig( - 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: - { - disabled_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkPolicyConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkPolicyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NetworkPolicyConfig.class, - com.google.container.v1.NetworkPolicyConfig.Builder.class); - } - - public static final int DISABLED_FIELD_NUMBER = 1; - private boolean disabled_; - /** - * - * - *
-   * Whether NetworkPolicy is enabled for this cluster.
-   * 
- * - * bool disabled = 1; - * - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (disabled_ != false) { - output.writeBool(1, disabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (disabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disabled_); - } - 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.container.v1.NetworkPolicyConfig)) { - return super.equals(obj); - } - com.google.container.v1.NetworkPolicyConfig other = - (com.google.container.v1.NetworkPolicyConfig) obj; - - if (getDisabled() != other.getDisabled()) 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) + DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NetworkPolicyConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NetworkPolicyConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NetworkPolicyConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NetworkPolicyConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NetworkPolicyConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NetworkPolicyConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NetworkPolicyConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NetworkPolicyConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NetworkPolicyConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NetworkPolicyConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NetworkPolicyConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NetworkPolicyConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NetworkPolicyConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 NetworkPolicy. This only tracks whether the addon
-   * is enabled or not on the Master, it does not track whether network policy
-   * is enabled for the nodes.
-   * 
- * - * Protobuf type {@code google.container.v1.NetworkPolicyConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NetworkPolicyConfig) - com.google.container.v1.NetworkPolicyConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkPolicyConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkPolicyConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NetworkPolicyConfig.class, - com.google.container.v1.NetworkPolicyConfig.Builder.class); - } - - // Construct using com.google.container.v1.NetworkPolicyConfig.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(); - disabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NetworkPolicyConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NetworkPolicyConfig getDefaultInstanceForType() { - return com.google.container.v1.NetworkPolicyConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NetworkPolicyConfig build() { - com.google.container.v1.NetworkPolicyConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NetworkPolicyConfig buildPartial() { - com.google.container.v1.NetworkPolicyConfig result = - new com.google.container.v1.NetworkPolicyConfig(this); - result.disabled_ = disabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NetworkPolicyConfig) { - return mergeFrom((com.google.container.v1.NetworkPolicyConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NetworkPolicyConfig other) { - if (other == com.google.container.v1.NetworkPolicyConfig.getDefaultInstance()) return this; - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - 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.container.v1.NetworkPolicyConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.NetworkPolicyConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean disabled_; - /** - * - * - *
-     * Whether NetworkPolicy is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - * - * - *
-     * Whether NetworkPolicy is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether NetworkPolicy is enabled for this cluster.
-     * 
- * - * bool disabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisabled() { - - disabled_ = 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.container.v1.NetworkPolicyConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NetworkPolicyConfig) - private static final com.google.container.v1.NetworkPolicyConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NetworkPolicyConfig(); - } - - public static com.google.container.v1.NetworkPolicyConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NetworkPolicyConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NetworkPolicyConfig(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.container.v1.NetworkPolicyConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfigOrBuilder.java deleted file mode 100644 index 416b080b..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfigOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface NetworkPolicyConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NetworkPolicyConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether NetworkPolicy is enabled for this cluster.
-   * 
- * - * bool disabled = 1; - * - * @return The disabled. - */ - boolean getDisabled(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyOrBuilder.java deleted file mode 100644 index b0040af0..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyOrBuilder.java +++ /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 - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface NetworkPolicyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NetworkPolicy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The selected network policy provider.
-   * 
- * - * .google.container.v1.NetworkPolicy.Provider provider = 1; - * - * @return The enum numeric value on the wire for provider. - */ - int getProviderValue(); - /** - * - * - *
-   * The selected network policy provider.
-   * 
- * - * .google.container.v1.NetworkPolicy.Provider provider = 1; - * - * @return The provider. - */ - com.google.container.v1.NetworkPolicy.Provider getProvider(); - - /** - * - * - *
-   * Whether network policy is enabled on the cluster.
-   * 
- * - * bool enabled = 2; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java deleted file mode 100644 index 85c0b973..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java +++ /dev/null @@ -1,6131 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Parameters that describe the nodes in a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.NodeConfig} - */ -public final class NodeConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodeConfig) - NodeConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeConfig.newBuilder() to construct. - private NodeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodeConfig() { - machineType_ = ""; - oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - serviceAccount_ = ""; - imageType_ = ""; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - accelerators_ = java.util.Collections.emptyList(); - diskType_ = ""; - minCpuPlatform_ = ""; - taints_ = java.util.Collections.emptyList(); - nodeGroup_ = ""; - bootDiskKmsKey_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodeConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private NodeConfig( - 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 16: - { - diskSizeGb_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - oauthScopes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - oauthScopes_.add(s); - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - metadata_ = - com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - imageType_ = s; - break; - } - case 50: - { - 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 56: - { - localSsdCount_ = input.readInt32(); - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - tags_.add(s); - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - serviceAccount_ = s; - break; - } - case 80: - { - preemptible_ = input.readBool(); - break; - } - case 90: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - accelerators_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - accelerators_.add( - input.readMessage( - com.google.container.v1.AcceleratorConfig.parser(), extensionRegistry)); - break; - } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - - diskType_ = s; - break; - } - case 106: - { - java.lang.String s = input.readStringRequireUtf8(); - - minCpuPlatform_ = s; - break; - } - case 114: - { - com.google.container.v1.WorkloadMetadataConfig.Builder subBuilder = null; - if (workloadMetadataConfig_ != null) { - subBuilder = workloadMetadataConfig_.toBuilder(); - } - workloadMetadataConfig_ = - input.readMessage( - com.google.container.v1.WorkloadMetadataConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workloadMetadataConfig_); - workloadMetadataConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 122: - { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - taints_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - taints_.add( - input.readMessage(com.google.container.v1.NodeTaint.parser(), extensionRegistry)); - break; - } - case 138: - { - com.google.container.v1.SandboxConfig.Builder subBuilder = null; - if (sandboxConfig_ != null) { - subBuilder = sandboxConfig_.toBuilder(); - } - sandboxConfig_ = - input.readMessage( - com.google.container.v1.SandboxConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sandboxConfig_); - sandboxConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 146: - { - java.lang.String s = input.readStringRequireUtf8(); - - nodeGroup_ = s; - break; - } - case 154: - { - com.google.container.v1.ReservationAffinity.Builder subBuilder = null; - if (reservationAffinity_ != null) { - subBuilder = reservationAffinity_.toBuilder(); - } - reservationAffinity_ = - input.readMessage( - com.google.container.v1.ReservationAffinity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reservationAffinity_); - reservationAffinity_ = subBuilder.buildPartial(); - } - - break; - } - case 162: - { - com.google.container.v1.ShieldedInstanceConfig.Builder subBuilder = null; - if (shieldedInstanceConfig_ != null) { - subBuilder = shieldedInstanceConfig_.toBuilder(); - } - shieldedInstanceConfig_ = - input.readMessage( - com.google.container.v1.ShieldedInstanceConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(shieldedInstanceConfig_); - shieldedInstanceConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 186: - { - java.lang.String s = input.readStringRequireUtf8(); - - bootDiskKmsKey_ = 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)) { - oauthScopes_ = oauthScopes_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - tags_ = tags_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - accelerators_ = java.util.Collections.unmodifiableList(accelerators_); - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - taints_ = java.util.Collections.unmodifiableList(taints_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetMetadata(); - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeConfig.class, - com.google.container.v1.NodeConfig.Builder.class); - } - - public static final int MACHINE_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object machineType_; - /** - * - * - *
-   * The name of a Google Compute Engine [machine
-   * type](https://cloud.google.com/compute/docs/machine-types)
-   * If unspecified, the default machine type is `e2-medium`.
-   * 
- * - * string machine_type = 1; - * - * @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; - } - } - /** - * - * - *
-   * The name of a Google Compute Engine [machine
-   * type](https://cloud.google.com/compute/docs/machine-types)
-   * If unspecified, the default machine type is `e2-medium`.
-   * 
- * - * string machine_type = 1; - * - * @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 DISK_SIZE_GB_FIELD_NUMBER = 2; - private int diskSizeGb_; - /** - * - * - *
-   * Size of the disk attached to each node, specified in GB.
-   * The smallest allowed disk size is 10GB.
-   * If unspecified, the default disk size is 100GB.
-   * 
- * - * int32 disk_size_gb = 2; - * - * @return The diskSizeGb. - */ - @java.lang.Override - public int getDiskSizeGb() { - return diskSizeGb_; - } - - public static final int OAUTH_SCOPES_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList oauthScopes_; - /** - * - * - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 3; - * - * @return A list containing the oauthScopes. - */ - public com.google.protobuf.ProtocolStringList getOauthScopesList() { - return oauthScopes_; - } - /** - * - * - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 3; - * - * @return The count of oauthScopes. - */ - public int getOauthScopesCount() { - return oauthScopes_.size(); - } - /** - * - * - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 3; - * - * @param index The index of the element to return. - * @return The oauthScopes at the given index. - */ - public java.lang.String getOauthScopes(int index) { - return oauthScopes_.get(index); - } - /** - * - * - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 3; - * - * @param index The index of the value to return. - * @return The bytes of the oauthScopes at the given index. - */ - public com.google.protobuf.ByteString getOauthScopesBytes(int index) { - return oauthScopes_.getByteString(index); - } - - public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 9; - private volatile java.lang.Object serviceAccount_; - /** - * - * - *
-   * The Google Cloud Platform Service Account to be used by the node VMs.
-   * Specify the email address of the Service Account; otherwise, if no Service
-   * Account is specified, the "default" service account is used.
-   * 
- * - * string service_account = 9; - * - * @return The serviceAccount. - */ - @java.lang.Override - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } - } - /** - * - * - *
-   * The Google Cloud Platform Service Account to be used by the node VMs.
-   * Specify the email address of the Service Account; otherwise, if no Service
-   * Account is specified, the "default" service account is used.
-   * 
- * - * string service_account = 9; - * - * @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 METADATA_FIELD_NUMBER = 4; - - private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeConfig_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 metadata key/value pairs assigned to instances in the cluster.
-   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
-   * in length. These are reflected as part of a URL in the metadata server.
-   * Additionally, to avoid ambiguity, keys must not conflict with any other
-   * metadata keys for the project or be one of the reserved keys:
-   *  - "cluster-location"
-   *  - "cluster-name"
-   *  - "cluster-uid"
-   *  - "configure-sh"
-   *  - "containerd-configure-sh"
-   *  - "enable-os-login"
-   *  - "gci-ensure-gke-docker"
-   *  - "gci-metrics-enabled"
-   *  - "gci-update-strategy"
-   *  - "instance-template"
-   *  - "kube-env"
-   *  - "startup-script"
-   *  - "user-data"
-   *  - "disable-address-manager"
-   *  - "windows-startup-script-ps1"
-   *  - "common-psm1"
-   *  - "k8s-node-setup-psm1"
-   *  - "install-ssh-psm1"
-   *  - "user-profile-psm1"
-   * The following keys are reserved for Windows nodes:
-   *  - "serial-port-logging-enable"
-   * Values are free-form strings, and only have meaning as interpreted by
-   * the image running in the instance. The only restriction placed on them is
-   * that each value's size must be less than or equal to 32 KB.
-   * The total size of all keys and values must be less than 512 KB.
-   * 
- * - * map<string, string> metadata = 4; - */ - @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 metadata key/value pairs assigned to instances in the cluster.
-   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
-   * in length. These are reflected as part of a URL in the metadata server.
-   * Additionally, to avoid ambiguity, keys must not conflict with any other
-   * metadata keys for the project or be one of the reserved keys:
-   *  - "cluster-location"
-   *  - "cluster-name"
-   *  - "cluster-uid"
-   *  - "configure-sh"
-   *  - "containerd-configure-sh"
-   *  - "enable-os-login"
-   *  - "gci-ensure-gke-docker"
-   *  - "gci-metrics-enabled"
-   *  - "gci-update-strategy"
-   *  - "instance-template"
-   *  - "kube-env"
-   *  - "startup-script"
-   *  - "user-data"
-   *  - "disable-address-manager"
-   *  - "windows-startup-script-ps1"
-   *  - "common-psm1"
-   *  - "k8s-node-setup-psm1"
-   *  - "install-ssh-psm1"
-   *  - "user-profile-psm1"
-   * The following keys are reserved for Windows nodes:
-   *  - "serial-port-logging-enable"
-   * Values are free-form strings, and only have meaning as interpreted by
-   * the image running in the instance. The only restriction placed on them is
-   * that each value's size must be less than or equal to 32 KB.
-   * The total size of all keys and values must be less than 512 KB.
-   * 
- * - * map<string, string> metadata = 4; - */ - @java.lang.Override - public java.util.Map getMetadataMap() { - return internalGetMetadata().getMap(); - } - /** - * - * - *
-   * The metadata key/value pairs assigned to instances in the cluster.
-   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
-   * in length. These are reflected as part of a URL in the metadata server.
-   * Additionally, to avoid ambiguity, keys must not conflict with any other
-   * metadata keys for the project or be one of the reserved keys:
-   *  - "cluster-location"
-   *  - "cluster-name"
-   *  - "cluster-uid"
-   *  - "configure-sh"
-   *  - "containerd-configure-sh"
-   *  - "enable-os-login"
-   *  - "gci-ensure-gke-docker"
-   *  - "gci-metrics-enabled"
-   *  - "gci-update-strategy"
-   *  - "instance-template"
-   *  - "kube-env"
-   *  - "startup-script"
-   *  - "user-data"
-   *  - "disable-address-manager"
-   *  - "windows-startup-script-ps1"
-   *  - "common-psm1"
-   *  - "k8s-node-setup-psm1"
-   *  - "install-ssh-psm1"
-   *  - "user-profile-psm1"
-   * The following keys are reserved for Windows nodes:
-   *  - "serial-port-logging-enable"
-   * Values are free-form strings, and only have meaning as interpreted by
-   * the image running in the instance. The only restriction placed on them is
-   * that each value's size must be less than or equal to 32 KB.
-   * The total size of all keys and values must be less than 512 KB.
-   * 
- * - * map<string, string> metadata = 4; - */ - @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 metadata key/value pairs assigned to instances in the cluster.
-   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
-   * in length. These are reflected as part of a URL in the metadata server.
-   * Additionally, to avoid ambiguity, keys must not conflict with any other
-   * metadata keys for the project or be one of the reserved keys:
-   *  - "cluster-location"
-   *  - "cluster-name"
-   *  - "cluster-uid"
-   *  - "configure-sh"
-   *  - "containerd-configure-sh"
-   *  - "enable-os-login"
-   *  - "gci-ensure-gke-docker"
-   *  - "gci-metrics-enabled"
-   *  - "gci-update-strategy"
-   *  - "instance-template"
-   *  - "kube-env"
-   *  - "startup-script"
-   *  - "user-data"
-   *  - "disable-address-manager"
-   *  - "windows-startup-script-ps1"
-   *  - "common-psm1"
-   *  - "k8s-node-setup-psm1"
-   *  - "install-ssh-psm1"
-   *  - "user-profile-psm1"
-   * The following keys are reserved for Windows nodes:
-   *  - "serial-port-logging-enable"
-   * Values are free-form strings, and only have meaning as interpreted by
-   * the image running in the instance. The only restriction placed on them is
-   * that each value's size must be less than or equal to 32 KB.
-   * The total size of all keys and values must be less than 512 KB.
-   * 
- * - * map<string, string> metadata = 4; - */ - @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 IMAGE_TYPE_FIELD_NUMBER = 5; - private volatile java.lang.Object imageType_; - /** - * - * - *
-   * The image type to use for this node. Note that for a given image type,
-   * the latest version of it will be used.
-   * 
- * - * string image_type = 5; - * - * @return The imageType. - */ - @java.lang.Override - public java.lang.String getImageType() { - java.lang.Object ref = imageType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - imageType_ = s; - return s; - } - } - /** - * - * - *
-   * The image type to use for this node. Note that for a given image type,
-   * the latest version of it will be used.
-   * 
- * - * string image_type = 5; - * - * @return The bytes for imageType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getImageTypeBytes() { - java.lang.Object ref = imageType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - imageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeConfig_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(); - } - /** - * - * - *
-   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-   * These will added in addition to any default label(s) that
-   * Kubernetes may apply to the node.
-   * In case of conflict in label keys, the applied set may differ depending on
-   * the Kubernetes version -- it's best to assume the behavior is undefined
-   * and conflicts should be avoided.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-   * 
- * - * map<string, string> labels = 6; - */ - @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(); - } - /** - * - * - *
-   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-   * These will added in addition to any default label(s) that
-   * Kubernetes may apply to the node.
-   * In case of conflict in label keys, the applied set may differ depending on
-   * the Kubernetes version -- it's best to assume the behavior is undefined
-   * and conflicts should be avoided.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-   * 
- * - * map<string, string> labels = 6; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-   * These will added in addition to any default label(s) that
-   * Kubernetes may apply to the node.
-   * In case of conflict in label keys, the applied set may differ depending on
-   * the Kubernetes version -- it's best to assume the behavior is undefined
-   * and conflicts should be avoided.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-   * 
- * - * map<string, string> labels = 6; - */ - @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; - } - /** - * - * - *
-   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-   * These will added in addition to any default label(s) that
-   * Kubernetes may apply to the node.
-   * In case of conflict in label keys, the applied set may differ depending on
-   * the Kubernetes version -- it's best to assume the behavior is undefined
-   * and conflicts should be avoided.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-   * 
- * - * map<string, string> labels = 6; - */ - @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 LOCAL_SSD_COUNT_FIELD_NUMBER = 7; - private int localSsdCount_; - /** - * - * - *
-   * The number of local SSD disks to be attached to the node.
-   * The limit for this value is dependent upon the maximum number of
-   * disks available on a machine per zone. See:
-   * https://cloud.google.com/compute/docs/disks/local-ssd
-   * for more information.
-   * 
- * - * int32 local_ssd_count = 7; - * - * @return The localSsdCount. - */ - @java.lang.Override - public int getLocalSsdCount() { - return localSsdCount_; - } - - public static final int TAGS_FIELD_NUMBER = 8; - private com.google.protobuf.LazyStringList tags_; - /** - * - * - *
-   * The list of instance tags applied to all nodes. Tags are used to identify
-   * valid sources or targets for network firewalls and are specified by
-   * the client during cluster or node pool creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * repeated string tags = 8; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - return tags_; - } - /** - * - * - *
-   * The list of instance tags applied to all nodes. Tags are used to identify
-   * valid sources or targets for network firewalls and are specified by
-   * the client during cluster or node pool creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * repeated string tags = 8; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * - * - *
-   * The list of instance tags applied to all nodes. Tags are used to identify
-   * valid sources or targets for network firewalls and are specified by
-   * the client during cluster or node pool creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * repeated string tags = 8; - * - * @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 list of instance tags applied to all nodes. Tags are used to identify
-   * valid sources or targets for network firewalls and are specified by
-   * the client during cluster or node pool creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * repeated string tags = 8; - * - * @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 PREEMPTIBLE_FIELD_NUMBER = 10; - private boolean preemptible_; - /** - * - * - *
-   * Whether the nodes are created as preemptible VM instances. See:
-   * https://cloud.google.com/compute/docs/instances/preemptible for more
-   * information about preemptible VM instances.
-   * 
- * - * bool preemptible = 10; - * - * @return The preemptible. - */ - @java.lang.Override - public boolean getPreemptible() { - return preemptible_; - } - - public static final int ACCELERATORS_FIELD_NUMBER = 11; - private java.util.List accelerators_; - /** - * - * - *
-   * A list of hardware accelerators to be attached to each node.
-   * See https://cloud.google.com/compute/docs/gpus for more information about
-   * support for GPUs.
-   * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - @java.lang.Override - public java.util.List getAcceleratorsList() { - return accelerators_; - } - /** - * - * - *
-   * A list of hardware accelerators to be attached to each node.
-   * See https://cloud.google.com/compute/docs/gpus for more information about
-   * support for GPUs.
-   * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - @java.lang.Override - public java.util.List - getAcceleratorsOrBuilderList() { - return accelerators_; - } - /** - * - * - *
-   * A list of hardware accelerators to be attached to each node.
-   * See https://cloud.google.com/compute/docs/gpus for more information about
-   * support for GPUs.
-   * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - @java.lang.Override - public int getAcceleratorsCount() { - return accelerators_.size(); - } - /** - * - * - *
-   * A list of hardware accelerators to be attached to each node.
-   * See https://cloud.google.com/compute/docs/gpus for more information about
-   * support for GPUs.
-   * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - @java.lang.Override - public com.google.container.v1.AcceleratorConfig getAccelerators(int index) { - return accelerators_.get(index); - } - /** - * - * - *
-   * A list of hardware accelerators to be attached to each node.
-   * See https://cloud.google.com/compute/docs/gpus for more information about
-   * support for GPUs.
-   * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - @java.lang.Override - public com.google.container.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index) { - return accelerators_.get(index); - } - - public static final int DISK_TYPE_FIELD_NUMBER = 12; - private volatile java.lang.Object diskType_; - /** - * - * - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 12; - * - * @return The diskType. - */ - @java.lang.Override - public java.lang.String getDiskType() { - java.lang.Object ref = diskType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - diskType_ = s; - return s; - } - } - /** - * - * - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 12; - * - * @return The bytes for diskType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDiskTypeBytes() { - java.lang.Object ref = diskType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - diskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MIN_CPU_PLATFORM_FIELD_NUMBER = 13; - private volatile java.lang.Object minCpuPlatform_; - /** - * - * - *
-   * Minimum CPU platform to be used by this instance. The instance may be
-   * scheduled on the specified or newer CPU platform. Applicable values are the
-   * friendly names of CPU platforms, such as
-   * `minCpuPlatform: "Intel Haswell"` or
-   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-   * 
- * - * string min_cpu_platform = 13; - * - * @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; - } - } - /** - * - * - *
-   * Minimum CPU platform to be used by this instance. The instance may be
-   * scheduled on the specified or newer CPU platform. Applicable values are the
-   * friendly names of CPU platforms, such as
-   * `minCpuPlatform: "Intel Haswell"` or
-   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-   * 
- * - * string min_cpu_platform = 13; - * - * @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; - } - } - - public static final int WORKLOAD_METADATA_CONFIG_FIELD_NUMBER = 14; - private com.google.container.v1.WorkloadMetadataConfig workloadMetadataConfig_; - /** - * - * - *
-   * The workload metadata configuration for this node.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return Whether the workloadMetadataConfig field is set. - */ - @java.lang.Override - public boolean hasWorkloadMetadataConfig() { - return workloadMetadataConfig_ != null; - } - /** - * - * - *
-   * The workload metadata configuration for this node.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return The workloadMetadataConfig. - */ - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { - return workloadMetadataConfig_ == null - ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() - : workloadMetadataConfig_; - } - /** - * - * - *
-   * The workload metadata configuration for this node.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfigOrBuilder - getWorkloadMetadataConfigOrBuilder() { - return getWorkloadMetadataConfig(); - } - - public static final int TAINTS_FIELD_NUMBER = 15; - private java.util.List taints_; - /** - * - * - *
-   * List of kubernetes taints to be applied to each node.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-   * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - @java.lang.Override - public java.util.List getTaintsList() { - return taints_; - } - /** - * - * - *
-   * List of kubernetes taints to be applied to each node.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-   * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - @java.lang.Override - public java.util.List - getTaintsOrBuilderList() { - return taints_; - } - /** - * - * - *
-   * List of kubernetes taints to be applied to each node.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-   * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - @java.lang.Override - public int getTaintsCount() { - return taints_.size(); - } - /** - * - * - *
-   * List of kubernetes taints to be applied to each node.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-   * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - @java.lang.Override - public com.google.container.v1.NodeTaint getTaints(int index) { - return taints_.get(index); - } - /** - * - * - *
-   * List of kubernetes taints to be applied to each node.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-   * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - @java.lang.Override - public com.google.container.v1.NodeTaintOrBuilder getTaintsOrBuilder(int index) { - return taints_.get(index); - } - - public static final int SANDBOX_CONFIG_FIELD_NUMBER = 17; - private com.google.container.v1.SandboxConfig sandboxConfig_; - /** - * - * - *
-   * Sandbox configuration for this node.
-   * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - * - * @return Whether the sandboxConfig field is set. - */ - @java.lang.Override - public boolean hasSandboxConfig() { - return sandboxConfig_ != null; - } - /** - * - * - *
-   * Sandbox configuration for this node.
-   * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - * - * @return The sandboxConfig. - */ - @java.lang.Override - public com.google.container.v1.SandboxConfig getSandboxConfig() { - return sandboxConfig_ == null - ? com.google.container.v1.SandboxConfig.getDefaultInstance() - : sandboxConfig_; - } - /** - * - * - *
-   * Sandbox configuration for this node.
-   * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - */ - @java.lang.Override - public com.google.container.v1.SandboxConfigOrBuilder getSandboxConfigOrBuilder() { - return getSandboxConfig(); - } - - public static final int NODE_GROUP_FIELD_NUMBER = 18; - private volatile java.lang.Object nodeGroup_; - /** - * - * - *
-   * Setting this field will assign instances of this
-   * pool to run on the specified node group. This is useful for running
-   * workloads on [sole tenant
-   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-   * 
- * - * string node_group = 18; - * - * @return The nodeGroup. - */ - @java.lang.Override - public java.lang.String getNodeGroup() { - java.lang.Object ref = nodeGroup_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeGroup_ = s; - return s; - } - } - /** - * - * - *
-   * Setting this field will assign instances of this
-   * pool to run on the specified node group. This is useful for running
-   * workloads on [sole tenant
-   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-   * 
- * - * string node_group = 18; - * - * @return The bytes for nodeGroup. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNodeGroupBytes() { - java.lang.Object ref = nodeGroup_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodeGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESERVATION_AFFINITY_FIELD_NUMBER = 19; - private com.google.container.v1.ReservationAffinity reservationAffinity_; - /** - * - * - *
-   * The optional reservation affinity. Setting this field will apply
-   * the specified [Zonal Compute
-   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * to this node pool.
-   * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - * - * @return Whether the reservationAffinity field is set. - */ - @java.lang.Override - public boolean hasReservationAffinity() { - return reservationAffinity_ != null; - } - /** - * - * - *
-   * The optional reservation affinity. Setting this field will apply
-   * the specified [Zonal Compute
-   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * to this node pool.
-   * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - * - * @return The reservationAffinity. - */ - @java.lang.Override - public com.google.container.v1.ReservationAffinity getReservationAffinity() { - return reservationAffinity_ == null - ? com.google.container.v1.ReservationAffinity.getDefaultInstance() - : reservationAffinity_; - } - /** - * - * - *
-   * The optional reservation affinity. Setting this field will apply
-   * the specified [Zonal Compute
-   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * to this node pool.
-   * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - @java.lang.Override - public com.google.container.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { - return getReservationAffinity(); - } - - public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 20; - private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - * - * @return Whether the shieldedInstanceConfig field is set. - */ - @java.lang.Override - public boolean hasShieldedInstanceConfig() { - return shieldedInstanceConfig_ != null; - } - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - * - * @return The shieldedInstanceConfig. - */ - @java.lang.Override - public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null - ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; - } - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - @java.lang.Override - public com.google.container.v1.ShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder() { - return getShieldedInstanceConfig(); - } - - public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER = 23; - private volatile java.lang.Object bootDiskKmsKey_; - /** - * - * - *
-   * The Customer Managed Encryption Key used to encrypt the boot disk attached
-   * to each node in the node pool. This should be of the form
-   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-   * For more information about protecting resources with Cloud KMS Keys please
-   * see:
-   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-   * 
- * - * string boot_disk_kms_key = 23; - * - * @return The bootDiskKmsKey. - */ - @java.lang.Override - public java.lang.String getBootDiskKmsKey() { - java.lang.Object ref = bootDiskKmsKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bootDiskKmsKey_ = s; - return s; - } - } - /** - * - * - *
-   * The Customer Managed Encryption Key used to encrypt the boot disk attached
-   * to each node in the node pool. This should be of the form
-   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-   * For more information about protecting resources with Cloud KMS Keys please
-   * see:
-   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-   * 
- * - * string boot_disk_kms_key = 23; - * - * @return The bytes for bootDiskKmsKey. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { - java.lang.Object ref = bootDiskKmsKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bootDiskKmsKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getMachineTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, machineType_); - } - if (diskSizeGb_ != 0) { - output.writeInt32(2, diskSizeGb_); - } - for (int i = 0; i < oauthScopes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, oauthScopes_.getRaw(i)); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 4); - if (!getImageTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, imageType_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); - if (localSsdCount_ != 0) { - output.writeInt32(7, localSsdCount_); - } - for (int i = 0; i < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, tags_.getRaw(i)); - } - if (!getServiceAccountBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, serviceAccount_); - } - if (preemptible_ != false) { - output.writeBool(10, preemptible_); - } - for (int i = 0; i < accelerators_.size(); i++) { - output.writeMessage(11, accelerators_.get(i)); - } - if (!getDiskTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, diskType_); - } - if (!getMinCpuPlatformBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, minCpuPlatform_); - } - if (workloadMetadataConfig_ != null) { - output.writeMessage(14, getWorkloadMetadataConfig()); - } - for (int i = 0; i < taints_.size(); i++) { - output.writeMessage(15, taints_.get(i)); - } - if (sandboxConfig_ != null) { - output.writeMessage(17, getSandboxConfig()); - } - if (!getNodeGroupBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 18, nodeGroup_); - } - if (reservationAffinity_ != null) { - output.writeMessage(19, getReservationAffinity()); - } - if (shieldedInstanceConfig_ != null) { - output.writeMessage(20, getShieldedInstanceConfig()); - } - if (!getBootDiskKmsKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 23, bootDiskKmsKey_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getMachineTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, machineType_); - } - if (diskSizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, diskSizeGb_); - } - { - int dataSize = 0; - for (int i = 0; i < oauthScopes_.size(); i++) { - dataSize += computeStringSizeNoTag(oauthScopes_.getRaw(i)); - } - size += dataSize; - size += 1 * getOauthScopesList().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(4, metadata__); - } - if (!getImageTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, imageType_); - } - 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 (localSsdCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, localSsdCount_); - } - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - if (!getServiceAccountBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceAccount_); - } - 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 (!getDiskTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, diskType_); - } - if (!getMinCpuPlatformBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, minCpuPlatform_); - } - if (workloadMetadataConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(14, getWorkloadMetadataConfig()); - } - for (int i = 0; i < taints_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, taints_.get(i)); - } - if (sandboxConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getSandboxConfig()); - } - if (!getNodeGroupBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, nodeGroup_); - } - if (reservationAffinity_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(19, getReservationAffinity()); - } - if (shieldedInstanceConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(20, getShieldedInstanceConfig()); - } - if (!getBootDiskKmsKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, bootDiskKmsKey_); - } - 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.container.v1.NodeConfig)) { - return super.equals(obj); - } - com.google.container.v1.NodeConfig other = (com.google.container.v1.NodeConfig) obj; - - if (!getMachineType().equals(other.getMachineType())) return false; - if (getDiskSizeGb() != other.getDiskSizeGb()) return false; - if (!getOauthScopesList().equals(other.getOauthScopesList())) return false; - if (!getServiceAccount().equals(other.getServiceAccount())) return false; - if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; - if (!getImageType().equals(other.getImageType())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (getLocalSsdCount() != other.getLocalSsdCount()) return false; - if (!getTagsList().equals(other.getTagsList())) return false; - if (getPreemptible() != other.getPreemptible()) return false; - if (!getAcceleratorsList().equals(other.getAcceleratorsList())) return false; - if (!getDiskType().equals(other.getDiskType())) return false; - if (!getMinCpuPlatform().equals(other.getMinCpuPlatform())) return false; - if (hasWorkloadMetadataConfig() != other.hasWorkloadMetadataConfig()) return false; - if (hasWorkloadMetadataConfig()) { - if (!getWorkloadMetadataConfig().equals(other.getWorkloadMetadataConfig())) return false; - } - if (!getTaintsList().equals(other.getTaintsList())) return false; - if (hasSandboxConfig() != other.hasSandboxConfig()) return false; - if (hasSandboxConfig()) { - if (!getSandboxConfig().equals(other.getSandboxConfig())) return false; - } - if (!getNodeGroup().equals(other.getNodeGroup())) return false; - if (hasReservationAffinity() != other.hasReservationAffinity()) return false; - if (hasReservationAffinity()) { - if (!getReservationAffinity().equals(other.getReservationAffinity())) return false; - } - if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; - if (hasShieldedInstanceConfig()) { - if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; - } - if (!getBootDiskKmsKey().equals(other.getBootDiskKmsKey())) 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) + DISK_SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + getDiskSizeGb(); - if (getOauthScopesCount() > 0) { - hash = (37 * hash) + OAUTH_SCOPES_FIELD_NUMBER; - hash = (53 * hash) + getOauthScopesList().hashCode(); - } - hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getServiceAccount().hashCode(); - if (!internalGetMetadata().getMap().isEmpty()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + internalGetMetadata().hashCode(); - } - hash = (37 * hash) + IMAGE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getImageType().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - hash = (37 * hash) + LOCAL_SSD_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getLocalSsdCount(); - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - hash = (37 * hash) + PREEMPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreemptible()); - if (getAcceleratorsCount() > 0) { - hash = (37 * hash) + ACCELERATORS_FIELD_NUMBER; - hash = (53 * hash) + getAcceleratorsList().hashCode(); - } - hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getDiskType().hashCode(); - hash = (37 * hash) + MIN_CPU_PLATFORM_FIELD_NUMBER; - hash = (53 * hash) + getMinCpuPlatform().hashCode(); - if (hasWorkloadMetadataConfig()) { - hash = (37 * hash) + WORKLOAD_METADATA_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getWorkloadMetadataConfig().hashCode(); - } - if (getTaintsCount() > 0) { - hash = (37 * hash) + TAINTS_FIELD_NUMBER; - hash = (53 * hash) + getTaintsList().hashCode(); - } - if (hasSandboxConfig()) { - hash = (37 * hash) + SANDBOX_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSandboxConfig().hashCode(); - } - hash = (37 * hash) + NODE_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getNodeGroup().hashCode(); - if (hasReservationAffinity()) { - hash = (37 * hash) + RESERVATION_AFFINITY_FIELD_NUMBER; - hash = (53 * hash) + getReservationAffinity().hashCode(); - } - if (hasShieldedInstanceConfig()) { - hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); - } - hash = (37 * hash) + BOOT_DISK_KMS_KEY_FIELD_NUMBER; - hash = (53 * hash) + getBootDiskKmsKey().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodeConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeConfig parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodeConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodeConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NodeConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 the nodes in a cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.NodeConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodeConfig) - com.google.container.v1.NodeConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetMetadata(); - 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 4: - return internalGetMutableMetadata(); - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeConfig.class, - com.google.container.v1.NodeConfig.Builder.class); - } - - // Construct using com.google.container.v1.NodeConfig.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(); - getTaintsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - machineType_ = ""; - - diskSizeGb_ = 0; - - oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - serviceAccount_ = ""; - - internalGetMutableMetadata().clear(); - imageType_ = ""; - - internalGetMutableLabels().clear(); - localSsdCount_ = 0; - - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - preemptible_ = false; - - if (acceleratorsBuilder_ == null) { - accelerators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - acceleratorsBuilder_.clear(); - } - diskType_ = ""; - - minCpuPlatform_ = ""; - - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfig_ = null; - } else { - workloadMetadataConfig_ = null; - workloadMetadataConfigBuilder_ = null; - } - if (taintsBuilder_ == null) { - taints_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - taintsBuilder_.clear(); - } - if (sandboxConfigBuilder_ == null) { - sandboxConfig_ = null; - } else { - sandboxConfig_ = null; - sandboxConfigBuilder_ = null; - } - nodeGroup_ = ""; - - if (reservationAffinityBuilder_ == null) { - reservationAffinity_ = null; - } else { - reservationAffinity_ = null; - reservationAffinityBuilder_ = null; - } - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = null; - } else { - shieldedInstanceConfig_ = null; - shieldedInstanceConfigBuilder_ = null; - } - bootDiskKmsKey_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodeConfig getDefaultInstanceForType() { - return com.google.container.v1.NodeConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodeConfig build() { - com.google.container.v1.NodeConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodeConfig buildPartial() { - com.google.container.v1.NodeConfig result = new com.google.container.v1.NodeConfig(this); - int from_bitField0_ = bitField0_; - result.machineType_ = machineType_; - result.diskSizeGb_ = diskSizeGb_; - if (((bitField0_ & 0x00000001) != 0)) { - oauthScopes_ = oauthScopes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.oauthScopes_ = oauthScopes_; - result.serviceAccount_ = serviceAccount_; - result.metadata_ = internalGetMetadata(); - result.metadata_.makeImmutable(); - result.imageType_ = imageType_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.localSsdCount_ = localSsdCount_; - if (((bitField0_ & 0x00000008) != 0)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.tags_ = tags_; - result.preemptible_ = preemptible_; - if (acceleratorsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - accelerators_ = java.util.Collections.unmodifiableList(accelerators_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.accelerators_ = accelerators_; - } else { - result.accelerators_ = acceleratorsBuilder_.build(); - } - result.diskType_ = diskType_; - result.minCpuPlatform_ = minCpuPlatform_; - if (workloadMetadataConfigBuilder_ == null) { - result.workloadMetadataConfig_ = workloadMetadataConfig_; - } else { - result.workloadMetadataConfig_ = workloadMetadataConfigBuilder_.build(); - } - if (taintsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - taints_ = java.util.Collections.unmodifiableList(taints_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.taints_ = taints_; - } else { - result.taints_ = taintsBuilder_.build(); - } - if (sandboxConfigBuilder_ == null) { - result.sandboxConfig_ = sandboxConfig_; - } else { - result.sandboxConfig_ = sandboxConfigBuilder_.build(); - } - result.nodeGroup_ = nodeGroup_; - if (reservationAffinityBuilder_ == null) { - result.reservationAffinity_ = reservationAffinity_; - } else { - result.reservationAffinity_ = reservationAffinityBuilder_.build(); - } - if (shieldedInstanceConfigBuilder_ == null) { - result.shieldedInstanceConfig_ = shieldedInstanceConfig_; - } else { - result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_.build(); - } - result.bootDiskKmsKey_ = bootDiskKmsKey_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodeConfig) { - return mergeFrom((com.google.container.v1.NodeConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodeConfig other) { - if (other == com.google.container.v1.NodeConfig.getDefaultInstance()) return this; - if (!other.getMachineType().isEmpty()) { - machineType_ = other.machineType_; - onChanged(); - } - if (other.getDiskSizeGb() != 0) { - setDiskSizeGb(other.getDiskSizeGb()); - } - if (!other.oauthScopes_.isEmpty()) { - if (oauthScopes_.isEmpty()) { - oauthScopes_ = other.oauthScopes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOauthScopesIsMutable(); - oauthScopes_.addAll(other.oauthScopes_); - } - onChanged(); - } - if (!other.getServiceAccount().isEmpty()) { - serviceAccount_ = other.serviceAccount_; - onChanged(); - } - internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); - if (!other.getImageType().isEmpty()) { - imageType_ = other.imageType_; - onChanged(); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (other.getLocalSsdCount() != 0) { - setLocalSsdCount(other.getLocalSsdCount()); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - if (other.getPreemptible() != false) { - setPreemptible(other.getPreemptible()); - } - if (acceleratorsBuilder_ == null) { - if (!other.accelerators_.isEmpty()) { - if (accelerators_.isEmpty()) { - accelerators_ = other.accelerators_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureAcceleratorsIsMutable(); - accelerators_.addAll(other.accelerators_); - } - onChanged(); - } - } else { - if (!other.accelerators_.isEmpty()) { - if (acceleratorsBuilder_.isEmpty()) { - acceleratorsBuilder_.dispose(); - acceleratorsBuilder_ = null; - accelerators_ = other.accelerators_; - bitField0_ = (bitField0_ & ~0x00000010); - acceleratorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAcceleratorsFieldBuilder() - : null; - } else { - acceleratorsBuilder_.addAllMessages(other.accelerators_); - } - } - } - if (!other.getDiskType().isEmpty()) { - diskType_ = other.diskType_; - onChanged(); - } - if (!other.getMinCpuPlatform().isEmpty()) { - minCpuPlatform_ = other.minCpuPlatform_; - onChanged(); - } - if (other.hasWorkloadMetadataConfig()) { - mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); - } - if (taintsBuilder_ == null) { - if (!other.taints_.isEmpty()) { - if (taints_.isEmpty()) { - taints_ = other.taints_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureTaintsIsMutable(); - taints_.addAll(other.taints_); - } - onChanged(); - } - } else { - if (!other.taints_.isEmpty()) { - if (taintsBuilder_.isEmpty()) { - taintsBuilder_.dispose(); - taintsBuilder_ = null; - taints_ = other.taints_; - bitField0_ = (bitField0_ & ~0x00000020); - taintsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTaintsFieldBuilder() - : null; - } else { - taintsBuilder_.addAllMessages(other.taints_); - } - } - } - if (other.hasSandboxConfig()) { - mergeSandboxConfig(other.getSandboxConfig()); - } - if (!other.getNodeGroup().isEmpty()) { - nodeGroup_ = other.nodeGroup_; - onChanged(); - } - if (other.hasReservationAffinity()) { - mergeReservationAffinity(other.getReservationAffinity()); - } - if (other.hasShieldedInstanceConfig()) { - mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); - } - if (!other.getBootDiskKmsKey().isEmpty()) { - bootDiskKmsKey_ = other.bootDiskKmsKey_; - 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.container.v1.NodeConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.NodeConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object machineType_ = ""; - /** - * - * - *
-     * The name of a Google Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types)
-     * If unspecified, the default machine type is `e2-medium`.
-     * 
- * - * string machine_type = 1; - * - * @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; - } - } - /** - * - * - *
-     * The name of a Google Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types)
-     * If unspecified, the default machine type is `e2-medium`.
-     * 
- * - * string machine_type = 1; - * - * @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; - } - } - /** - * - * - *
-     * The name of a Google Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types)
-     * If unspecified, the default machine type is `e2-medium`.
-     * 
- * - * string machine_type = 1; - * - * @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; - } - /** - * - * - *
-     * The name of a Google Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types)
-     * If unspecified, the default machine type is `e2-medium`.
-     * 
- * - * string machine_type = 1; - * - * @return This builder for chaining. - */ - public Builder clearMachineType() { - - machineType_ = getDefaultInstance().getMachineType(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of a Google Compute Engine [machine
-     * type](https://cloud.google.com/compute/docs/machine-types)
-     * If unspecified, the default machine type is `e2-medium`.
-     * 
- * - * string machine_type = 1; - * - * @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 int diskSizeGb_; - /** - * - * - *
-     * Size of the disk attached to each node, specified in GB.
-     * The smallest allowed disk size is 10GB.
-     * If unspecified, the default disk size is 100GB.
-     * 
- * - * int32 disk_size_gb = 2; - * - * @return The diskSizeGb. - */ - @java.lang.Override - public int getDiskSizeGb() { - return diskSizeGb_; - } - /** - * - * - *
-     * Size of the disk attached to each node, specified in GB.
-     * The smallest allowed disk size is 10GB.
-     * If unspecified, the default disk size is 100GB.
-     * 
- * - * int32 disk_size_gb = 2; - * - * @param value The diskSizeGb to set. - * @return This builder for chaining. - */ - public Builder setDiskSizeGb(int value) { - - diskSizeGb_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Size of the disk attached to each node, specified in GB.
-     * The smallest allowed disk size is 10GB.
-     * If unspecified, the default disk size is 100GB.
-     * 
- * - * int32 disk_size_gb = 2; - * - * @return This builder for chaining. - */ - public Builder clearDiskSizeGb() { - - diskSizeGb_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList oauthScopes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureOauthScopesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * - * @return A list containing the oauthScopes. - */ - public com.google.protobuf.ProtocolStringList getOauthScopesList() { - return oauthScopes_.getUnmodifiableView(); - } - /** - * - * - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * - * @return The count of oauthScopes. - */ - public int getOauthScopesCount() { - return oauthScopes_.size(); - } - /** - * - * - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * - * @param index The index of the element to return. - * @return The oauthScopes at the given index. - */ - public java.lang.String getOauthScopes(int index) { - return oauthScopes_.get(index); - } - /** - * - * - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * - * @param index The index of the value to return. - * @return The bytes of the oauthScopes at the given index. - */ - public com.google.protobuf.ByteString getOauthScopesBytes(int index) { - return oauthScopes_.getByteString(index); - } - /** - * - * - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * - * @param index The index to set the value at. - * @param value The oauthScopes to set. - * @return This builder for chaining. - */ - public Builder setOauthScopes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOauthScopesIsMutable(); - oauthScopes_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * - * @param value The oauthScopes to add. - * @return This builder for chaining. - */ - public Builder addOauthScopes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOauthScopesIsMutable(); - oauthScopes_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * - * @param values The oauthScopes to add. - * @return This builder for chaining. - */ - public Builder addAllOauthScopes(java.lang.Iterable values) { - ensureOauthScopesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oauthScopes_); - onChanged(); - return this; - } - /** - * - * - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * - * @return This builder for chaining. - */ - public Builder clearOauthScopes() { - oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The set of Google API scopes to be made available on all of the
-     * node VMs under the "default" service account.
-     * The following scopes are recommended, but not required, and by default are
-     * not included:
-     * * `https://www.googleapis.com/auth/compute` is required for mounting
-     * persistent storage on your nodes.
-     * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-     * communicating with **gcr.io**
-     * (the [Google Container
-     * Registry](https://cloud.google.com/container-registry/)).
-     * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-     * Monitoring are enabled, in which case their required scopes will be added.
-     * 
- * - * repeated string oauth_scopes = 3; - * - * @param value The bytes of the oauthScopes to add. - * @return This builder for chaining. - */ - public Builder addOauthScopesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureOauthScopesIsMutable(); - oauthScopes_.add(value); - onChanged(); - return this; - } - - private java.lang.Object serviceAccount_ = ""; - /** - * - * - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * Specify the email address of the Service Account; otherwise, if no Service
-     * Account is specified, the "default" service account is used.
-     * 
- * - * string service_account = 9; - * - * @return The serviceAccount. - */ - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * Specify the email address of the Service Account; otherwise, if no Service
-     * Account is specified, the "default" service account is used.
-     * 
- * - * string service_account = 9; - * - * @return The bytes for serviceAccount. - */ - public com.google.protobuf.ByteString getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * Specify the email address of the Service Account; otherwise, if no Service
-     * Account is specified, the "default" service account is used.
-     * 
- * - * string service_account = 9; - * - * @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; - } - /** - * - * - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * Specify the email address of the Service Account; otherwise, if no Service
-     * Account is specified, the "default" service account is used.
-     * 
- * - * string service_account = 9; - * - * @return This builder for chaining. - */ - public Builder clearServiceAccount() { - - serviceAccount_ = getDefaultInstance().getServiceAccount(); - onChanged(); - return this; - } - /** - * - * - *
-     * The Google Cloud Platform Service Account to be used by the node VMs.
-     * Specify the email address of the Service Account; otherwise, if no Service
-     * Account is specified, the "default" service account is used.
-     * 
- * - * string service_account = 9; - * - * @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.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 metadata key/value pairs assigned to instances in the cluster.
-     * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
-     * in length. These are reflected as part of a URL in the metadata server.
-     * Additionally, to avoid ambiguity, keys must not conflict with any other
-     * metadata keys for the project or be one of the reserved keys:
-     *  - "cluster-location"
-     *  - "cluster-name"
-     *  - "cluster-uid"
-     *  - "configure-sh"
-     *  - "containerd-configure-sh"
-     *  - "enable-os-login"
-     *  - "gci-ensure-gke-docker"
-     *  - "gci-metrics-enabled"
-     *  - "gci-update-strategy"
-     *  - "instance-template"
-     *  - "kube-env"
-     *  - "startup-script"
-     *  - "user-data"
-     *  - "disable-address-manager"
-     *  - "windows-startup-script-ps1"
-     *  - "common-psm1"
-     *  - "k8s-node-setup-psm1"
-     *  - "install-ssh-psm1"
-     *  - "user-profile-psm1"
-     * The following keys are reserved for Windows nodes:
-     *  - "serial-port-logging-enable"
-     * Values are free-form strings, and only have meaning as interpreted by
-     * the image running in the instance. The only restriction placed on them is
-     * that each value's size must be less than or equal to 32 KB.
-     * The total size of all keys and values must be less than 512 KB.
-     * 
- * - * map<string, string> metadata = 4; - */ - @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 metadata key/value pairs assigned to instances in the cluster.
-     * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
-     * in length. These are reflected as part of a URL in the metadata server.
-     * Additionally, to avoid ambiguity, keys must not conflict with any other
-     * metadata keys for the project or be one of the reserved keys:
-     *  - "cluster-location"
-     *  - "cluster-name"
-     *  - "cluster-uid"
-     *  - "configure-sh"
-     *  - "containerd-configure-sh"
-     *  - "enable-os-login"
-     *  - "gci-ensure-gke-docker"
-     *  - "gci-metrics-enabled"
-     *  - "gci-update-strategy"
-     *  - "instance-template"
-     *  - "kube-env"
-     *  - "startup-script"
-     *  - "user-data"
-     *  - "disable-address-manager"
-     *  - "windows-startup-script-ps1"
-     *  - "common-psm1"
-     *  - "k8s-node-setup-psm1"
-     *  - "install-ssh-psm1"
-     *  - "user-profile-psm1"
-     * The following keys are reserved for Windows nodes:
-     *  - "serial-port-logging-enable"
-     * Values are free-form strings, and only have meaning as interpreted by
-     * the image running in the instance. The only restriction placed on them is
-     * that each value's size must be less than or equal to 32 KB.
-     * The total size of all keys and values must be less than 512 KB.
-     * 
- * - * map<string, string> metadata = 4; - */ - @java.lang.Override - public java.util.Map getMetadataMap() { - return internalGetMetadata().getMap(); - } - /** - * - * - *
-     * The metadata key/value pairs assigned to instances in the cluster.
-     * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
-     * in length. These are reflected as part of a URL in the metadata server.
-     * Additionally, to avoid ambiguity, keys must not conflict with any other
-     * metadata keys for the project or be one of the reserved keys:
-     *  - "cluster-location"
-     *  - "cluster-name"
-     *  - "cluster-uid"
-     *  - "configure-sh"
-     *  - "containerd-configure-sh"
-     *  - "enable-os-login"
-     *  - "gci-ensure-gke-docker"
-     *  - "gci-metrics-enabled"
-     *  - "gci-update-strategy"
-     *  - "instance-template"
-     *  - "kube-env"
-     *  - "startup-script"
-     *  - "user-data"
-     *  - "disable-address-manager"
-     *  - "windows-startup-script-ps1"
-     *  - "common-psm1"
-     *  - "k8s-node-setup-psm1"
-     *  - "install-ssh-psm1"
-     *  - "user-profile-psm1"
-     * The following keys are reserved for Windows nodes:
-     *  - "serial-port-logging-enable"
-     * Values are free-form strings, and only have meaning as interpreted by
-     * the image running in the instance. The only restriction placed on them is
-     * that each value's size must be less than or equal to 32 KB.
-     * The total size of all keys and values must be less than 512 KB.
-     * 
- * - * map<string, string> metadata = 4; - */ - @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 metadata key/value pairs assigned to instances in the cluster.
-     * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
-     * in length. These are reflected as part of a URL in the metadata server.
-     * Additionally, to avoid ambiguity, keys must not conflict with any other
-     * metadata keys for the project or be one of the reserved keys:
-     *  - "cluster-location"
-     *  - "cluster-name"
-     *  - "cluster-uid"
-     *  - "configure-sh"
-     *  - "containerd-configure-sh"
-     *  - "enable-os-login"
-     *  - "gci-ensure-gke-docker"
-     *  - "gci-metrics-enabled"
-     *  - "gci-update-strategy"
-     *  - "instance-template"
-     *  - "kube-env"
-     *  - "startup-script"
-     *  - "user-data"
-     *  - "disable-address-manager"
-     *  - "windows-startup-script-ps1"
-     *  - "common-psm1"
-     *  - "k8s-node-setup-psm1"
-     *  - "install-ssh-psm1"
-     *  - "user-profile-psm1"
-     * The following keys are reserved for Windows nodes:
-     *  - "serial-port-logging-enable"
-     * Values are free-form strings, and only have meaning as interpreted by
-     * the image running in the instance. The only restriction placed on them is
-     * that each value's size must be less than or equal to 32 KB.
-     * The total size of all keys and values must be less than 512 KB.
-     * 
- * - * map<string, string> metadata = 4; - */ - @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 metadata key/value pairs assigned to instances in the cluster.
-     * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
-     * in length. These are reflected as part of a URL in the metadata server.
-     * Additionally, to avoid ambiguity, keys must not conflict with any other
-     * metadata keys for the project or be one of the reserved keys:
-     *  - "cluster-location"
-     *  - "cluster-name"
-     *  - "cluster-uid"
-     *  - "configure-sh"
-     *  - "containerd-configure-sh"
-     *  - "enable-os-login"
-     *  - "gci-ensure-gke-docker"
-     *  - "gci-metrics-enabled"
-     *  - "gci-update-strategy"
-     *  - "instance-template"
-     *  - "kube-env"
-     *  - "startup-script"
-     *  - "user-data"
-     *  - "disable-address-manager"
-     *  - "windows-startup-script-ps1"
-     *  - "common-psm1"
-     *  - "k8s-node-setup-psm1"
-     *  - "install-ssh-psm1"
-     *  - "user-profile-psm1"
-     * The following keys are reserved for Windows nodes:
-     *  - "serial-port-logging-enable"
-     * Values are free-form strings, and only have meaning as interpreted by
-     * the image running in the instance. The only restriction placed on them is
-     * that each value's size must be less than or equal to 32 KB.
-     * The total size of all keys and values must be less than 512 KB.
-     * 
- * - * map<string, string> metadata = 4; - */ - 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 metadata key/value pairs assigned to instances in the cluster.
-     * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
-     * in length. These are reflected as part of a URL in the metadata server.
-     * Additionally, to avoid ambiguity, keys must not conflict with any other
-     * metadata keys for the project or be one of the reserved keys:
-     *  - "cluster-location"
-     *  - "cluster-name"
-     *  - "cluster-uid"
-     *  - "configure-sh"
-     *  - "containerd-configure-sh"
-     *  - "enable-os-login"
-     *  - "gci-ensure-gke-docker"
-     *  - "gci-metrics-enabled"
-     *  - "gci-update-strategy"
-     *  - "instance-template"
-     *  - "kube-env"
-     *  - "startup-script"
-     *  - "user-data"
-     *  - "disable-address-manager"
-     *  - "windows-startup-script-ps1"
-     *  - "common-psm1"
-     *  - "k8s-node-setup-psm1"
-     *  - "install-ssh-psm1"
-     *  - "user-profile-psm1"
-     * The following keys are reserved for Windows nodes:
-     *  - "serial-port-logging-enable"
-     * Values are free-form strings, and only have meaning as interpreted by
-     * the image running in the instance. The only restriction placed on them is
-     * that each value's size must be less than or equal to 32 KB.
-     * The total size of all keys and values must be less than 512 KB.
-     * 
- * - * map<string, string> metadata = 4; - */ - 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 metadata key/value pairs assigned to instances in the cluster.
-     * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
-     * in length. These are reflected as part of a URL in the metadata server.
-     * Additionally, to avoid ambiguity, keys must not conflict with any other
-     * metadata keys for the project or be one of the reserved keys:
-     *  - "cluster-location"
-     *  - "cluster-name"
-     *  - "cluster-uid"
-     *  - "configure-sh"
-     *  - "containerd-configure-sh"
-     *  - "enable-os-login"
-     *  - "gci-ensure-gke-docker"
-     *  - "gci-metrics-enabled"
-     *  - "gci-update-strategy"
-     *  - "instance-template"
-     *  - "kube-env"
-     *  - "startup-script"
-     *  - "user-data"
-     *  - "disable-address-manager"
-     *  - "windows-startup-script-ps1"
-     *  - "common-psm1"
-     *  - "k8s-node-setup-psm1"
-     *  - "install-ssh-psm1"
-     *  - "user-profile-psm1"
-     * The following keys are reserved for Windows nodes:
-     *  - "serial-port-logging-enable"
-     * Values are free-form strings, and only have meaning as interpreted by
-     * the image running in the instance. The only restriction placed on them is
-     * that each value's size must be less than or equal to 32 KB.
-     * The total size of all keys and values must be less than 512 KB.
-     * 
- * - * map<string, string> metadata = 4; - */ - public Builder putAllMetadata(java.util.Map values) { - internalGetMutableMetadata().getMutableMap().putAll(values); - return this; - } - - private java.lang.Object imageType_ = ""; - /** - * - * - *
-     * The image type to use for this node. Note that for a given image type,
-     * the latest version of it will be used.
-     * 
- * - * string image_type = 5; - * - * @return The imageType. - */ - public java.lang.String getImageType() { - java.lang.Object ref = imageType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - imageType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The image type to use for this node. Note that for a given image type,
-     * the latest version of it will be used.
-     * 
- * - * string image_type = 5; - * - * @return The bytes for imageType. - */ - public com.google.protobuf.ByteString getImageTypeBytes() { - java.lang.Object ref = imageType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - imageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The image type to use for this node. Note that for a given image type,
-     * the latest version of it will be used.
-     * 
- * - * string image_type = 5; - * - * @param value The imageType to set. - * @return This builder for chaining. - */ - public Builder setImageType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - imageType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The image type to use for this node. Note that for a given image type,
-     * the latest version of it will be used.
-     * 
- * - * string image_type = 5; - * - * @return This builder for chaining. - */ - public Builder clearImageType() { - - imageType_ = getDefaultInstance().getImageType(); - onChanged(); - return this; - } - /** - * - * - *
-     * The image type to use for this node. Note that for a given image type,
-     * the latest version of it will be used.
-     * 
- * - * string image_type = 5; - * - * @param value The bytes for imageType to set. - * @return This builder for chaining. - */ - public Builder setImageTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - imageType_ = 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(); - } - /** - * - * - *
-     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-     * These will added in addition to any default label(s) that
-     * Kubernetes may apply to the node.
-     * In case of conflict in label keys, the applied set may differ depending on
-     * the Kubernetes version -- it's best to assume the behavior is undefined
-     * and conflicts should be avoided.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-     * 
- * - * map<string, string> labels = 6; - */ - @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(); - } - /** - * - * - *
-     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-     * These will added in addition to any default label(s) that
-     * Kubernetes may apply to the node.
-     * In case of conflict in label keys, the applied set may differ depending on
-     * the Kubernetes version -- it's best to assume the behavior is undefined
-     * and conflicts should be avoided.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-     * 
- * - * map<string, string> labels = 6; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-     * These will added in addition to any default label(s) that
-     * Kubernetes may apply to the node.
-     * In case of conflict in label keys, the applied set may differ depending on
-     * the Kubernetes version -- it's best to assume the behavior is undefined
-     * and conflicts should be avoided.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-     * 
- * - * map<string, string> labels = 6; - */ - @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; - } - /** - * - * - *
-     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-     * These will added in addition to any default label(s) that
-     * Kubernetes may apply to the node.
-     * In case of conflict in label keys, the applied set may differ depending on
-     * the Kubernetes version -- it's best to assume the behavior is undefined
-     * and conflicts should be avoided.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-     * 
- * - * map<string, string> labels = 6; - */ - @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; - } - /** - * - * - *
-     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-     * These will added in addition to any default label(s) that
-     * Kubernetes may apply to the node.
-     * In case of conflict in label keys, the applied set may differ depending on
-     * the Kubernetes version -- it's best to assume the behavior is undefined
-     * and conflicts should be avoided.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-     * 
- * - * map<string, string> labels = 6; - */ - 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(); - } - /** - * - * - *
-     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-     * These will added in addition to any default label(s) that
-     * Kubernetes may apply to the node.
-     * In case of conflict in label keys, the applied set may differ depending on
-     * the Kubernetes version -- it's best to assume the behavior is undefined
-     * and conflicts should be avoided.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-     * 
- * - * map<string, string> labels = 6; - */ - 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; - } - /** - * - * - *
-     * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-     * These will added in addition to any default label(s) that
-     * Kubernetes may apply to the node.
-     * In case of conflict in label keys, the applied set may differ depending on
-     * the Kubernetes version -- it's best to assume the behavior is undefined
-     * and conflicts should be avoided.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-     * 
- * - * map<string, string> labels = 6; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private int localSsdCount_; - /** - * - * - *
-     * The number of local SSD disks to be attached to the node.
-     * The limit for this value is dependent upon the maximum number of
-     * disks available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     * 
- * - * int32 local_ssd_count = 7; - * - * @return The localSsdCount. - */ - @java.lang.Override - public int getLocalSsdCount() { - return localSsdCount_; - } - /** - * - * - *
-     * The number of local SSD disks to be attached to the node.
-     * The limit for this value is dependent upon the maximum number of
-     * disks available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     * 
- * - * int32 local_ssd_count = 7; - * - * @param value The localSsdCount to set. - * @return This builder for chaining. - */ - public Builder setLocalSsdCount(int value) { - - localSsdCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The number of local SSD disks to be attached to the node.
-     * The limit for this value is dependent upon the maximum number of
-     * disks available on a machine per zone. See:
-     * https://cloud.google.com/compute/docs/disks/local-ssd
-     * for more information.
-     * 
- * - * int32 local_ssd_count = 7; - * - * @return This builder for chaining. - */ - public Builder clearLocalSsdCount() { - - localSsdCount_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList tags_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000008; - } - } - /** - * - * - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - * - * - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * - * - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * - * @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 list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * - * @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 list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * - * @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 list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * - * @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 list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * - * @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 list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * - * @return This builder for chaining. - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of instance tags applied to all nodes. Tags are used to identify
-     * valid sources or targets for network firewalls and are specified by
-     * the client during cluster or node pool creation. Each tag within the list
-     * must comply with RFC1035.
-     * 
- * - * repeated string tags = 8; - * - * @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 boolean preemptible_; - /** - * - * - *
-     * Whether the nodes are created as preemptible VM instances. See:
-     * https://cloud.google.com/compute/docs/instances/preemptible for more
-     * information about preemptible VM instances.
-     * 
- * - * bool preemptible = 10; - * - * @return The preemptible. - */ - @java.lang.Override - public boolean getPreemptible() { - return preemptible_; - } - /** - * - * - *
-     * Whether the nodes are created as preemptible VM instances. See:
-     * https://cloud.google.com/compute/docs/instances/preemptible for more
-     * information about preemptible VM instances.
-     * 
- * - * bool preemptible = 10; - * - * @param value The preemptible to set. - * @return This builder for chaining. - */ - public Builder setPreemptible(boolean value) { - - preemptible_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the nodes are created as preemptible VM instances. See:
-     * https://cloud.google.com/compute/docs/instances/preemptible for more
-     * information about preemptible VM instances.
-     * 
- * - * bool preemptible = 10; - * - * @return This builder for chaining. - */ - public Builder clearPreemptible() { - - preemptible_ = false; - onChanged(); - return this; - } - - private java.util.List accelerators_ = - java.util.Collections.emptyList(); - - private void ensureAcceleratorsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - accelerators_ = - new java.util.ArrayList(accelerators_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.AcceleratorConfig, - com.google.container.v1.AcceleratorConfig.Builder, - com.google.container.v1.AcceleratorConfigOrBuilder> - acceleratorsBuilder_; - - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - public java.util.List getAcceleratorsList() { - if (acceleratorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(accelerators_); - } else { - return acceleratorsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - public int getAcceleratorsCount() { - if (acceleratorsBuilder_ == null) { - return accelerators_.size(); - } else { - return acceleratorsBuilder_.getCount(); - } - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - public com.google.container.v1.AcceleratorConfig getAccelerators(int index) { - if (acceleratorsBuilder_ == null) { - return accelerators_.get(index); - } else { - return acceleratorsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - public Builder setAccelerators(int index, com.google.container.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; - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - public Builder setAccelerators( - int index, com.google.container.v1.AcceleratorConfig.Builder builderForValue) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.set(index, builderForValue.build()); - onChanged(); - } else { - acceleratorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - public Builder addAccelerators(com.google.container.v1.AcceleratorConfig value) { - if (acceleratorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcceleratorsIsMutable(); - accelerators_.add(value); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - public Builder addAccelerators(int index, com.google.container.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; - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - public Builder addAccelerators( - com.google.container.v1.AcceleratorConfig.Builder builderForValue) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.add(builderForValue.build()); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - public Builder addAccelerators( - int index, com.google.container.v1.AcceleratorConfig.Builder builderForValue) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.add(index, builderForValue.build()); - onChanged(); - } else { - acceleratorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - 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; - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - public Builder clearAccelerators() { - if (acceleratorsBuilder_ == null) { - accelerators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - acceleratorsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - public Builder removeAccelerators(int index) { - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.remove(index); - onChanged(); - } else { - acceleratorsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - public com.google.container.v1.AcceleratorConfig.Builder getAcceleratorsBuilder(int index) { - return getAcceleratorsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - public com.google.container.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index) { - if (acceleratorsBuilder_ == null) { - return accelerators_.get(index); - } else { - return acceleratorsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - public java.util.List - getAcceleratorsOrBuilderList() { - if (acceleratorsBuilder_ != null) { - return acceleratorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accelerators_); - } - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - public com.google.container.v1.AcceleratorConfig.Builder addAcceleratorsBuilder() { - return getAcceleratorsFieldBuilder() - .addBuilder(com.google.container.v1.AcceleratorConfig.getDefaultInstance()); - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - public com.google.container.v1.AcceleratorConfig.Builder addAcceleratorsBuilder(int index) { - return getAcceleratorsFieldBuilder() - .addBuilder(index, com.google.container.v1.AcceleratorConfig.getDefaultInstance()); - } - /** - * - * - *
-     * A list of hardware accelerators to be attached to each node.
-     * See https://cloud.google.com/compute/docs/gpus for more information about
-     * support for GPUs.
-     * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - public java.util.List - getAcceleratorsBuilderList() { - return getAcceleratorsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.AcceleratorConfig, - com.google.container.v1.AcceleratorConfig.Builder, - com.google.container.v1.AcceleratorConfigOrBuilder> - getAcceleratorsFieldBuilder() { - if (acceleratorsBuilder_ == null) { - acceleratorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.AcceleratorConfig, - com.google.container.v1.AcceleratorConfig.Builder, - com.google.container.v1.AcceleratorConfigOrBuilder>( - accelerators_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); - accelerators_ = null; - } - return acceleratorsBuilder_; - } - - private java.lang.Object diskType_ = ""; - /** - * - * - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 12; - * - * @return The diskType. - */ - public java.lang.String getDiskType() { - java.lang.Object ref = diskType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - diskType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 12; - * - * @return The bytes for diskType. - */ - public com.google.protobuf.ByteString getDiskTypeBytes() { - java.lang.Object ref = diskType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - diskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 12; - * - * @param value The diskType to set. - * @return This builder for chaining. - */ - public Builder setDiskType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - diskType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 12; - * - * @return This builder for chaining. - */ - public Builder clearDiskType() { - - diskType_ = getDefaultInstance().getDiskType(); - onChanged(); - return this; - } - /** - * - * - *
-     * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-     * 'pd-balanced')
-     * If unspecified, the default disk type is 'pd-standard'
-     * 
- * - * string disk_type = 12; - * - * @param value The bytes for diskType to set. - * @return This builder for chaining. - */ - public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - diskType_ = value; - onChanged(); - return this; - } - - private java.lang.Object minCpuPlatform_ = ""; - /** - * - * - *
-     * Minimum CPU platform to be used by this instance. The instance may be
-     * scheduled on the specified or newer CPU platform. Applicable values are the
-     * friendly names of CPU platforms, such as
-     * `minCpuPlatform: "Intel Haswell"` or
-     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-     * 
- * - * string min_cpu_platform = 13; - * - * @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; - } - } - /** - * - * - *
-     * Minimum CPU platform to be used by this instance. The instance may be
-     * scheduled on the specified or newer CPU platform. Applicable values are the
-     * friendly names of CPU platforms, such as
-     * `minCpuPlatform: "Intel Haswell"` or
-     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-     * 
- * - * string min_cpu_platform = 13; - * - * @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; - } - } - /** - * - * - *
-     * Minimum CPU platform to be used by this instance. The instance may be
-     * scheduled on the specified or newer CPU platform. Applicable values are the
-     * friendly names of CPU platforms, such as
-     * `minCpuPlatform: "Intel Haswell"` or
-     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-     * 
- * - * string min_cpu_platform = 13; - * - * @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; - } - /** - * - * - *
-     * Minimum CPU platform to be used by this instance. The instance may be
-     * scheduled on the specified or newer CPU platform. Applicable values are the
-     * friendly names of CPU platforms, such as
-     * `minCpuPlatform: "Intel Haswell"` or
-     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-     * 
- * - * string min_cpu_platform = 13; - * - * @return This builder for chaining. - */ - public Builder clearMinCpuPlatform() { - - minCpuPlatform_ = getDefaultInstance().getMinCpuPlatform(); - onChanged(); - return this; - } - /** - * - * - *
-     * Minimum CPU platform to be used by this instance. The instance may be
-     * scheduled on the specified or newer CPU platform. Applicable values are the
-     * friendly names of CPU platforms, such as
-     * `minCpuPlatform: "Intel Haswell"` or
-     * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-     * information, read [how to specify min CPU
-     * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-     * 
- * - * string min_cpu_platform = 13; - * - * @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; - } - - private com.google.container.v1.WorkloadMetadataConfig workloadMetadataConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadMetadataConfig, - com.google.container.v1.WorkloadMetadataConfig.Builder, - com.google.container.v1.WorkloadMetadataConfigOrBuilder> - workloadMetadataConfigBuilder_; - /** - * - * - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return Whether the workloadMetadataConfig field is set. - */ - public boolean hasWorkloadMetadataConfig() { - return workloadMetadataConfigBuilder_ != null || workloadMetadataConfig_ != null; - } - /** - * - * - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return The workloadMetadataConfig. - */ - public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { - if (workloadMetadataConfigBuilder_ == null) { - return workloadMetadataConfig_ == null - ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() - : workloadMetadataConfig_; - } else { - return workloadMetadataConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder setWorkloadMetadataConfig(com.google.container.v1.WorkloadMetadataConfig value) { - if (workloadMetadataConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workloadMetadataConfig_ = value; - onChanged(); - } else { - workloadMetadataConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder setWorkloadMetadataConfig( - com.google.container.v1.WorkloadMetadataConfig.Builder builderForValue) { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfig_ = builderForValue.build(); - onChanged(); - } else { - workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder mergeWorkloadMetadataConfig( - com.google.container.v1.WorkloadMetadataConfig value) { - if (workloadMetadataConfigBuilder_ == null) { - if (workloadMetadataConfig_ != null) { - workloadMetadataConfig_ = - com.google.container.v1.WorkloadMetadataConfig.newBuilder(workloadMetadataConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - workloadMetadataConfig_ = value; - } - onChanged(); - } else { - workloadMetadataConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder clearWorkloadMetadataConfig() { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfig_ = null; - onChanged(); - } else { - workloadMetadataConfig_ = null; - workloadMetadataConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public com.google.container.v1.WorkloadMetadataConfig.Builder - getWorkloadMetadataConfigBuilder() { - - onChanged(); - return getWorkloadMetadataConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public com.google.container.v1.WorkloadMetadataConfigOrBuilder - getWorkloadMetadataConfigOrBuilder() { - if (workloadMetadataConfigBuilder_ != null) { - return workloadMetadataConfigBuilder_.getMessageOrBuilder(); - } else { - return workloadMetadataConfig_ == null - ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() - : workloadMetadataConfig_; - } - } - /** - * - * - *
-     * The workload metadata configuration for this node.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadMetadataConfig, - com.google.container.v1.WorkloadMetadataConfig.Builder, - com.google.container.v1.WorkloadMetadataConfigOrBuilder> - getWorkloadMetadataConfigFieldBuilder() { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadMetadataConfig, - com.google.container.v1.WorkloadMetadataConfig.Builder, - com.google.container.v1.WorkloadMetadataConfigOrBuilder>( - getWorkloadMetadataConfig(), getParentForChildren(), isClean()); - workloadMetadataConfig_ = null; - } - return workloadMetadataConfigBuilder_; - } - - private java.util.List taints_ = - java.util.Collections.emptyList(); - - private void ensureTaintsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - taints_ = new java.util.ArrayList(taints_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodeTaint, - com.google.container.v1.NodeTaint.Builder, - com.google.container.v1.NodeTaintOrBuilder> - taintsBuilder_; - - /** - * - * - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - public java.util.List getTaintsList() { - if (taintsBuilder_ == null) { - return java.util.Collections.unmodifiableList(taints_); - } else { - return taintsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - public int getTaintsCount() { - if (taintsBuilder_ == null) { - return taints_.size(); - } else { - return taintsBuilder_.getCount(); - } - } - /** - * - * - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - public com.google.container.v1.NodeTaint getTaints(int index) { - if (taintsBuilder_ == null) { - return taints_.get(index); - } else { - return taintsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - public Builder setTaints(int index, com.google.container.v1.NodeTaint value) { - if (taintsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaintsIsMutable(); - taints_.set(index, value); - onChanged(); - } else { - taintsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - public Builder setTaints(int index, com.google.container.v1.NodeTaint.Builder builderForValue) { - if (taintsBuilder_ == null) { - ensureTaintsIsMutable(); - taints_.set(index, builderForValue.build()); - onChanged(); - } else { - taintsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - public Builder addTaints(com.google.container.v1.NodeTaint value) { - if (taintsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaintsIsMutable(); - taints_.add(value); - onChanged(); - } else { - taintsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - public Builder addTaints(int index, com.google.container.v1.NodeTaint value) { - if (taintsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaintsIsMutable(); - taints_.add(index, value); - onChanged(); - } else { - taintsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - public Builder addTaints(com.google.container.v1.NodeTaint.Builder builderForValue) { - if (taintsBuilder_ == null) { - ensureTaintsIsMutable(); - taints_.add(builderForValue.build()); - onChanged(); - } else { - taintsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - public Builder addTaints(int index, com.google.container.v1.NodeTaint.Builder builderForValue) { - if (taintsBuilder_ == null) { - ensureTaintsIsMutable(); - taints_.add(index, builderForValue.build()); - onChanged(); - } else { - taintsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - public Builder addAllTaints( - java.lang.Iterable values) { - if (taintsBuilder_ == null) { - ensureTaintsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, taints_); - onChanged(); - } else { - taintsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - public Builder clearTaints() { - if (taintsBuilder_ == null) { - taints_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - taintsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - public Builder removeTaints(int index) { - if (taintsBuilder_ == null) { - ensureTaintsIsMutable(); - taints_.remove(index); - onChanged(); - } else { - taintsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - public com.google.container.v1.NodeTaint.Builder getTaintsBuilder(int index) { - return getTaintsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - public com.google.container.v1.NodeTaintOrBuilder getTaintsOrBuilder(int index) { - if (taintsBuilder_ == null) { - return taints_.get(index); - } else { - return taintsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - public java.util.List - getTaintsOrBuilderList() { - if (taintsBuilder_ != null) { - return taintsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(taints_); - } - } - /** - * - * - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - public com.google.container.v1.NodeTaint.Builder addTaintsBuilder() { - return getTaintsFieldBuilder() - .addBuilder(com.google.container.v1.NodeTaint.getDefaultInstance()); - } - /** - * - * - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - public com.google.container.v1.NodeTaint.Builder addTaintsBuilder(int index) { - return getTaintsFieldBuilder() - .addBuilder(index, com.google.container.v1.NodeTaint.getDefaultInstance()); - } - /** - * - * - *
-     * List of kubernetes taints to be applied to each node.
-     * For more information, including usage and the valid values, see:
-     * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-     * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - public java.util.List getTaintsBuilderList() { - return getTaintsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodeTaint, - com.google.container.v1.NodeTaint.Builder, - com.google.container.v1.NodeTaintOrBuilder> - getTaintsFieldBuilder() { - if (taintsBuilder_ == null) { - taintsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.NodeTaint, - com.google.container.v1.NodeTaint.Builder, - com.google.container.v1.NodeTaintOrBuilder>( - taints_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); - taints_ = null; - } - return taintsBuilder_; - } - - private com.google.container.v1.SandboxConfig sandboxConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.SandboxConfig, - com.google.container.v1.SandboxConfig.Builder, - com.google.container.v1.SandboxConfigOrBuilder> - sandboxConfigBuilder_; - /** - * - * - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - * - * @return Whether the sandboxConfig field is set. - */ - public boolean hasSandboxConfig() { - return sandboxConfigBuilder_ != null || sandboxConfig_ != null; - } - /** - * - * - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - * - * @return The sandboxConfig. - */ - public com.google.container.v1.SandboxConfig getSandboxConfig() { - if (sandboxConfigBuilder_ == null) { - return sandboxConfig_ == null - ? com.google.container.v1.SandboxConfig.getDefaultInstance() - : sandboxConfig_; - } else { - return sandboxConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - */ - public Builder setSandboxConfig(com.google.container.v1.SandboxConfig value) { - if (sandboxConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sandboxConfig_ = value; - onChanged(); - } else { - sandboxConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - */ - public Builder setSandboxConfig(com.google.container.v1.SandboxConfig.Builder builderForValue) { - if (sandboxConfigBuilder_ == null) { - sandboxConfig_ = builderForValue.build(); - onChanged(); - } else { - sandboxConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - */ - public Builder mergeSandboxConfig(com.google.container.v1.SandboxConfig value) { - if (sandboxConfigBuilder_ == null) { - if (sandboxConfig_ != null) { - sandboxConfig_ = - com.google.container.v1.SandboxConfig.newBuilder(sandboxConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - sandboxConfig_ = value; - } - onChanged(); - } else { - sandboxConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - */ - public Builder clearSandboxConfig() { - if (sandboxConfigBuilder_ == null) { - sandboxConfig_ = null; - onChanged(); - } else { - sandboxConfig_ = null; - sandboxConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - */ - public com.google.container.v1.SandboxConfig.Builder getSandboxConfigBuilder() { - - onChanged(); - return getSandboxConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - */ - public com.google.container.v1.SandboxConfigOrBuilder getSandboxConfigOrBuilder() { - if (sandboxConfigBuilder_ != null) { - return sandboxConfigBuilder_.getMessageOrBuilder(); - } else { - return sandboxConfig_ == null - ? com.google.container.v1.SandboxConfig.getDefaultInstance() - : sandboxConfig_; - } - } - /** - * - * - *
-     * Sandbox configuration for this node.
-     * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.SandboxConfig, - com.google.container.v1.SandboxConfig.Builder, - com.google.container.v1.SandboxConfigOrBuilder> - getSandboxConfigFieldBuilder() { - if (sandboxConfigBuilder_ == null) { - sandboxConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.SandboxConfig, - com.google.container.v1.SandboxConfig.Builder, - com.google.container.v1.SandboxConfigOrBuilder>( - getSandboxConfig(), getParentForChildren(), isClean()); - sandboxConfig_ = null; - } - return sandboxConfigBuilder_; - } - - private java.lang.Object nodeGroup_ = ""; - /** - * - * - *
-     * Setting this field will assign instances of this
-     * pool to run on the specified node group. This is useful for running
-     * workloads on [sole tenant
-     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-     * 
- * - * string node_group = 18; - * - * @return The nodeGroup. - */ - public java.lang.String getNodeGroup() { - java.lang.Object ref = nodeGroup_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeGroup_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Setting this field will assign instances of this
-     * pool to run on the specified node group. This is useful for running
-     * workloads on [sole tenant
-     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-     * 
- * - * string node_group = 18; - * - * @return The bytes for nodeGroup. - */ - public com.google.protobuf.ByteString getNodeGroupBytes() { - java.lang.Object ref = nodeGroup_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodeGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Setting this field will assign instances of this
-     * pool to run on the specified node group. This is useful for running
-     * workloads on [sole tenant
-     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-     * 
- * - * string node_group = 18; - * - * @param value The nodeGroup to set. - * @return This builder for chaining. - */ - public Builder setNodeGroup(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeGroup_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Setting this field will assign instances of this
-     * pool to run on the specified node group. This is useful for running
-     * workloads on [sole tenant
-     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-     * 
- * - * string node_group = 18; - * - * @return This builder for chaining. - */ - public Builder clearNodeGroup() { - - nodeGroup_ = getDefaultInstance().getNodeGroup(); - onChanged(); - return this; - } - /** - * - * - *
-     * Setting this field will assign instances of this
-     * pool to run on the specified node group. This is useful for running
-     * workloads on [sole tenant
-     * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-     * 
- * - * string node_group = 18; - * - * @param value The bytes for nodeGroup to set. - * @return This builder for chaining. - */ - public Builder setNodeGroupBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeGroup_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.ReservationAffinity reservationAffinity_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReservationAffinity, - com.google.container.v1.ReservationAffinity.Builder, - com.google.container.v1.ReservationAffinityOrBuilder> - reservationAffinityBuilder_; - /** - * - * - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - * - * @return Whether the reservationAffinity field is set. - */ - public boolean hasReservationAffinity() { - return reservationAffinityBuilder_ != null || reservationAffinity_ != null; - } - /** - * - * - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - * - * @return The reservationAffinity. - */ - public com.google.container.v1.ReservationAffinity getReservationAffinity() { - if (reservationAffinityBuilder_ == null) { - return reservationAffinity_ == null - ? com.google.container.v1.ReservationAffinity.getDefaultInstance() - : reservationAffinity_; - } else { - return reservationAffinityBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - public Builder setReservationAffinity(com.google.container.v1.ReservationAffinity value) { - if (reservationAffinityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reservationAffinity_ = value; - onChanged(); - } else { - reservationAffinityBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - public Builder setReservationAffinity( - com.google.container.v1.ReservationAffinity.Builder builderForValue) { - if (reservationAffinityBuilder_ == null) { - reservationAffinity_ = builderForValue.build(); - onChanged(); - } else { - reservationAffinityBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - public Builder mergeReservationAffinity(com.google.container.v1.ReservationAffinity value) { - if (reservationAffinityBuilder_ == null) { - if (reservationAffinity_ != null) { - reservationAffinity_ = - com.google.container.v1.ReservationAffinity.newBuilder(reservationAffinity_) - .mergeFrom(value) - .buildPartial(); - } else { - reservationAffinity_ = value; - } - onChanged(); - } else { - reservationAffinityBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - public Builder clearReservationAffinity() { - if (reservationAffinityBuilder_ == null) { - reservationAffinity_ = null; - onChanged(); - } else { - reservationAffinity_ = null; - reservationAffinityBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - public com.google.container.v1.ReservationAffinity.Builder getReservationAffinityBuilder() { - - onChanged(); - return getReservationAffinityFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - public com.google.container.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { - if (reservationAffinityBuilder_ != null) { - return reservationAffinityBuilder_.getMessageOrBuilder(); - } else { - return reservationAffinity_ == null - ? com.google.container.v1.ReservationAffinity.getDefaultInstance() - : reservationAffinity_; - } - } - /** - * - * - *
-     * The optional reservation affinity. Setting this field will apply
-     * the specified [Zonal Compute
-     * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-     * to this node pool.
-     * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReservationAffinity, - com.google.container.v1.ReservationAffinity.Builder, - com.google.container.v1.ReservationAffinityOrBuilder> - getReservationAffinityFieldBuilder() { - if (reservationAffinityBuilder_ == null) { - reservationAffinityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ReservationAffinity, - com.google.container.v1.ReservationAffinity.Builder, - com.google.container.v1.ReservationAffinityOrBuilder>( - getReservationAffinity(), getParentForChildren(), isClean()); - reservationAffinity_ = null; - } - return reservationAffinityBuilder_; - } - - private com.google.container.v1.ShieldedInstanceConfig shieldedInstanceConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedInstanceConfig, - com.google.container.v1.ShieldedInstanceConfig.Builder, - com.google.container.v1.ShieldedInstanceConfigOrBuilder> - shieldedInstanceConfigBuilder_; - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - * - * @return Whether the shieldedInstanceConfig field is set. - */ - public boolean hasShieldedInstanceConfig() { - return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - * - * @return The shieldedInstanceConfig. - */ - public com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig() { - if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null - ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; - } else { - return shieldedInstanceConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public Builder setShieldedInstanceConfig(com.google.container.v1.ShieldedInstanceConfig value) { - if (shieldedInstanceConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - shieldedInstanceConfig_ = value; - onChanged(); - } else { - shieldedInstanceConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public Builder setShieldedInstanceConfig( - com.google.container.v1.ShieldedInstanceConfig.Builder builderForValue) { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = builderForValue.build(); - onChanged(); - } else { - shieldedInstanceConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public Builder mergeShieldedInstanceConfig( - com.google.container.v1.ShieldedInstanceConfig value) { - if (shieldedInstanceConfigBuilder_ == null) { - if (shieldedInstanceConfig_ != null) { - shieldedInstanceConfig_ = - com.google.container.v1.ShieldedInstanceConfig.newBuilder(shieldedInstanceConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - shieldedInstanceConfig_ = value; - } - onChanged(); - } else { - shieldedInstanceConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public Builder clearShieldedInstanceConfig() { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfig_ = null; - onChanged(); - } else { - shieldedInstanceConfig_ = null; - shieldedInstanceConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public com.google.container.v1.ShieldedInstanceConfig.Builder - getShieldedInstanceConfigBuilder() { - - onChanged(); - return getShieldedInstanceConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - public com.google.container.v1.ShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder() { - if (shieldedInstanceConfigBuilder_ != null) { - return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); - } else { - return shieldedInstanceConfig_ == null - ? com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; - } - } - /** - * - * - *
-     * Shielded Instance options.
-     * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedInstanceConfig, - com.google.container.v1.ShieldedInstanceConfig.Builder, - com.google.container.v1.ShieldedInstanceConfigOrBuilder> - getShieldedInstanceConfigFieldBuilder() { - if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ShieldedInstanceConfig, - com.google.container.v1.ShieldedInstanceConfig.Builder, - com.google.container.v1.ShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), getParentForChildren(), isClean()); - shieldedInstanceConfig_ = null; - } - return shieldedInstanceConfigBuilder_; - } - - private java.lang.Object bootDiskKmsKey_ = ""; - /** - * - * - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 23; - * - * @return The bootDiskKmsKey. - */ - public java.lang.String getBootDiskKmsKey() { - java.lang.Object ref = bootDiskKmsKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bootDiskKmsKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 23; - * - * @return The bytes for bootDiskKmsKey. - */ - public com.google.protobuf.ByteString getBootDiskKmsKeyBytes() { - java.lang.Object ref = bootDiskKmsKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bootDiskKmsKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 23; - * - * @param value The bootDiskKmsKey to set. - * @return This builder for chaining. - */ - public Builder setBootDiskKmsKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - bootDiskKmsKey_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 23; - * - * @return This builder for chaining. - */ - public Builder clearBootDiskKmsKey() { - - bootDiskKmsKey_ = getDefaultInstance().getBootDiskKmsKey(); - onChanged(); - return this; - } - /** - * - * - *
-     * The Customer Managed Encryption Key used to encrypt the boot disk attached
-     * to each node in the node pool. This should be of the form
-     * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-     * For more information about protecting resources with Cloud KMS Keys please
-     * see:
-     * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-     * 
- * - * string boot_disk_kms_key = 23; - * - * @param value The bytes for bootDiskKmsKey to set. - * @return This builder for chaining. - */ - public Builder setBootDiskKmsKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - bootDiskKmsKey_ = 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.container.v1.NodeConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodeConfig) - private static final com.google.container.v1.NodeConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodeConfig(); - } - - public static com.google.container.v1.NodeConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeConfig(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.container.v1.NodeConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java deleted file mode 100644 index a01dfa87..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java +++ /dev/null @@ -1,1007 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface NodeConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodeConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The name of a Google Compute Engine [machine
-   * type](https://cloud.google.com/compute/docs/machine-types)
-   * If unspecified, the default machine type is `e2-medium`.
-   * 
- * - * string machine_type = 1; - * - * @return The machineType. - */ - java.lang.String getMachineType(); - /** - * - * - *
-   * The name of a Google Compute Engine [machine
-   * type](https://cloud.google.com/compute/docs/machine-types)
-   * If unspecified, the default machine type is `e2-medium`.
-   * 
- * - * string machine_type = 1; - * - * @return The bytes for machineType. - */ - com.google.protobuf.ByteString getMachineTypeBytes(); - - /** - * - * - *
-   * Size of the disk attached to each node, specified in GB.
-   * The smallest allowed disk size is 10GB.
-   * If unspecified, the default disk size is 100GB.
-   * 
- * - * int32 disk_size_gb = 2; - * - * @return The diskSizeGb. - */ - int getDiskSizeGb(); - - /** - * - * - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 3; - * - * @return A list containing the oauthScopes. - */ - java.util.List getOauthScopesList(); - /** - * - * - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 3; - * - * @return The count of oauthScopes. - */ - int getOauthScopesCount(); - /** - * - * - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 3; - * - * @param index The index of the element to return. - * @return The oauthScopes at the given index. - */ - java.lang.String getOauthScopes(int index); - /** - * - * - *
-   * The set of Google API scopes to be made available on all of the
-   * node VMs under the "default" service account.
-   * The following scopes are recommended, but not required, and by default are
-   * not included:
-   * * `https://www.googleapis.com/auth/compute` is required for mounting
-   * persistent storage on your nodes.
-   * * `https://www.googleapis.com/auth/devstorage.read_only` is required for
-   * communicating with **gcr.io**
-   * (the [Google Container
-   * Registry](https://cloud.google.com/container-registry/)).
-   * If unspecified, no scopes are added, unless Cloud Logging or Cloud
-   * Monitoring are enabled, in which case their required scopes will be added.
-   * 
- * - * repeated string oauth_scopes = 3; - * - * @param index The index of the value to return. - * @return The bytes of the oauthScopes at the given index. - */ - com.google.protobuf.ByteString getOauthScopesBytes(int index); - - /** - * - * - *
-   * The Google Cloud Platform Service Account to be used by the node VMs.
-   * Specify the email address of the Service Account; otherwise, if no Service
-   * Account is specified, the "default" service account is used.
-   * 
- * - * string service_account = 9; - * - * @return The serviceAccount. - */ - java.lang.String getServiceAccount(); - /** - * - * - *
-   * The Google Cloud Platform Service Account to be used by the node VMs.
-   * Specify the email address of the Service Account; otherwise, if no Service
-   * Account is specified, the "default" service account is used.
-   * 
- * - * string service_account = 9; - * - * @return The bytes for serviceAccount. - */ - com.google.protobuf.ByteString getServiceAccountBytes(); - - /** - * - * - *
-   * The metadata key/value pairs assigned to instances in the cluster.
-   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
-   * in length. These are reflected as part of a URL in the metadata server.
-   * Additionally, to avoid ambiguity, keys must not conflict with any other
-   * metadata keys for the project or be one of the reserved keys:
-   *  - "cluster-location"
-   *  - "cluster-name"
-   *  - "cluster-uid"
-   *  - "configure-sh"
-   *  - "containerd-configure-sh"
-   *  - "enable-os-login"
-   *  - "gci-ensure-gke-docker"
-   *  - "gci-metrics-enabled"
-   *  - "gci-update-strategy"
-   *  - "instance-template"
-   *  - "kube-env"
-   *  - "startup-script"
-   *  - "user-data"
-   *  - "disable-address-manager"
-   *  - "windows-startup-script-ps1"
-   *  - "common-psm1"
-   *  - "k8s-node-setup-psm1"
-   *  - "install-ssh-psm1"
-   *  - "user-profile-psm1"
-   * The following keys are reserved for Windows nodes:
-   *  - "serial-port-logging-enable"
-   * Values are free-form strings, and only have meaning as interpreted by
-   * the image running in the instance. The only restriction placed on them is
-   * that each value's size must be less than or equal to 32 KB.
-   * The total size of all keys and values must be less than 512 KB.
-   * 
- * - * map<string, string> metadata = 4; - */ - int getMetadataCount(); - /** - * - * - *
-   * The metadata key/value pairs assigned to instances in the cluster.
-   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
-   * in length. These are reflected as part of a URL in the metadata server.
-   * Additionally, to avoid ambiguity, keys must not conflict with any other
-   * metadata keys for the project or be one of the reserved keys:
-   *  - "cluster-location"
-   *  - "cluster-name"
-   *  - "cluster-uid"
-   *  - "configure-sh"
-   *  - "containerd-configure-sh"
-   *  - "enable-os-login"
-   *  - "gci-ensure-gke-docker"
-   *  - "gci-metrics-enabled"
-   *  - "gci-update-strategy"
-   *  - "instance-template"
-   *  - "kube-env"
-   *  - "startup-script"
-   *  - "user-data"
-   *  - "disable-address-manager"
-   *  - "windows-startup-script-ps1"
-   *  - "common-psm1"
-   *  - "k8s-node-setup-psm1"
-   *  - "install-ssh-psm1"
-   *  - "user-profile-psm1"
-   * The following keys are reserved for Windows nodes:
-   *  - "serial-port-logging-enable"
-   * Values are free-form strings, and only have meaning as interpreted by
-   * the image running in the instance. The only restriction placed on them is
-   * that each value's size must be less than or equal to 32 KB.
-   * The total size of all keys and values must be less than 512 KB.
-   * 
- * - * map<string, string> metadata = 4; - */ - boolean containsMetadata(java.lang.String key); - /** Use {@link #getMetadataMap()} instead. */ - @java.lang.Deprecated - java.util.Map getMetadata(); - /** - * - * - *
-   * The metadata key/value pairs assigned to instances in the cluster.
-   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
-   * in length. These are reflected as part of a URL in the metadata server.
-   * Additionally, to avoid ambiguity, keys must not conflict with any other
-   * metadata keys for the project or be one of the reserved keys:
-   *  - "cluster-location"
-   *  - "cluster-name"
-   *  - "cluster-uid"
-   *  - "configure-sh"
-   *  - "containerd-configure-sh"
-   *  - "enable-os-login"
-   *  - "gci-ensure-gke-docker"
-   *  - "gci-metrics-enabled"
-   *  - "gci-update-strategy"
-   *  - "instance-template"
-   *  - "kube-env"
-   *  - "startup-script"
-   *  - "user-data"
-   *  - "disable-address-manager"
-   *  - "windows-startup-script-ps1"
-   *  - "common-psm1"
-   *  - "k8s-node-setup-psm1"
-   *  - "install-ssh-psm1"
-   *  - "user-profile-psm1"
-   * The following keys are reserved for Windows nodes:
-   *  - "serial-port-logging-enable"
-   * Values are free-form strings, and only have meaning as interpreted by
-   * the image running in the instance. The only restriction placed on them is
-   * that each value's size must be less than or equal to 32 KB.
-   * The total size of all keys and values must be less than 512 KB.
-   * 
- * - * map<string, string> metadata = 4; - */ - java.util.Map getMetadataMap(); - /** - * - * - *
-   * The metadata key/value pairs assigned to instances in the cluster.
-   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
-   * in length. These are reflected as part of a URL in the metadata server.
-   * Additionally, to avoid ambiguity, keys must not conflict with any other
-   * metadata keys for the project or be one of the reserved keys:
-   *  - "cluster-location"
-   *  - "cluster-name"
-   *  - "cluster-uid"
-   *  - "configure-sh"
-   *  - "containerd-configure-sh"
-   *  - "enable-os-login"
-   *  - "gci-ensure-gke-docker"
-   *  - "gci-metrics-enabled"
-   *  - "gci-update-strategy"
-   *  - "instance-template"
-   *  - "kube-env"
-   *  - "startup-script"
-   *  - "user-data"
-   *  - "disable-address-manager"
-   *  - "windows-startup-script-ps1"
-   *  - "common-psm1"
-   *  - "k8s-node-setup-psm1"
-   *  - "install-ssh-psm1"
-   *  - "user-profile-psm1"
-   * The following keys are reserved for Windows nodes:
-   *  - "serial-port-logging-enable"
-   * Values are free-form strings, and only have meaning as interpreted by
-   * the image running in the instance. The only restriction placed on them is
-   * that each value's size must be less than or equal to 32 KB.
-   * The total size of all keys and values must be less than 512 KB.
-   * 
- * - * map<string, string> metadata = 4; - */ - java.lang.String getMetadataOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * The metadata key/value pairs assigned to instances in the cluster.
-   * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes
-   * in length. These are reflected as part of a URL in the metadata server.
-   * Additionally, to avoid ambiguity, keys must not conflict with any other
-   * metadata keys for the project or be one of the reserved keys:
-   *  - "cluster-location"
-   *  - "cluster-name"
-   *  - "cluster-uid"
-   *  - "configure-sh"
-   *  - "containerd-configure-sh"
-   *  - "enable-os-login"
-   *  - "gci-ensure-gke-docker"
-   *  - "gci-metrics-enabled"
-   *  - "gci-update-strategy"
-   *  - "instance-template"
-   *  - "kube-env"
-   *  - "startup-script"
-   *  - "user-data"
-   *  - "disable-address-manager"
-   *  - "windows-startup-script-ps1"
-   *  - "common-psm1"
-   *  - "k8s-node-setup-psm1"
-   *  - "install-ssh-psm1"
-   *  - "user-profile-psm1"
-   * The following keys are reserved for Windows nodes:
-   *  - "serial-port-logging-enable"
-   * Values are free-form strings, and only have meaning as interpreted by
-   * the image running in the instance. The only restriction placed on them is
-   * that each value's size must be less than or equal to 32 KB.
-   * The total size of all keys and values must be less than 512 KB.
-   * 
- * - * map<string, string> metadata = 4; - */ - java.lang.String getMetadataOrThrow(java.lang.String key); - - /** - * - * - *
-   * The image type to use for this node. Note that for a given image type,
-   * the latest version of it will be used.
-   * 
- * - * string image_type = 5; - * - * @return The imageType. - */ - java.lang.String getImageType(); - /** - * - * - *
-   * The image type to use for this node. Note that for a given image type,
-   * the latest version of it will be used.
-   * 
- * - * string image_type = 5; - * - * @return The bytes for imageType. - */ - com.google.protobuf.ByteString getImageTypeBytes(); - - /** - * - * - *
-   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-   * These will added in addition to any default label(s) that
-   * Kubernetes may apply to the node.
-   * In case of conflict in label keys, the applied set may differ depending on
-   * the Kubernetes version -- it's best to assume the behavior is undefined
-   * and conflicts should be avoided.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-   * 
- * - * map<string, string> labels = 6; - */ - int getLabelsCount(); - /** - * - * - *
-   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-   * These will added in addition to any default label(s) that
-   * Kubernetes may apply to the node.
-   * In case of conflict in label keys, the applied set may differ depending on
-   * the Kubernetes version -- it's best to assume the behavior is undefined
-   * and conflicts should be avoided.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-   * 
- * - * map<string, string> labels = 6; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-   * These will added in addition to any default label(s) that
-   * Kubernetes may apply to the node.
-   * In case of conflict in label keys, the applied set may differ depending on
-   * the Kubernetes version -- it's best to assume the behavior is undefined
-   * and conflicts should be avoided.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-   * 
- * - * map<string, string> labels = 6; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-   * These will added in addition to any default label(s) that
-   * Kubernetes may apply to the node.
-   * In case of conflict in label keys, the applied set may differ depending on
-   * the Kubernetes version -- it's best to assume the behavior is undefined
-   * and conflicts should be avoided.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-   * 
- * - * map<string, string> labels = 6; - */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * The map of Kubernetes labels (key/value pairs) to be applied to each node.
-   * These will added in addition to any default label(s) that
-   * Kubernetes may apply to the node.
-   * In case of conflict in label keys, the applied set may differ depending on
-   * the Kubernetes version -- it's best to assume the behavior is undefined
-   * and conflicts should be avoided.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-   * 
- * - * map<string, string> labels = 6; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * The number of local SSD disks to be attached to the node.
-   * The limit for this value is dependent upon the maximum number of
-   * disks available on a machine per zone. See:
-   * https://cloud.google.com/compute/docs/disks/local-ssd
-   * for more information.
-   * 
- * - * int32 local_ssd_count = 7; - * - * @return The localSsdCount. - */ - int getLocalSsdCount(); - - /** - * - * - *
-   * The list of instance tags applied to all nodes. Tags are used to identify
-   * valid sources or targets for network firewalls and are specified by
-   * the client during cluster or node pool creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * repeated string tags = 8; - * - * @return A list containing the tags. - */ - java.util.List getTagsList(); - /** - * - * - *
-   * The list of instance tags applied to all nodes. Tags are used to identify
-   * valid sources or targets for network firewalls and are specified by
-   * the client during cluster or node pool creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * repeated string tags = 8; - * - * @return The count of tags. - */ - int getTagsCount(); - /** - * - * - *
-   * The list of instance tags applied to all nodes. Tags are used to identify
-   * valid sources or targets for network firewalls and are specified by
-   * the client during cluster or node pool creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * repeated string tags = 8; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - java.lang.String getTags(int index); - /** - * - * - *
-   * The list of instance tags applied to all nodes. Tags are used to identify
-   * valid sources or targets for network firewalls and are specified by
-   * the client during cluster or node pool creation. Each tag within the list
-   * must comply with RFC1035.
-   * 
- * - * repeated string tags = 8; - * - * @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); - - /** - * - * - *
-   * Whether the nodes are created as preemptible VM instances. See:
-   * https://cloud.google.com/compute/docs/instances/preemptible for more
-   * information about preemptible VM instances.
-   * 
- * - * bool preemptible = 10; - * - * @return The preemptible. - */ - boolean getPreemptible(); - - /** - * - * - *
-   * A list of hardware accelerators to be attached to each node.
-   * See https://cloud.google.com/compute/docs/gpus for more information about
-   * support for GPUs.
-   * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - java.util.List getAcceleratorsList(); - /** - * - * - *
-   * A list of hardware accelerators to be attached to each node.
-   * See https://cloud.google.com/compute/docs/gpus for more information about
-   * support for GPUs.
-   * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - com.google.container.v1.AcceleratorConfig getAccelerators(int index); - /** - * - * - *
-   * A list of hardware accelerators to be attached to each node.
-   * See https://cloud.google.com/compute/docs/gpus for more information about
-   * support for GPUs.
-   * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - int getAcceleratorsCount(); - /** - * - * - *
-   * A list of hardware accelerators to be attached to each node.
-   * See https://cloud.google.com/compute/docs/gpus for more information about
-   * support for GPUs.
-   * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - java.util.List - getAcceleratorsOrBuilderList(); - /** - * - * - *
-   * A list of hardware accelerators to be attached to each node.
-   * See https://cloud.google.com/compute/docs/gpus for more information about
-   * support for GPUs.
-   * 
- * - * repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - com.google.container.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index); - - /** - * - * - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 12; - * - * @return The diskType. - */ - java.lang.String getDiskType(); - /** - * - * - *
-   * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
-   * 'pd-balanced')
-   * If unspecified, the default disk type is 'pd-standard'
-   * 
- * - * string disk_type = 12; - * - * @return The bytes for diskType. - */ - com.google.protobuf.ByteString getDiskTypeBytes(); - - /** - * - * - *
-   * Minimum CPU platform to be used by this instance. The instance may be
-   * scheduled on the specified or newer CPU platform. Applicable values are the
-   * friendly names of CPU platforms, such as
-   * `minCpuPlatform: "Intel Haswell"` or
-   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-   * 
- * - * string min_cpu_platform = 13; - * - * @return The minCpuPlatform. - */ - java.lang.String getMinCpuPlatform(); - /** - * - * - *
-   * Minimum CPU platform to be used by this instance. The instance may be
-   * scheduled on the specified or newer CPU platform. Applicable values are the
-   * friendly names of CPU platforms, such as
-   * `minCpuPlatform: "Intel Haswell"` or
-   * `minCpuPlatform: "Intel Sandy Bridge"`. For more
-   * information, read [how to specify min CPU
-   * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform)
-   * 
- * - * string min_cpu_platform = 13; - * - * @return The bytes for minCpuPlatform. - */ - com.google.protobuf.ByteString getMinCpuPlatformBytes(); - - /** - * - * - *
-   * The workload metadata configuration for this node.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return Whether the workloadMetadataConfig field is set. - */ - boolean hasWorkloadMetadataConfig(); - /** - * - * - *
-   * The workload metadata configuration for this node.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return The workloadMetadataConfig. - */ - com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig(); - /** - * - * - *
-   * The workload metadata configuration for this node.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - com.google.container.v1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder(); - - /** - * - * - *
-   * List of kubernetes taints to be applied to each node.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-   * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - java.util.List getTaintsList(); - /** - * - * - *
-   * List of kubernetes taints to be applied to each node.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-   * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - com.google.container.v1.NodeTaint getTaints(int index); - /** - * - * - *
-   * List of kubernetes taints to be applied to each node.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-   * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - int getTaintsCount(); - /** - * - * - *
-   * List of kubernetes taints to be applied to each node.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-   * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - java.util.List getTaintsOrBuilderList(); - /** - * - * - *
-   * List of kubernetes taints to be applied to each node.
-   * For more information, including usage and the valid values, see:
-   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
-   * 
- * - * repeated .google.container.v1.NodeTaint taints = 15; - */ - com.google.container.v1.NodeTaintOrBuilder getTaintsOrBuilder(int index); - - /** - * - * - *
-   * Sandbox configuration for this node.
-   * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - * - * @return Whether the sandboxConfig field is set. - */ - boolean hasSandboxConfig(); - /** - * - * - *
-   * Sandbox configuration for this node.
-   * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - * - * @return The sandboxConfig. - */ - com.google.container.v1.SandboxConfig getSandboxConfig(); - /** - * - * - *
-   * Sandbox configuration for this node.
-   * 
- * - * .google.container.v1.SandboxConfig sandbox_config = 17; - */ - com.google.container.v1.SandboxConfigOrBuilder getSandboxConfigOrBuilder(); - - /** - * - * - *
-   * Setting this field will assign instances of this
-   * pool to run on the specified node group. This is useful for running
-   * workloads on [sole tenant
-   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-   * 
- * - * string node_group = 18; - * - * @return The nodeGroup. - */ - java.lang.String getNodeGroup(); - /** - * - * - *
-   * Setting this field will assign instances of this
-   * pool to run on the specified node group. This is useful for running
-   * workloads on [sole tenant
-   * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes).
-   * 
- * - * string node_group = 18; - * - * @return The bytes for nodeGroup. - */ - com.google.protobuf.ByteString getNodeGroupBytes(); - - /** - * - * - *
-   * The optional reservation affinity. Setting this field will apply
-   * the specified [Zonal Compute
-   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * to this node pool.
-   * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - * - * @return Whether the reservationAffinity field is set. - */ - boolean hasReservationAffinity(); - /** - * - * - *
-   * The optional reservation affinity. Setting this field will apply
-   * the specified [Zonal Compute
-   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * to this node pool.
-   * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - * - * @return The reservationAffinity. - */ - com.google.container.v1.ReservationAffinity getReservationAffinity(); - /** - * - * - *
-   * The optional reservation affinity. Setting this field will apply
-   * the specified [Zonal Compute
-   * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * to this node pool.
-   * 
- * - * .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - com.google.container.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder(); - - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - * - * @return Whether the shieldedInstanceConfig field is set. - */ - boolean hasShieldedInstanceConfig(); - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - * - * @return The shieldedInstanceConfig. - */ - com.google.container.v1.ShieldedInstanceConfig getShieldedInstanceConfig(); - /** - * - * - *
-   * Shielded Instance options.
-   * 
- * - * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - com.google.container.v1.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); - - /** - * - * - *
-   * The Customer Managed Encryption Key used to encrypt the boot disk attached
-   * to each node in the node pool. This should be of the form
-   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-   * For more information about protecting resources with Cloud KMS Keys please
-   * see:
-   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-   * 
- * - * string boot_disk_kms_key = 23; - * - * @return The bootDiskKmsKey. - */ - java.lang.String getBootDiskKmsKey(); - /** - * - * - *
-   * The Customer Managed Encryption Key used to encrypt the boot disk attached
-   * to each node in the node pool. This should be of the form
-   * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME].
-   * For more information about protecting resources with Cloud KMS Keys please
-   * see:
-   * https://cloud.google.com/compute/docs/disks/customer-managed-encryption
-   * 
- * - * string boot_disk_kms_key = 23; - * - * @return The bytes for bootDiskKmsKey. - */ - com.google.protobuf.ByteString getBootDiskKmsKeyBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagement.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagement.java deleted file mode 100644 index a2d7fd21..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagement.java +++ /dev/null @@ -1,933 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * NodeManagement defines the set of node management services turned on for the
- * node pool.
- * 
- * - * Protobuf type {@code google.container.v1.NodeManagement} - */ -public final class NodeManagement extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodeManagement) - NodeManagementOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeManagement.newBuilder() to construct. - private NodeManagement(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodeManagement() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodeManagement(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private NodeManagement( - 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: - { - autoUpgrade_ = input.readBool(); - break; - } - case 16: - { - autoRepair_ = input.readBool(); - break; - } - case 82: - { - com.google.container.v1.AutoUpgradeOptions.Builder subBuilder = null; - if (upgradeOptions_ != null) { - subBuilder = upgradeOptions_.toBuilder(); - } - upgradeOptions_ = - input.readMessage( - com.google.container.v1.AutoUpgradeOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(upgradeOptions_); - upgradeOptions_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeManagement_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeManagement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeManagement.class, - com.google.container.v1.NodeManagement.Builder.class); - } - - public static final int AUTO_UPGRADE_FIELD_NUMBER = 1; - private boolean autoUpgrade_; - /** - * - * - *
-   * A flag that specifies whether node auto-upgrade is enabled for the node
-   * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
-   * up to date with the latest release version of Kubernetes.
-   * 
- * - * bool auto_upgrade = 1; - * - * @return The autoUpgrade. - */ - @java.lang.Override - public boolean getAutoUpgrade() { - return autoUpgrade_; - } - - public static final int AUTO_REPAIR_FIELD_NUMBER = 2; - private boolean autoRepair_; - /** - * - * - *
-   * A flag that specifies whether the node auto-repair is enabled for the node
-   * pool. If enabled, the nodes in this node pool will be monitored and, if
-   * they fail health checks too many times, an automatic repair action will be
-   * triggered.
-   * 
- * - * bool auto_repair = 2; - * - * @return The autoRepair. - */ - @java.lang.Override - public boolean getAutoRepair() { - return autoRepair_; - } - - public static final int UPGRADE_OPTIONS_FIELD_NUMBER = 10; - private com.google.container.v1.AutoUpgradeOptions upgradeOptions_; - /** - * - * - *
-   * Specifies the Auto Upgrade knobs for the node pool.
-   * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - * - * @return Whether the upgradeOptions field is set. - */ - @java.lang.Override - public boolean hasUpgradeOptions() { - return upgradeOptions_ != null; - } - /** - * - * - *
-   * Specifies the Auto Upgrade knobs for the node pool.
-   * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - * - * @return The upgradeOptions. - */ - @java.lang.Override - public com.google.container.v1.AutoUpgradeOptions getUpgradeOptions() { - return upgradeOptions_ == null - ? com.google.container.v1.AutoUpgradeOptions.getDefaultInstance() - : upgradeOptions_; - } - /** - * - * - *
-   * Specifies the Auto Upgrade knobs for the node pool.
-   * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - @java.lang.Override - public com.google.container.v1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder() { - return getUpgradeOptions(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (autoUpgrade_ != false) { - output.writeBool(1, autoUpgrade_); - } - if (autoRepair_ != false) { - output.writeBool(2, autoRepair_); - } - if (upgradeOptions_ != null) { - output.writeMessage(10, getUpgradeOptions()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (autoUpgrade_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, autoUpgrade_); - } - if (autoRepair_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, autoRepair_); - } - if (upgradeOptions_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpgradeOptions()); - } - 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.container.v1.NodeManagement)) { - return super.equals(obj); - } - com.google.container.v1.NodeManagement other = (com.google.container.v1.NodeManagement) obj; - - if (getAutoUpgrade() != other.getAutoUpgrade()) return false; - if (getAutoRepair() != other.getAutoRepair()) return false; - if (hasUpgradeOptions() != other.hasUpgradeOptions()) return false; - if (hasUpgradeOptions()) { - if (!getUpgradeOptions().equals(other.getUpgradeOptions())) 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) + AUTO_UPGRADE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoUpgrade()); - hash = (37 * hash) + AUTO_REPAIR_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoRepair()); - if (hasUpgradeOptions()) { - hash = (37 * hash) + UPGRADE_OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getUpgradeOptions().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodeManagement parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeManagement parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeManagement parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeManagement parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeManagement parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeManagement parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeManagement parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeManagement parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodeManagement parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeManagement parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodeManagement parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeManagement parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NodeManagement prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * NodeManagement defines the set of node management services turned on for the
-   * node pool.
-   * 
- * - * Protobuf type {@code google.container.v1.NodeManagement} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodeManagement) - com.google.container.v1.NodeManagementOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeManagement_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeManagement_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeManagement.class, - com.google.container.v1.NodeManagement.Builder.class); - } - - // Construct using com.google.container.v1.NodeManagement.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(); - autoUpgrade_ = false; - - autoRepair_ = false; - - if (upgradeOptionsBuilder_ == null) { - upgradeOptions_ = null; - } else { - upgradeOptions_ = null; - upgradeOptionsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeManagement_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodeManagement getDefaultInstanceForType() { - return com.google.container.v1.NodeManagement.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodeManagement build() { - com.google.container.v1.NodeManagement result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodeManagement buildPartial() { - com.google.container.v1.NodeManagement result = - new com.google.container.v1.NodeManagement(this); - result.autoUpgrade_ = autoUpgrade_; - result.autoRepair_ = autoRepair_; - if (upgradeOptionsBuilder_ == null) { - result.upgradeOptions_ = upgradeOptions_; - } else { - result.upgradeOptions_ = upgradeOptionsBuilder_.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.container.v1.NodeManagement) { - return mergeFrom((com.google.container.v1.NodeManagement) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodeManagement other) { - if (other == com.google.container.v1.NodeManagement.getDefaultInstance()) return this; - if (other.getAutoUpgrade() != false) { - setAutoUpgrade(other.getAutoUpgrade()); - } - if (other.getAutoRepair() != false) { - setAutoRepair(other.getAutoRepair()); - } - if (other.hasUpgradeOptions()) { - mergeUpgradeOptions(other.getUpgradeOptions()); - } - 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.container.v1.NodeManagement parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.NodeManagement) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean autoUpgrade_; - /** - * - * - *
-     * A flag that specifies whether node auto-upgrade is enabled for the node
-     * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
-     * up to date with the latest release version of Kubernetes.
-     * 
- * - * bool auto_upgrade = 1; - * - * @return The autoUpgrade. - */ - @java.lang.Override - public boolean getAutoUpgrade() { - return autoUpgrade_; - } - /** - * - * - *
-     * A flag that specifies whether node auto-upgrade is enabled for the node
-     * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
-     * up to date with the latest release version of Kubernetes.
-     * 
- * - * bool auto_upgrade = 1; - * - * @param value The autoUpgrade to set. - * @return This builder for chaining. - */ - public Builder setAutoUpgrade(boolean value) { - - autoUpgrade_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A flag that specifies whether node auto-upgrade is enabled for the node
-     * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
-     * up to date with the latest release version of Kubernetes.
-     * 
- * - * bool auto_upgrade = 1; - * - * @return This builder for chaining. - */ - public Builder clearAutoUpgrade() { - - autoUpgrade_ = false; - onChanged(); - return this; - } - - private boolean autoRepair_; - /** - * - * - *
-     * A flag that specifies whether the node auto-repair is enabled for the node
-     * pool. If enabled, the nodes in this node pool will be monitored and, if
-     * they fail health checks too many times, an automatic repair action will be
-     * triggered.
-     * 
- * - * bool auto_repair = 2; - * - * @return The autoRepair. - */ - @java.lang.Override - public boolean getAutoRepair() { - return autoRepair_; - } - /** - * - * - *
-     * A flag that specifies whether the node auto-repair is enabled for the node
-     * pool. If enabled, the nodes in this node pool will be monitored and, if
-     * they fail health checks too many times, an automatic repair action will be
-     * triggered.
-     * 
- * - * bool auto_repair = 2; - * - * @param value The autoRepair to set. - * @return This builder for chaining. - */ - public Builder setAutoRepair(boolean value) { - - autoRepair_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A flag that specifies whether the node auto-repair is enabled for the node
-     * pool. If enabled, the nodes in this node pool will be monitored and, if
-     * they fail health checks too many times, an automatic repair action will be
-     * triggered.
-     * 
- * - * bool auto_repair = 2; - * - * @return This builder for chaining. - */ - public Builder clearAutoRepair() { - - autoRepair_ = false; - onChanged(); - return this; - } - - private com.google.container.v1.AutoUpgradeOptions upgradeOptions_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AutoUpgradeOptions, - com.google.container.v1.AutoUpgradeOptions.Builder, - com.google.container.v1.AutoUpgradeOptionsOrBuilder> - upgradeOptionsBuilder_; - /** - * - * - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - * - * @return Whether the upgradeOptions field is set. - */ - public boolean hasUpgradeOptions() { - return upgradeOptionsBuilder_ != null || upgradeOptions_ != null; - } - /** - * - * - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - * - * @return The upgradeOptions. - */ - public com.google.container.v1.AutoUpgradeOptions getUpgradeOptions() { - if (upgradeOptionsBuilder_ == null) { - return upgradeOptions_ == null - ? com.google.container.v1.AutoUpgradeOptions.getDefaultInstance() - : upgradeOptions_; - } else { - return upgradeOptionsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - public Builder setUpgradeOptions(com.google.container.v1.AutoUpgradeOptions value) { - if (upgradeOptionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - upgradeOptions_ = value; - onChanged(); - } else { - upgradeOptionsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - public Builder setUpgradeOptions( - com.google.container.v1.AutoUpgradeOptions.Builder builderForValue) { - if (upgradeOptionsBuilder_ == null) { - upgradeOptions_ = builderForValue.build(); - onChanged(); - } else { - upgradeOptionsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - public Builder mergeUpgradeOptions(com.google.container.v1.AutoUpgradeOptions value) { - if (upgradeOptionsBuilder_ == null) { - if (upgradeOptions_ != null) { - upgradeOptions_ = - com.google.container.v1.AutoUpgradeOptions.newBuilder(upgradeOptions_) - .mergeFrom(value) - .buildPartial(); - } else { - upgradeOptions_ = value; - } - onChanged(); - } else { - upgradeOptionsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - public Builder clearUpgradeOptions() { - if (upgradeOptionsBuilder_ == null) { - upgradeOptions_ = null; - onChanged(); - } else { - upgradeOptions_ = null; - upgradeOptionsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - public com.google.container.v1.AutoUpgradeOptions.Builder getUpgradeOptionsBuilder() { - - onChanged(); - return getUpgradeOptionsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - public com.google.container.v1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder() { - if (upgradeOptionsBuilder_ != null) { - return upgradeOptionsBuilder_.getMessageOrBuilder(); - } else { - return upgradeOptions_ == null - ? com.google.container.v1.AutoUpgradeOptions.getDefaultInstance() - : upgradeOptions_; - } - } - /** - * - * - *
-     * Specifies the Auto Upgrade knobs for the node pool.
-     * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AutoUpgradeOptions, - com.google.container.v1.AutoUpgradeOptions.Builder, - com.google.container.v1.AutoUpgradeOptionsOrBuilder> - getUpgradeOptionsFieldBuilder() { - if (upgradeOptionsBuilder_ == null) { - upgradeOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AutoUpgradeOptions, - com.google.container.v1.AutoUpgradeOptions.Builder, - com.google.container.v1.AutoUpgradeOptionsOrBuilder>( - getUpgradeOptions(), getParentForChildren(), isClean()); - upgradeOptions_ = null; - } - return upgradeOptionsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NodeManagement) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodeManagement) - private static final com.google.container.v1.NodeManagement DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodeManagement(); - } - - public static com.google.container.v1.NodeManagement getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeManagement parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeManagement(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.container.v1.NodeManagement getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagementOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagementOrBuilder.java deleted file mode 100644 index 552c8ccc..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagementOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface NodeManagementOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodeManagement) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A flag that specifies whether node auto-upgrade is enabled for the node
-   * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool
-   * up to date with the latest release version of Kubernetes.
-   * 
- * - * bool auto_upgrade = 1; - * - * @return The autoUpgrade. - */ - boolean getAutoUpgrade(); - - /** - * - * - *
-   * A flag that specifies whether the node auto-repair is enabled for the node
-   * pool. If enabled, the nodes in this node pool will be monitored and, if
-   * they fail health checks too many times, an automatic repair action will be
-   * triggered.
-   * 
- * - * bool auto_repair = 2; - * - * @return The autoRepair. - */ - boolean getAutoRepair(); - - /** - * - * - *
-   * Specifies the Auto Upgrade knobs for the node pool.
-   * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - * - * @return Whether the upgradeOptions field is set. - */ - boolean hasUpgradeOptions(); - /** - * - * - *
-   * Specifies the Auto Upgrade knobs for the node pool.
-   * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - * - * @return The upgradeOptions. - */ - com.google.container.v1.AutoUpgradeOptions getUpgradeOptions(); - /** - * - * - *
-   * Specifies the Auto Upgrade knobs for the node pool.
-   * 
- * - * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - com.google.container.v1.AutoUpgradeOptionsOrBuilder getUpgradeOptionsOrBuilder(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java deleted file mode 100644 index d83d8557..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java +++ /dev/null @@ -1,5067 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * NodePool contains the name and configuration for a cluster's node pool.
- * Node pools are a set of nodes (i.e. VM's), with a common configuration and
- * specification, under the control of the cluster master. They may have a set
- * of Kubernetes labels applied to them, which may be used to reference them
- * during pod scheduling. They may also be resized up or down, to accommodate
- * the workload.
- * 
- * - * Protobuf type {@code google.container.v1.NodePool} - */ -public final class NodePool extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodePool) - NodePoolOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodePool.newBuilder() to construct. - private NodePool(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodePool() { - name_ = ""; - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - selfLink_ = ""; - version_ = ""; - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - status_ = 0; - statusMessage_ = ""; - conditions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodePool(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private NodePool( - 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: - { - com.google.container.v1.NodeConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); - } - config_ = - input.readMessage(com.google.container.v1.NodeConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } - - break; - } - case 24: - { - initialNodeCount_ = input.readInt32(); - break; - } - case 34: - { - com.google.container.v1.NodePoolAutoscaling.Builder subBuilder = null; - if (autoscaling_ != null) { - subBuilder = autoscaling_.toBuilder(); - } - autoscaling_ = - input.readMessage( - com.google.container.v1.NodePoolAutoscaling.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(autoscaling_); - autoscaling_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.container.v1.NodeManagement.Builder subBuilder = null; - if (management_ != null) { - subBuilder = management_.toBuilder(); - } - management_ = - input.readMessage( - com.google.container.v1.NodeManagement.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(management_); - management_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - com.google.container.v1.MaxPodsConstraint.Builder subBuilder = null; - if (maxPodsConstraint_ != null) { - subBuilder = maxPodsConstraint_.toBuilder(); - } - maxPodsConstraint_ = - input.readMessage( - com.google.container.v1.MaxPodsConstraint.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxPodsConstraint_); - maxPodsConstraint_ = subBuilder.buildPartial(); - } - - break; - } - case 56: - { - podIpv4CidrSize_ = input.readInt32(); - 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; - } - case 802: - { - java.lang.String s = input.readStringRequireUtf8(); - - selfLink_ = s; - break; - } - case 810: - { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 818: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - instanceGroupUrls_.add(s); - break; - } - case 824: - { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - case 834: - { - java.lang.String s = input.readStringRequireUtf8(); - - statusMessage_ = s; - break; - } - case 842: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - conditions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - conditions_.add( - input.readMessage( - com.google.container.v1.StatusCondition.parser(), extensionRegistry)); - break; - } - case 858: - { - com.google.container.v1.NodePool.UpgradeSettings.Builder subBuilder = null; - if (upgradeSettings_ != null) { - subBuilder = upgradeSettings_.toBuilder(); - } - upgradeSettings_ = - input.readMessage( - com.google.container.v1.NodePool.UpgradeSettings.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(upgradeSettings_); - upgradeSettings_ = 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)) { - locations_ = locations_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - conditions_ = java.util.Collections.unmodifiableList(conditions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePool.class, com.google.container.v1.NodePool.Builder.class); - } - - /** - * - * - *
-   * The current status of the node pool instance.
-   * 
- * - * Protobuf enum {@code google.container.v1.NodePool.Status} - */ - public enum Status implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Not set.
-     * 
- * - * STATUS_UNSPECIFIED = 0; - */ - STATUS_UNSPECIFIED(0), - /** - * - * - *
-     * The PROVISIONING state indicates the node pool is being created.
-     * 
- * - * PROVISIONING = 1; - */ - PROVISIONING(1), - /** - * - * - *
-     * The RUNNING state indicates the node pool has been created
-     * and is fully usable.
-     * 
- * - * RUNNING = 2; - */ - RUNNING(2), - /** - * - * - *
-     * The RUNNING_WITH_ERROR state indicates the node pool has been created
-     * and is partially usable. Some error state has occurred and some
-     * functionality may be impaired. Customer may need to reissue a request
-     * or trigger a new update.
-     * 
- * - * RUNNING_WITH_ERROR = 3; - */ - RUNNING_WITH_ERROR(3), - /** - * - * - *
-     * The RECONCILING state indicates that some work is actively being done on
-     * the node pool, such as upgrading node software. Details can
-     * be found in the `statusMessage` field.
-     * 
- * - * RECONCILING = 4; - */ - RECONCILING(4), - /** - * - * - *
-     * The STOPPING state indicates the node pool is being deleted.
-     * 
- * - * STOPPING = 5; - */ - STOPPING(5), - /** - * - * - *
-     * The ERROR state indicates the node pool may be unusable. Details
-     * can be found in the `statusMessage` field.
-     * 
- * - * ERROR = 6; - */ - ERROR(6), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Not set.
-     * 
- * - * STATUS_UNSPECIFIED = 0; - */ - public static final int STATUS_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The PROVISIONING state indicates the node pool is being created.
-     * 
- * - * PROVISIONING = 1; - */ - public static final int PROVISIONING_VALUE = 1; - /** - * - * - *
-     * The RUNNING state indicates the node pool has been created
-     * and is fully usable.
-     * 
- * - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - * - * - *
-     * The RUNNING_WITH_ERROR state indicates the node pool has been created
-     * and is partially usable. Some error state has occurred and some
-     * functionality may be impaired. Customer may need to reissue a request
-     * or trigger a new update.
-     * 
- * - * RUNNING_WITH_ERROR = 3; - */ - public static final int RUNNING_WITH_ERROR_VALUE = 3; - /** - * - * - *
-     * The RECONCILING state indicates that some work is actively being done on
-     * the node pool, such as upgrading node software. Details can
-     * be found in the `statusMessage` field.
-     * 
- * - * RECONCILING = 4; - */ - public static final int RECONCILING_VALUE = 4; - /** - * - * - *
-     * The STOPPING state indicates the node pool is being deleted.
-     * 
- * - * STOPPING = 5; - */ - public static final int STOPPING_VALUE = 5; - /** - * - * - *
-     * The ERROR state indicates the node pool may be unusable. Details
-     * can be found in the `statusMessage` field.
-     * 
- * - * ERROR = 6; - */ - public static final int ERROR_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 Status 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 Status forNumber(int value) { - switch (value) { - case 0: - return STATUS_UNSPECIFIED; - case 1: - return PROVISIONING; - case 2: - return RUNNING; - case 3: - return RUNNING_WITH_ERROR; - case 4: - return RECONCILING; - case 5: - return STOPPING; - case 6: - return ERROR; - 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 Status findValueByNumber(int number) { - return Status.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.container.v1.NodePool.getDescriptor().getEnumTypes().get(0); - } - - private static final Status[] VALUES = values(); - - public static Status 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 Status(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.NodePool.Status) - } - - public interface UpgradeSettingsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodePool.UpgradeSettings) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The maximum number of nodes that can be created beyond the current size
-     * of the node pool during the upgrade process.
-     * 
- * - * int32 max_surge = 1; - * - * @return The maxSurge. - */ - int getMaxSurge(); - - /** - * - * - *
-     * The maximum number of nodes that can be simultaneously unavailable during
-     * the upgrade process. A node is considered available if its status is
-     * Ready.
-     * 
- * - * int32 max_unavailable = 2; - * - * @return The maxUnavailable. - */ - int getMaxUnavailable(); - } - /** - * - * - *
-   * These upgrade settings control the level of parallelism and the level of
-   * disruption caused by an upgrade.
-   * maxUnavailable controls the number of nodes that can be simultaneously
-   * unavailable.
-   * maxSurge controls the number of additional nodes that can be added to the
-   * node pool temporarily for the time of the upgrade to increase the number of
-   * available nodes.
-   * (maxUnavailable + maxSurge) determines the level of parallelism (how many
-   * nodes are being upgraded at the same time).
-   * Note: upgrades inevitably introduce some disruption since workloads need to
-   * be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
-   * this holds true. (Disruption stays within the limits of
-   * PodDisruptionBudget, if it is configured.)
-   * Consider a hypothetical node pool with 5 nodes having maxSurge=2,
-   * maxUnavailable=1. This means the upgrade process upgrades 3 nodes
-   * simultaneously. It creates 2 additional (upgraded) nodes, then it brings
-   * down 3 old (not yet upgraded) nodes at the same time. This ensures that
-   * there are always at least 4 nodes available.
-   * 
- * - * Protobuf type {@code google.container.v1.NodePool.UpgradeSettings} - */ - public static final class UpgradeSettings extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodePool.UpgradeSettings) - UpgradeSettingsOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpgradeSettings.newBuilder() to construct. - private UpgradeSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpgradeSettings() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpgradeSettings(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpgradeSettings( - 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: - { - maxSurge_ = input.readInt32(); - break; - } - case 16: - { - maxUnavailable_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_UpgradeSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_UpgradeSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePool.UpgradeSettings.class, - com.google.container.v1.NodePool.UpgradeSettings.Builder.class); - } - - public static final int MAX_SURGE_FIELD_NUMBER = 1; - private int maxSurge_; - /** - * - * - *
-     * The maximum number of nodes that can be created beyond the current size
-     * of the node pool during the upgrade process.
-     * 
- * - * int32 max_surge = 1; - * - * @return The maxSurge. - */ - @java.lang.Override - public int getMaxSurge() { - return maxSurge_; - } - - public static final int MAX_UNAVAILABLE_FIELD_NUMBER = 2; - private int maxUnavailable_; - /** - * - * - *
-     * The maximum number of nodes that can be simultaneously unavailable during
-     * the upgrade process. A node is considered available if its status is
-     * Ready.
-     * 
- * - * int32 max_unavailable = 2; - * - * @return The maxUnavailable. - */ - @java.lang.Override - public int getMaxUnavailable() { - return maxUnavailable_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (maxSurge_ != 0) { - output.writeInt32(1, maxSurge_); - } - if (maxUnavailable_ != 0) { - output.writeInt32(2, maxUnavailable_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxSurge_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, maxSurge_); - } - if (maxUnavailable_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxUnavailable_); - } - 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.container.v1.NodePool.UpgradeSettings)) { - return super.equals(obj); - } - com.google.container.v1.NodePool.UpgradeSettings other = - (com.google.container.v1.NodePool.UpgradeSettings) obj; - - if (getMaxSurge() != other.getMaxSurge()) return false; - if (getMaxUnavailable() != other.getMaxUnavailable()) 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_SURGE_FIELD_NUMBER; - hash = (53 * hash) + getMaxSurge(); - hash = (37 * hash) + MAX_UNAVAILABLE_FIELD_NUMBER; - hash = (53 * hash) + getMaxUnavailable(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool.UpgradeSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NodePool.UpgradeSettings prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * These upgrade settings control the level of parallelism and the level of
-     * disruption caused by an upgrade.
-     * maxUnavailable controls the number of nodes that can be simultaneously
-     * unavailable.
-     * maxSurge controls the number of additional nodes that can be added to the
-     * node pool temporarily for the time of the upgrade to increase the number of
-     * available nodes.
-     * (maxUnavailable + maxSurge) determines the level of parallelism (how many
-     * nodes are being upgraded at the same time).
-     * Note: upgrades inevitably introduce some disruption since workloads need to
-     * be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
-     * this holds true. (Disruption stays within the limits of
-     * PodDisruptionBudget, if it is configured.)
-     * Consider a hypothetical node pool with 5 nodes having maxSurge=2,
-     * maxUnavailable=1. This means the upgrade process upgrades 3 nodes
-     * simultaneously. It creates 2 additional (upgraded) nodes, then it brings
-     * down 3 old (not yet upgraded) nodes at the same time. This ensures that
-     * there are always at least 4 nodes available.
-     * 
- * - * Protobuf type {@code google.container.v1.NodePool.UpgradeSettings} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodePool.UpgradeSettings) - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_UpgradeSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_UpgradeSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePool.UpgradeSettings.class, - com.google.container.v1.NodePool.UpgradeSettings.Builder.class); - } - - // Construct using com.google.container.v1.NodePool.UpgradeSettings.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(); - maxSurge_ = 0; - - maxUnavailable_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_UpgradeSettings_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettings getDefaultInstanceForType() { - return com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettings build() { - com.google.container.v1.NodePool.UpgradeSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettings buildPartial() { - com.google.container.v1.NodePool.UpgradeSettings result = - new com.google.container.v1.NodePool.UpgradeSettings(this); - result.maxSurge_ = maxSurge_; - result.maxUnavailable_ = maxUnavailable_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodePool.UpgradeSettings) { - return mergeFrom((com.google.container.v1.NodePool.UpgradeSettings) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodePool.UpgradeSettings other) { - if (other == com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance()) - return this; - if (other.getMaxSurge() != 0) { - setMaxSurge(other.getMaxSurge()); - } - if (other.getMaxUnavailable() != 0) { - setMaxUnavailable(other.getMaxUnavailable()); - } - 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.container.v1.NodePool.UpgradeSettings parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.container.v1.NodePool.UpgradeSettings) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int maxSurge_; - /** - * - * - *
-       * The maximum number of nodes that can be created beyond the current size
-       * of the node pool during the upgrade process.
-       * 
- * - * int32 max_surge = 1; - * - * @return The maxSurge. - */ - @java.lang.Override - public int getMaxSurge() { - return maxSurge_; - } - /** - * - * - *
-       * The maximum number of nodes that can be created beyond the current size
-       * of the node pool during the upgrade process.
-       * 
- * - * int32 max_surge = 1; - * - * @param value The maxSurge to set. - * @return This builder for chaining. - */ - public Builder setMaxSurge(int value) { - - maxSurge_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The maximum number of nodes that can be created beyond the current size
-       * of the node pool during the upgrade process.
-       * 
- * - * int32 max_surge = 1; - * - * @return This builder for chaining. - */ - public Builder clearMaxSurge() { - - maxSurge_ = 0; - onChanged(); - return this; - } - - private int maxUnavailable_; - /** - * - * - *
-       * The maximum number of nodes that can be simultaneously unavailable during
-       * the upgrade process. A node is considered available if its status is
-       * Ready.
-       * 
- * - * int32 max_unavailable = 2; - * - * @return The maxUnavailable. - */ - @java.lang.Override - public int getMaxUnavailable() { - return maxUnavailable_; - } - /** - * - * - *
-       * The maximum number of nodes that can be simultaneously unavailable during
-       * the upgrade process. A node is considered available if its status is
-       * Ready.
-       * 
- * - * int32 max_unavailable = 2; - * - * @param value The maxUnavailable to set. - * @return This builder for chaining. - */ - public Builder setMaxUnavailable(int value) { - - maxUnavailable_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The maximum number of nodes that can be simultaneously unavailable during
-       * the upgrade process. A node is considered available if its status is
-       * Ready.
-       * 
- * - * int32 max_unavailable = 2; - * - * @return This builder for chaining. - */ - public Builder clearMaxUnavailable() { - - maxUnavailable_ = 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.container.v1.NodePool.UpgradeSettings) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodePool.UpgradeSettings) - private static final com.google.container.v1.NodePool.UpgradeSettings DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodePool.UpgradeSettings(); - } - - public static com.google.container.v1.NodePool.UpgradeSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpgradeSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpgradeSettings(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.container.v1.NodePool.UpgradeSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name of the node pool.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name of the node pool.
-   * 
- * - * 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 CONFIG_FIELD_NUMBER = 2; - private com.google.container.v1.NodeConfig config_; - /** - * - * - *
-   * The node configuration of the pool.
-   * 
- * - * .google.container.v1.NodeConfig config = 2; - * - * @return Whether the config field is set. - */ - @java.lang.Override - public boolean hasConfig() { - return config_ != null; - } - /** - * - * - *
-   * The node configuration of the pool.
-   * 
- * - * .google.container.v1.NodeConfig config = 2; - * - * @return The config. - */ - @java.lang.Override - public com.google.container.v1.NodeConfig getConfig() { - return config_ == null ? com.google.container.v1.NodeConfig.getDefaultInstance() : config_; - } - /** - * - * - *
-   * The node configuration of the pool.
-   * 
- * - * .google.container.v1.NodeConfig config = 2; - */ - @java.lang.Override - public com.google.container.v1.NodeConfigOrBuilder getConfigOrBuilder() { - return getConfig(); - } - - public static final int INITIAL_NODE_COUNT_FIELD_NUMBER = 3; - private int initialNodeCount_; - /** - * - * - *
-   * The initial node count for the pool. You must ensure that your
-   * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-   * is sufficient for this number of instances. You must also have available
-   * firewall and routes quota.
-   * 
- * - * int32 initial_node_count = 3; - * - * @return The initialNodeCount. - */ - @java.lang.Override - public int getInitialNodeCount() { - return initialNodeCount_; - } - - public static final int LOCATIONS_FIELD_NUMBER = 13; - private com.google.protobuf.LazyStringList locations_; - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes should be located.
-   * If this value is unspecified during node pool creation, the
-   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-   * value will be used, instead.
-   * Warning: changing node pool locations will result in nodes being added
-   * and/or removed.
-   * 
- * - * repeated string locations = 13; - * - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList getLocationsList() { - return locations_; - } - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes should be located.
-   * If this value is unspecified during node pool creation, the
-   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-   * value will be used, instead.
-   * Warning: changing node pool locations will result in nodes being added
-   * and/or removed.
-   * 
- * - * repeated string locations = 13; - * - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes should be located.
-   * If this value is unspecified during node pool creation, the
-   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-   * value will be used, instead.
-   * Warning: changing node pool locations will result in nodes being added
-   * and/or removed.
-   * 
- * - * repeated string locations = 13; - * - * @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); - } - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes should be located.
-   * If this value is unspecified during node pool creation, the
-   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-   * value will be used, instead.
-   * Warning: changing node pool locations will result in nodes being added
-   * and/or removed.
-   * 
- * - * repeated string locations = 13; - * - * @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 SELF_LINK_FIELD_NUMBER = 100; - private volatile java.lang.Object selfLink_; - /** - * - * - *
-   * [Output only] Server-defined URL for the resource.
-   * 
- * - * string self_link = 100; - * - * @return The selfLink. - */ - @java.lang.Override - public java.lang.String getSelfLink() { - java.lang.Object ref = selfLink_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selfLink_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] Server-defined URL for the resource.
-   * 
- * - * string self_link = 100; - * - * @return The bytes for selfLink. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSelfLinkBytes() { - java.lang.Object ref = selfLink_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - selfLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 101; - private volatile java.lang.Object version_; - /** - * - * - *
-   * The version of the Kubernetes of this node.
-   * 
- * - * string version = 101; - * - * @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; - } - } - /** - * - * - *
-   * The version of the Kubernetes of this node.
-   * 
- * - * string version = 101; - * - * @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 INSTANCE_GROUP_URLS_FIELD_NUMBER = 102; - private com.google.protobuf.LazyStringList instanceGroupUrls_; - /** - * - * - *
-   * [Output only] The resource URLs of the [managed instance
-   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-   * associated with this node pool.
-   * 
- * - * repeated string instance_group_urls = 102; - * - * @return A list containing the instanceGroupUrls. - */ - public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { - return instanceGroupUrls_; - } - /** - * - * - *
-   * [Output only] The resource URLs of the [managed instance
-   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-   * associated with this node pool.
-   * 
- * - * repeated string instance_group_urls = 102; - * - * @return The count of instanceGroupUrls. - */ - public int getInstanceGroupUrlsCount() { - return instanceGroupUrls_.size(); - } - /** - * - * - *
-   * [Output only] The resource URLs of the [managed instance
-   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-   * associated with this node pool.
-   * 
- * - * repeated string instance_group_urls = 102; - * - * @param index The index of the element to return. - * @return The instanceGroupUrls at the given index. - */ - public java.lang.String getInstanceGroupUrls(int index) { - return instanceGroupUrls_.get(index); - } - /** - * - * - *
-   * [Output only] The resource URLs of the [managed instance
-   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-   * associated with this node pool.
-   * 
- * - * repeated string instance_group_urls = 102; - * - * @param index The index of the value to return. - * @return The bytes of the instanceGroupUrls at the given index. - */ - public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { - return instanceGroupUrls_.getByteString(index); - } - - public static final int STATUS_FIELD_NUMBER = 103; - private int status_; - /** - * - * - *
-   * [Output only] The status of the nodes in this pool instance.
-   * 
- * - * .google.container.v1.NodePool.Status status = 103; - * - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override - public int getStatusValue() { - return status_; - } - /** - * - * - *
-   * [Output only] The status of the nodes in this pool instance.
-   * 
- * - * .google.container.v1.NodePool.Status status = 103; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1.NodePool.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1.NodePool.Status result = - com.google.container.v1.NodePool.Status.valueOf(status_); - return result == null ? com.google.container.v1.NodePool.Status.UNRECOGNIZED : result; - } - - public static final int STATUS_MESSAGE_FIELD_NUMBER = 104; - private volatile java.lang.Object statusMessage_; - /** - * - * - *
-   * [Output only] Deprecated. Use conditions instead.
-   * Additional information about the current status of this
-   * node pool instance, if available.
-   * 
- * - * string status_message = 104 [deprecated = true]; - * - * @return The statusMessage. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getStatusMessage() { - java.lang.Object ref = statusMessage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusMessage_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] Deprecated. Use conditions instead.
-   * Additional information about the current status of this
-   * node pool instance, if available.
-   * 
- * - * string status_message = 104 [deprecated = true]; - * - * @return The bytes for statusMessage. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AUTOSCALING_FIELD_NUMBER = 4; - private com.google.container.v1.NodePoolAutoscaling autoscaling_; - /** - * - * - *
-   * Autoscaler configuration for this NodePool. Autoscaler is enabled
-   * only if a valid configuration is present.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - * - * @return Whether the autoscaling field is set. - */ - @java.lang.Override - public boolean hasAutoscaling() { - return autoscaling_ != null; - } - /** - * - * - *
-   * Autoscaler configuration for this NodePool. Autoscaler is enabled
-   * only if a valid configuration is present.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - * - * @return The autoscaling. - */ - @java.lang.Override - public com.google.container.v1.NodePoolAutoscaling getAutoscaling() { - return autoscaling_ == null - ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() - : autoscaling_; - } - /** - * - * - *
-   * Autoscaler configuration for this NodePool. Autoscaler is enabled
-   * only if a valid configuration is present.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - @java.lang.Override - public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { - return getAutoscaling(); - } - - public static final int MANAGEMENT_FIELD_NUMBER = 5; - private com.google.container.v1.NodeManagement management_; - /** - * - * - *
-   * NodeManagement configuration for this NodePool.
-   * 
- * - * .google.container.v1.NodeManagement management = 5; - * - * @return Whether the management field is set. - */ - @java.lang.Override - public boolean hasManagement() { - return management_ != null; - } - /** - * - * - *
-   * NodeManagement configuration for this NodePool.
-   * 
- * - * .google.container.v1.NodeManagement management = 5; - * - * @return The management. - */ - @java.lang.Override - public com.google.container.v1.NodeManagement getManagement() { - return management_ == null - ? com.google.container.v1.NodeManagement.getDefaultInstance() - : management_; - } - /** - * - * - *
-   * NodeManagement configuration for this NodePool.
-   * 
- * - * .google.container.v1.NodeManagement management = 5; - */ - @java.lang.Override - public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { - return getManagement(); - } - - public static final int MAX_PODS_CONSTRAINT_FIELD_NUMBER = 6; - private com.google.container.v1.MaxPodsConstraint maxPodsConstraint_; - /** - * - * - *
-   * The constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool.
-   * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - * - * @return Whether the maxPodsConstraint field is set. - */ - @java.lang.Override - public boolean hasMaxPodsConstraint() { - return maxPodsConstraint_ != null; - } - /** - * - * - *
-   * The constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool.
-   * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - * - * @return The maxPodsConstraint. - */ - @java.lang.Override - public com.google.container.v1.MaxPodsConstraint getMaxPodsConstraint() { - return maxPodsConstraint_ == null - ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() - : maxPodsConstraint_; - } - /** - * - * - *
-   * The constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool.
-   * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - @java.lang.Override - public com.google.container.v1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder() { - return getMaxPodsConstraint(); - } - - public static final int CONDITIONS_FIELD_NUMBER = 105; - private java.util.List conditions_; - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - @java.lang.Override - public java.util.List getConditionsList() { - return conditions_; - } - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - @java.lang.Override - public java.util.List - getConditionsOrBuilderList() { - return conditions_; - } - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - @java.lang.Override - public int getConditionsCount() { - return conditions_.size(); - } - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - @java.lang.Override - public com.google.container.v1.StatusCondition getConditions(int index) { - return conditions_.get(index); - } - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - @java.lang.Override - public com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { - return conditions_.get(index); - } - - public static final int POD_IPV4_CIDR_SIZE_FIELD_NUMBER = 7; - private int podIpv4CidrSize_; - /** - * - * - *
-   * [Output only] The pod CIDR block size per node in this node pool.
-   * 
- * - * int32 pod_ipv4_cidr_size = 7; - * - * @return The podIpv4CidrSize. - */ - @java.lang.Override - public int getPodIpv4CidrSize() { - return podIpv4CidrSize_; - } - - public static final int UPGRADE_SETTINGS_FIELD_NUMBER = 107; - private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - * - * @return Whether the upgradeSettings field is set. - */ - @java.lang.Override - public boolean hasUpgradeSettings() { - return upgradeSettings_ != null; - } - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - * - * @return The upgradeSettings. - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { - return upgradeSettings_ == null - ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - return getUpgradeSettings(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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 (config_ != null) { - output.writeMessage(2, getConfig()); - } - if (initialNodeCount_ != 0) { - output.writeInt32(3, initialNodeCount_); - } - if (autoscaling_ != null) { - output.writeMessage(4, getAutoscaling()); - } - if (management_ != null) { - output.writeMessage(5, getManagement()); - } - if (maxPodsConstraint_ != null) { - output.writeMessage(6, getMaxPodsConstraint()); - } - if (podIpv4CidrSize_ != 0) { - output.writeInt32(7, podIpv4CidrSize_); - } - for (int i = 0; i < locations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); - } - if (!getSelfLinkBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 101, version_); - } - for (int i = 0; i < instanceGroupUrls_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 102, instanceGroupUrls_.getRaw(i)); - } - if (status_ != com.google.container.v1.NodePool.Status.STATUS_UNSPECIFIED.getNumber()) { - output.writeEnum(103, status_); - } - if (!getStatusMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 104, statusMessage_); - } - for (int i = 0; i < conditions_.size(); i++) { - output.writeMessage(105, conditions_.get(i)); - } - if (upgradeSettings_ != null) { - output.writeMessage(107, getUpgradeSettings()); - } - 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 (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfig()); - } - if (initialNodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, initialNodeCount_); - } - if (autoscaling_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAutoscaling()); - } - if (management_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getManagement()); - } - if (maxPodsConstraint_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMaxPodsConstraint()); - } - if (podIpv4CidrSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, podIpv4CidrSize_); - } - { - int dataSize = 0; - for (int i = 0; i < locations_.size(); i++) { - dataSize += computeStringSizeNoTag(locations_.getRaw(i)); - } - size += dataSize; - size += 1 * getLocationsList().size(); - } - if (!getSelfLinkBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, version_); - } - { - int dataSize = 0; - for (int i = 0; i < instanceGroupUrls_.size(); i++) { - dataSize += computeStringSizeNoTag(instanceGroupUrls_.getRaw(i)); - } - size += dataSize; - size += 2 * getInstanceGroupUrlsList().size(); - } - if (status_ != com.google.container.v1.NodePool.Status.STATUS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(103, status_); - } - if (!getStatusMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(104, statusMessage_); - } - for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(105, conditions_.get(i)); - } - if (upgradeSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(107, getUpgradeSettings()); - } - 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.container.v1.NodePool)) { - return super.equals(obj); - } - com.google.container.v1.NodePool other = (com.google.container.v1.NodePool) obj; - - if (!getName().equals(other.getName())) return false; - if (hasConfig() != other.hasConfig()) return false; - if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; - } - if (getInitialNodeCount() != other.getInitialNodeCount()) return false; - if (!getLocationsList().equals(other.getLocationsList())) return false; - if (!getSelfLink().equals(other.getSelfLink())) return false; - if (!getVersion().equals(other.getVersion())) return false; - if (!getInstanceGroupUrlsList().equals(other.getInstanceGroupUrlsList())) return false; - if (status_ != other.status_) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (hasAutoscaling() != other.hasAutoscaling()) return false; - if (hasAutoscaling()) { - if (!getAutoscaling().equals(other.getAutoscaling())) return false; - } - if (hasManagement() != other.hasManagement()) return false; - if (hasManagement()) { - if (!getManagement().equals(other.getManagement())) return false; - } - if (hasMaxPodsConstraint() != other.hasMaxPodsConstraint()) return false; - if (hasMaxPodsConstraint()) { - if (!getMaxPodsConstraint().equals(other.getMaxPodsConstraint())) return false; - } - if (!getConditionsList().equals(other.getConditionsList())) return false; - if (getPodIpv4CidrSize() != other.getPodIpv4CidrSize()) return false; - if (hasUpgradeSettings() != other.hasUpgradeSettings()) return false; - if (hasUpgradeSettings()) { - if (!getUpgradeSettings().equals(other.getUpgradeSettings())) 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 (hasConfig()) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfig().hashCode(); - } - hash = (37 * hash) + INITIAL_NODE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getInitialNodeCount(); - if (getLocationsCount() > 0) { - hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; - hash = (53 * hash) + getLocationsList().hashCode(); - } - hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; - hash = (53 * hash) + getSelfLink().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - if (getInstanceGroupUrlsCount() > 0) { - hash = (37 * hash) + INSTANCE_GROUP_URLS_FIELD_NUMBER; - hash = (53 * hash) + getInstanceGroupUrlsList().hashCode(); - } - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; - hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getStatusMessage().hashCode(); - if (hasAutoscaling()) { - hash = (37 * hash) + AUTOSCALING_FIELD_NUMBER; - hash = (53 * hash) + getAutoscaling().hashCode(); - } - if (hasManagement()) { - hash = (37 * hash) + MANAGEMENT_FIELD_NUMBER; - hash = (53 * hash) + getManagement().hashCode(); - } - if (hasMaxPodsConstraint()) { - hash = (37 * hash) + MAX_PODS_CONSTRAINT_FIELD_NUMBER; - hash = (53 * hash) + getMaxPodsConstraint().hashCode(); - } - if (getConditionsCount() > 0) { - hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; - hash = (53 * hash) + getConditionsList().hashCode(); - } - hash = (37 * hash) + POD_IPV4_CIDR_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPodIpv4CidrSize(); - if (hasUpgradeSettings()) { - hash = (37 * hash) + UPGRADE_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getUpgradeSettings().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodePool parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePool parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePool parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePool parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePool parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePool parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NodePool prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * NodePool contains the name and configuration for a cluster's node pool.
-   * Node pools are a set of nodes (i.e. VM's), with a common configuration and
-   * specification, under the control of the cluster master. They may have a set
-   * of Kubernetes labels applied to them, which may be used to reference them
-   * during pod scheduling. They may also be resized up or down, to accommodate
-   * the workload.
-   * 
- * - * Protobuf type {@code google.container.v1.NodePool} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodePool) - com.google.container.v1.NodePoolOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePool.class, - com.google.container.v1.NodePool.Builder.class); - } - - // Construct using com.google.container.v1.NodePool.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getConditionsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (configBuilder_ == null) { - config_ = null; - } else { - config_ = null; - configBuilder_ = null; - } - initialNodeCount_ = 0; - - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - selfLink_ = ""; - - version_ = ""; - - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - status_ = 0; - - statusMessage_ = ""; - - if (autoscalingBuilder_ == null) { - autoscaling_ = null; - } else { - autoscaling_ = null; - autoscalingBuilder_ = null; - } - if (managementBuilder_ == null) { - management_ = null; - } else { - management_ = null; - managementBuilder_ = null; - } - if (maxPodsConstraintBuilder_ == null) { - maxPodsConstraint_ = null; - } else { - maxPodsConstraint_ = null; - maxPodsConstraintBuilder_ = null; - } - if (conditionsBuilder_ == null) { - conditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - conditionsBuilder_.clear(); - } - podIpv4CidrSize_ = 0; - - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = null; - } else { - upgradeSettings_ = null; - upgradeSettingsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePool_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodePool getDefaultInstanceForType() { - return com.google.container.v1.NodePool.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodePool build() { - com.google.container.v1.NodePool result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodePool buildPartial() { - com.google.container.v1.NodePool result = new com.google.container.v1.NodePool(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (configBuilder_ == null) { - result.config_ = config_; - } else { - result.config_ = configBuilder_.build(); - } - result.initialNodeCount_ = initialNodeCount_; - if (((bitField0_ & 0x00000001) != 0)) { - locations_ = locations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.locations_ = locations_; - result.selfLink_ = selfLink_; - result.version_ = version_; - if (((bitField0_ & 0x00000002) != 0)) { - instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.instanceGroupUrls_ = instanceGroupUrls_; - result.status_ = status_; - result.statusMessage_ = statusMessage_; - if (autoscalingBuilder_ == null) { - result.autoscaling_ = autoscaling_; - } else { - result.autoscaling_ = autoscalingBuilder_.build(); - } - if (managementBuilder_ == null) { - result.management_ = management_; - } else { - result.management_ = managementBuilder_.build(); - } - if (maxPodsConstraintBuilder_ == null) { - result.maxPodsConstraint_ = maxPodsConstraint_; - } else { - result.maxPodsConstraint_ = maxPodsConstraintBuilder_.build(); - } - if (conditionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - conditions_ = java.util.Collections.unmodifiableList(conditions_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.conditions_ = conditions_; - } else { - result.conditions_ = conditionsBuilder_.build(); - } - result.podIpv4CidrSize_ = podIpv4CidrSize_; - if (upgradeSettingsBuilder_ == null) { - result.upgradeSettings_ = upgradeSettings_; - } else { - result.upgradeSettings_ = upgradeSettingsBuilder_.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.container.v1.NodePool) { - return mergeFrom((com.google.container.v1.NodePool) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodePool other) { - if (other == com.google.container.v1.NodePool.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasConfig()) { - mergeConfig(other.getConfig()); - } - if (other.getInitialNodeCount() != 0) { - setInitialNodeCount(other.getInitialNodeCount()); - } - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - if (!other.getSelfLink().isEmpty()) { - selfLink_ = other.selfLink_; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (!other.instanceGroupUrls_.isEmpty()) { - if (instanceGroupUrls_.isEmpty()) { - instanceGroupUrls_ = other.instanceGroupUrls_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.addAll(other.instanceGroupUrls_); - } - onChanged(); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - onChanged(); - } - if (other.hasAutoscaling()) { - mergeAutoscaling(other.getAutoscaling()); - } - if (other.hasManagement()) { - mergeManagement(other.getManagement()); - } - if (other.hasMaxPodsConstraint()) { - mergeMaxPodsConstraint(other.getMaxPodsConstraint()); - } - if (conditionsBuilder_ == null) { - if (!other.conditions_.isEmpty()) { - if (conditions_.isEmpty()) { - conditions_ = other.conditions_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureConditionsIsMutable(); - conditions_.addAll(other.conditions_); - } - onChanged(); - } - } else { - if (!other.conditions_.isEmpty()) { - if (conditionsBuilder_.isEmpty()) { - conditionsBuilder_.dispose(); - conditionsBuilder_ = null; - conditions_ = other.conditions_; - bitField0_ = (bitField0_ & ~0x00000004); - conditionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getConditionsFieldBuilder() - : null; - } else { - conditionsBuilder_.addAllMessages(other.conditions_); - } - } - } - if (other.getPodIpv4CidrSize() != 0) { - setPodIpv4CidrSize(other.getPodIpv4CidrSize()); - } - if (other.hasUpgradeSettings()) { - mergeUpgradeSettings(other.getUpgradeSettings()); - } - 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.container.v1.NodePool parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.NodePool) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name of the node pool.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name of the node pool.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name of the node pool.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the node pool.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the node pool.
-     * 
- * - * 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.container.v1.NodeConfig config_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeConfig, - com.google.container.v1.NodeConfig.Builder, - com.google.container.v1.NodeConfigOrBuilder> - configBuilder_; - /** - * - * - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1.NodeConfig config = 2; - * - * @return Whether the config field is set. - */ - public boolean hasConfig() { - return configBuilder_ != null || config_ != null; - } - /** - * - * - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1.NodeConfig config = 2; - * - * @return The config. - */ - public com.google.container.v1.NodeConfig getConfig() { - if (configBuilder_ == null) { - return config_ == null ? com.google.container.v1.NodeConfig.getDefaultInstance() : config_; - } else { - return configBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1.NodeConfig config = 2; - */ - public Builder setConfig(com.google.container.v1.NodeConfig value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - config_ = value; - onChanged(); - } else { - configBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1.NodeConfig config = 2; - */ - public Builder setConfig(com.google.container.v1.NodeConfig.Builder builderForValue) { - if (configBuilder_ == null) { - config_ = builderForValue.build(); - onChanged(); - } else { - configBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1.NodeConfig config = 2; - */ - public Builder mergeConfig(com.google.container.v1.NodeConfig value) { - if (configBuilder_ == null) { - if (config_ != null) { - config_ = - com.google.container.v1.NodeConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); - } else { - config_ = value; - } - onChanged(); - } else { - configBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1.NodeConfig config = 2; - */ - public Builder clearConfig() { - if (configBuilder_ == null) { - config_ = null; - onChanged(); - } else { - config_ = null; - configBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1.NodeConfig config = 2; - */ - public com.google.container.v1.NodeConfig.Builder getConfigBuilder() { - - onChanged(); - return getConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1.NodeConfig config = 2; - */ - public com.google.container.v1.NodeConfigOrBuilder getConfigOrBuilder() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilder(); - } else { - return config_ == null ? com.google.container.v1.NodeConfig.getDefaultInstance() : config_; - } - } - /** - * - * - *
-     * The node configuration of the pool.
-     * 
- * - * .google.container.v1.NodeConfig config = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeConfig, - com.google.container.v1.NodeConfig.Builder, - com.google.container.v1.NodeConfigOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeConfig, - com.google.container.v1.NodeConfig.Builder, - com.google.container.v1.NodeConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); - config_ = null; - } - return configBuilder_; - } - - private int initialNodeCount_; - /** - * - * - *
-     * The initial node count for the pool. You must ensure that your
-     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-     * is sufficient for this number of instances. You must also have available
-     * firewall and routes quota.
-     * 
- * - * int32 initial_node_count = 3; - * - * @return The initialNodeCount. - */ - @java.lang.Override - public int getInitialNodeCount() { - return initialNodeCount_; - } - /** - * - * - *
-     * The initial node count for the pool. You must ensure that your
-     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-     * is sufficient for this number of instances. You must also have available
-     * firewall and routes quota.
-     * 
- * - * int32 initial_node_count = 3; - * - * @param value The initialNodeCount to set. - * @return This builder for chaining. - */ - public Builder setInitialNodeCount(int value) { - - initialNodeCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The initial node count for the pool. You must ensure that your
-     * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-     * is sufficient for this number of instances. You must also have available
-     * firewall and routes quota.
-     * 
- * - * int32 initial_node_count = 3; - * - * @return This builder for chaining. - */ - public Builder clearInitialNodeCount() { - - initialNodeCount_ = 0; - onChanged(); - return this; - } - - 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; - } - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList getLocationsList() { - return locations_.getUnmodifiableView(); - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * - * @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); - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * - * @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); - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * - * @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; - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * - * @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; - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * - * @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; - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * - * @return This builder for chaining. - */ - public Builder clearLocations() { - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * NodePool's nodes should be located.
-     * If this value is unspecified during node pool creation, the
-     * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-     * value will be used, instead.
-     * Warning: changing node pool locations will result in nodes being added
-     * and/or removed.
-     * 
- * - * repeated string locations = 13; - * - * @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 java.lang.Object selfLink_ = ""; - /** - * - * - *
-     * [Output only] Server-defined URL for the resource.
-     * 
- * - * string self_link = 100; - * - * @return The selfLink. - */ - public java.lang.String getSelfLink() { - java.lang.Object ref = selfLink_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selfLink_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] Server-defined URL for the resource.
-     * 
- * - * string self_link = 100; - * - * @return The bytes for selfLink. - */ - public com.google.protobuf.ByteString getSelfLinkBytes() { - java.lang.Object ref = selfLink_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - selfLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] Server-defined URL for the resource.
-     * 
- * - * string self_link = 100; - * - * @param value The selfLink to set. - * @return This builder for chaining. - */ - public Builder setSelfLink(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - selfLink_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Server-defined URL for the resource.
-     * 
- * - * string self_link = 100; - * - * @return This builder for chaining. - */ - public Builder clearSelfLink() { - - selfLink_ = getDefaultInstance().getSelfLink(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Server-defined URL for the resource.
-     * 
- * - * string self_link = 100; - * - * @param value The bytes for selfLink to set. - * @return This builder for chaining. - */ - public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - selfLink_ = value; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - * - * - *
-     * The version of the Kubernetes of this node.
-     * 
- * - * string version = 101; - * - * @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; - } - } - /** - * - * - *
-     * The version of the Kubernetes of this node.
-     * 
- * - * string version = 101; - * - * @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; - } - } - /** - * - * - *
-     * The version of the Kubernetes of this node.
-     * 
- * - * string version = 101; - * - * @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; - } - /** - * - * - *
-     * The version of the Kubernetes of this node.
-     * 
- * - * string version = 101; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - * - * - *
-     * The version of the Kubernetes of this node.
-     * 
- * - * string version = 101; - * - * @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 com.google.protobuf.LazyStringList instanceGroupUrls_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureInstanceGroupUrlsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * [Output only] The resource URLs of the [managed instance
-     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-     * associated with this node pool.
-     * 
- * - * repeated string instance_group_urls = 102; - * - * @return A list containing the instanceGroupUrls. - */ - public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { - return instanceGroupUrls_.getUnmodifiableView(); - } - /** - * - * - *
-     * [Output only] The resource URLs of the [managed instance
-     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-     * associated with this node pool.
-     * 
- * - * repeated string instance_group_urls = 102; - * - * @return The count of instanceGroupUrls. - */ - public int getInstanceGroupUrlsCount() { - return instanceGroupUrls_.size(); - } - /** - * - * - *
-     * [Output only] The resource URLs of the [managed instance
-     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-     * associated with this node pool.
-     * 
- * - * repeated string instance_group_urls = 102; - * - * @param index The index of the element to return. - * @return The instanceGroupUrls at the given index. - */ - public java.lang.String getInstanceGroupUrls(int index) { - return instanceGroupUrls_.get(index); - } - /** - * - * - *
-     * [Output only] The resource URLs of the [managed instance
-     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-     * associated with this node pool.
-     * 
- * - * repeated string instance_group_urls = 102; - * - * @param index The index of the value to return. - * @return The bytes of the instanceGroupUrls at the given index. - */ - public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { - return instanceGroupUrls_.getByteString(index); - } - /** - * - * - *
-     * [Output only] The resource URLs of the [managed instance
-     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-     * associated with this node pool.
-     * 
- * - * repeated string instance_group_urls = 102; - * - * @param index The index to set the value at. - * @param value The instanceGroupUrls to set. - * @return This builder for chaining. - */ - public Builder setInstanceGroupUrls(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The resource URLs of the [managed instance
-     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-     * associated with this node pool.
-     * 
- * - * repeated string instance_group_urls = 102; - * - * @param value The instanceGroupUrls to add. - * @return This builder for chaining. - */ - public Builder addInstanceGroupUrls(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The resource URLs of the [managed instance
-     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-     * associated with this node pool.
-     * 
- * - * repeated string instance_group_urls = 102; - * - * @param values The instanceGroupUrls to add. - * @return This builder for chaining. - */ - public Builder addAllInstanceGroupUrls(java.lang.Iterable values) { - ensureInstanceGroupUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceGroupUrls_); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The resource URLs of the [managed instance
-     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-     * associated with this node pool.
-     * 
- * - * repeated string instance_group_urls = 102; - * - * @return This builder for chaining. - */ - public Builder clearInstanceGroupUrls() { - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The resource URLs of the [managed instance
-     * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-     * associated with this node pool.
-     * 
- * - * repeated string instance_group_urls = 102; - * - * @param value The bytes of the instanceGroupUrls to add. - * @return This builder for chaining. - */ - public Builder addInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.add(value); - onChanged(); - return this; - } - - private int status_ = 0; - /** - * - * - *
-     * [Output only] The status of the nodes in this pool instance.
-     * 
- * - * .google.container.v1.NodePool.Status status = 103; - * - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override - public int getStatusValue() { - return status_; - } - /** - * - * - *
-     * [Output only] The status of the nodes in this pool instance.
-     * 
- * - * .google.container.v1.NodePool.Status status = 103; - * - * @param value The enum numeric value on the wire for status to set. - * @return This builder for chaining. - */ - public Builder setStatusValue(int value) { - - status_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The status of the nodes in this pool instance.
-     * 
- * - * .google.container.v1.NodePool.Status status = 103; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1.NodePool.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1.NodePool.Status result = - com.google.container.v1.NodePool.Status.valueOf(status_); - return result == null ? com.google.container.v1.NodePool.Status.UNRECOGNIZED : result; - } - /** - * - * - *
-     * [Output only] The status of the nodes in this pool instance.
-     * 
- * - * .google.container.v1.NodePool.Status status = 103; - * - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(com.google.container.v1.NodePool.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The status of the nodes in this pool instance.
-     * 
- * - * .google.container.v1.NodePool.Status status = 103; - * - * @return This builder for chaining. - */ - public Builder clearStatus() { - - status_ = 0; - onChanged(); - return this; - } - - private java.lang.Object statusMessage_ = ""; - /** - * - * - *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * node pool instance, if available.
-     * 
- * - * string status_message = 104 [deprecated = true]; - * - * @return The statusMessage. - */ - @java.lang.Deprecated - public java.lang.String getStatusMessage() { - java.lang.Object ref = statusMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusMessage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * node pool instance, if available.
-     * 
- * - * string status_message = 104 [deprecated = true]; - * - * @return The bytes for statusMessage. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * node pool instance, if available.
-     * 
- * - * string status_message = 104 [deprecated = true]; - * - * @param value The statusMessage to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setStatusMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusMessage_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * node pool instance, if available.
-     * 
- * - * string status_message = 104 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearStatusMessage() { - - statusMessage_ = getDefaultInstance().getStatusMessage(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] Deprecated. Use conditions instead.
-     * Additional information about the current status of this
-     * node pool instance, if available.
-     * 
- * - * string status_message = 104 [deprecated = true]; - * - * @param value The bytes for statusMessage to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusMessage_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.NodePoolAutoscaling autoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoscaling, - com.google.container.v1.NodePoolAutoscaling.Builder, - com.google.container.v1.NodePoolAutoscalingOrBuilder> - autoscalingBuilder_; - /** - * - * - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - * - * @return Whether the autoscaling field is set. - */ - public boolean hasAutoscaling() { - return autoscalingBuilder_ != null || autoscaling_ != null; - } - /** - * - * - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - * - * @return The autoscaling. - */ - public com.google.container.v1.NodePoolAutoscaling getAutoscaling() { - if (autoscalingBuilder_ == null) { - return autoscaling_ == null - ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() - : autoscaling_; - } else { - return autoscalingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - public Builder setAutoscaling(com.google.container.v1.NodePoolAutoscaling value) { - if (autoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoscaling_ = value; - onChanged(); - } else { - autoscalingBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - public Builder setAutoscaling( - com.google.container.v1.NodePoolAutoscaling.Builder builderForValue) { - if (autoscalingBuilder_ == null) { - autoscaling_ = builderForValue.build(); - onChanged(); - } else { - autoscalingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - public Builder mergeAutoscaling(com.google.container.v1.NodePoolAutoscaling value) { - if (autoscalingBuilder_ == null) { - if (autoscaling_ != null) { - autoscaling_ = - com.google.container.v1.NodePoolAutoscaling.newBuilder(autoscaling_) - .mergeFrom(value) - .buildPartial(); - } else { - autoscaling_ = value; - } - onChanged(); - } else { - autoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - public Builder clearAutoscaling() { - if (autoscalingBuilder_ == null) { - autoscaling_ = null; - onChanged(); - } else { - autoscaling_ = null; - autoscalingBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - public com.google.container.v1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { - - onChanged(); - return getAutoscalingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { - if (autoscalingBuilder_ != null) { - return autoscalingBuilder_.getMessageOrBuilder(); - } else { - return autoscaling_ == null - ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() - : autoscaling_; - } - } - /** - * - * - *
-     * Autoscaler configuration for this NodePool. Autoscaler is enabled
-     * only if a valid configuration is present.
-     * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoscaling, - com.google.container.v1.NodePoolAutoscaling.Builder, - com.google.container.v1.NodePoolAutoscalingOrBuilder> - getAutoscalingFieldBuilder() { - if (autoscalingBuilder_ == null) { - autoscalingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoscaling, - com.google.container.v1.NodePoolAutoscaling.Builder, - com.google.container.v1.NodePoolAutoscalingOrBuilder>( - getAutoscaling(), getParentForChildren(), isClean()); - autoscaling_ = null; - } - return autoscalingBuilder_; - } - - private com.google.container.v1.NodeManagement management_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeManagement, - com.google.container.v1.NodeManagement.Builder, - com.google.container.v1.NodeManagementOrBuilder> - managementBuilder_; - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5; - * - * @return Whether the management field is set. - */ - public boolean hasManagement() { - return managementBuilder_ != null || management_ != null; - } - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5; - * - * @return The management. - */ - public com.google.container.v1.NodeManagement getManagement() { - if (managementBuilder_ == null) { - return management_ == null - ? com.google.container.v1.NodeManagement.getDefaultInstance() - : management_; - } else { - return managementBuilder_.getMessage(); - } - } - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5; - */ - public Builder setManagement(com.google.container.v1.NodeManagement value) { - if (managementBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - management_ = value; - onChanged(); - } else { - managementBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5; - */ - public Builder setManagement(com.google.container.v1.NodeManagement.Builder builderForValue) { - if (managementBuilder_ == null) { - management_ = builderForValue.build(); - onChanged(); - } else { - managementBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5; - */ - public Builder mergeManagement(com.google.container.v1.NodeManagement value) { - if (managementBuilder_ == null) { - if (management_ != null) { - management_ = - com.google.container.v1.NodeManagement.newBuilder(management_) - .mergeFrom(value) - .buildPartial(); - } else { - management_ = value; - } - onChanged(); - } else { - managementBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5; - */ - public Builder clearManagement() { - if (managementBuilder_ == null) { - management_ = null; - onChanged(); - } else { - management_ = null; - managementBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5; - */ - public com.google.container.v1.NodeManagement.Builder getManagementBuilder() { - - onChanged(); - return getManagementFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5; - */ - public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { - if (managementBuilder_ != null) { - return managementBuilder_.getMessageOrBuilder(); - } else { - return management_ == null - ? com.google.container.v1.NodeManagement.getDefaultInstance() - : management_; - } - } - /** - * - * - *
-     * NodeManagement configuration for this NodePool.
-     * 
- * - * .google.container.v1.NodeManagement management = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeManagement, - com.google.container.v1.NodeManagement.Builder, - com.google.container.v1.NodeManagementOrBuilder> - getManagementFieldBuilder() { - if (managementBuilder_ == null) { - managementBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeManagement, - com.google.container.v1.NodeManagement.Builder, - com.google.container.v1.NodeManagementOrBuilder>( - getManagement(), getParentForChildren(), isClean()); - management_ = null; - } - return managementBuilder_; - } - - private com.google.container.v1.MaxPodsConstraint maxPodsConstraint_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaxPodsConstraint, - com.google.container.v1.MaxPodsConstraint.Builder, - com.google.container.v1.MaxPodsConstraintOrBuilder> - maxPodsConstraintBuilder_; - /** - * - * - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - * - * @return Whether the maxPodsConstraint field is set. - */ - public boolean hasMaxPodsConstraint() { - return maxPodsConstraintBuilder_ != null || maxPodsConstraint_ != null; - } - /** - * - * - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - * - * @return The maxPodsConstraint. - */ - public com.google.container.v1.MaxPodsConstraint getMaxPodsConstraint() { - if (maxPodsConstraintBuilder_ == null) { - return maxPodsConstraint_ == null - ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() - : maxPodsConstraint_; - } else { - return maxPodsConstraintBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - public Builder setMaxPodsConstraint(com.google.container.v1.MaxPodsConstraint value) { - if (maxPodsConstraintBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maxPodsConstraint_ = value; - onChanged(); - } else { - maxPodsConstraintBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - public Builder setMaxPodsConstraint( - com.google.container.v1.MaxPodsConstraint.Builder builderForValue) { - if (maxPodsConstraintBuilder_ == null) { - maxPodsConstraint_ = builderForValue.build(); - onChanged(); - } else { - maxPodsConstraintBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - public Builder mergeMaxPodsConstraint(com.google.container.v1.MaxPodsConstraint value) { - if (maxPodsConstraintBuilder_ == null) { - if (maxPodsConstraint_ != null) { - maxPodsConstraint_ = - com.google.container.v1.MaxPodsConstraint.newBuilder(maxPodsConstraint_) - .mergeFrom(value) - .buildPartial(); - } else { - maxPodsConstraint_ = value; - } - onChanged(); - } else { - maxPodsConstraintBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - public Builder clearMaxPodsConstraint() { - if (maxPodsConstraintBuilder_ == null) { - maxPodsConstraint_ = null; - onChanged(); - } else { - maxPodsConstraint_ = null; - maxPodsConstraintBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - public com.google.container.v1.MaxPodsConstraint.Builder getMaxPodsConstraintBuilder() { - - onChanged(); - return getMaxPodsConstraintFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - public com.google.container.v1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder() { - if (maxPodsConstraintBuilder_ != null) { - return maxPodsConstraintBuilder_.getMessageOrBuilder(); - } else { - return maxPodsConstraint_ == null - ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() - : maxPodsConstraint_; - } - } - /** - * - * - *
-     * The constraint on the maximum number of pods that can be run
-     * simultaneously on a node in the node pool.
-     * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaxPodsConstraint, - com.google.container.v1.MaxPodsConstraint.Builder, - com.google.container.v1.MaxPodsConstraintOrBuilder> - getMaxPodsConstraintFieldBuilder() { - if (maxPodsConstraintBuilder_ == null) { - maxPodsConstraintBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaxPodsConstraint, - com.google.container.v1.MaxPodsConstraint.Builder, - com.google.container.v1.MaxPodsConstraintOrBuilder>( - getMaxPodsConstraint(), getParentForChildren(), isClean()); - maxPodsConstraint_ = null; - } - return maxPodsConstraintBuilder_; - } - - private java.util.List conditions_ = - java.util.Collections.emptyList(); - - private void ensureConditionsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - conditions_ = new java.util.ArrayList(conditions_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder> - conditionsBuilder_; - - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public java.util.List getConditionsList() { - if (conditionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(conditions_); - } else { - return conditionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public int getConditionsCount() { - if (conditionsBuilder_ == null) { - return conditions_.size(); - } else { - return conditionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public com.google.container.v1.StatusCondition getConditions(int index) { - if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { - return conditionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public Builder setConditions(int index, com.google.container.v1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.set(index, value); - onChanged(); - } else { - conditionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public Builder setConditions( - int index, com.google.container.v1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.set(index, builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public Builder addConditions(com.google.container.v1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.add(value); - onChanged(); - } else { - conditionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public Builder addConditions(int index, com.google.container.v1.StatusCondition value) { - if (conditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConditionsIsMutable(); - conditions_.add(index, value); - onChanged(); - } else { - conditionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public Builder addConditions(com.google.container.v1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public Builder addConditions( - int index, com.google.container.v1.StatusCondition.Builder builderForValue) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.add(index, builderForValue.build()); - onChanged(); - } else { - conditionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public Builder addAllConditions( - java.lang.Iterable values) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); - onChanged(); - } else { - conditionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public Builder clearConditions() { - if (conditionsBuilder_ == null) { - conditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - conditionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public Builder removeConditions(int index) { - if (conditionsBuilder_ == null) { - ensureConditionsIsMutable(); - conditions_.remove(index); - onChanged(); - } else { - conditionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public com.google.container.v1.StatusCondition.Builder getConditionsBuilder(int index) { - return getConditionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { - if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { - return conditionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public java.util.List - getConditionsOrBuilderList() { - if (conditionsBuilder_ != null) { - return conditionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(conditions_); - } - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public com.google.container.v1.StatusCondition.Builder addConditionsBuilder() { - return getConditionsFieldBuilder() - .addBuilder(com.google.container.v1.StatusCondition.getDefaultInstance()); - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public com.google.container.v1.StatusCondition.Builder addConditionsBuilder(int index) { - return getConditionsFieldBuilder() - .addBuilder(index, com.google.container.v1.StatusCondition.getDefaultInstance()); - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - public java.util.List - getConditionsBuilderList() { - return getConditionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder> - getConditionsFieldBuilder() { - if (conditionsBuilder_ == null) { - conditionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder>( - conditions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - conditions_ = null; - } - return conditionsBuilder_; - } - - private int podIpv4CidrSize_; - /** - * - * - *
-     * [Output only] The pod CIDR block size per node in this node pool.
-     * 
- * - * int32 pod_ipv4_cidr_size = 7; - * - * @return The podIpv4CidrSize. - */ - @java.lang.Override - public int getPodIpv4CidrSize() { - return podIpv4CidrSize_; - } - /** - * - * - *
-     * [Output only] The pod CIDR block size per node in this node pool.
-     * 
- * - * int32 pod_ipv4_cidr_size = 7; - * - * @param value The podIpv4CidrSize to set. - * @return This builder for chaining. - */ - public Builder setPodIpv4CidrSize(int value) { - - podIpv4CidrSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The pod CIDR block size per node in this node pool.
-     * 
- * - * int32 pod_ipv4_cidr_size = 7; - * - * @return This builder for chaining. - */ - public Builder clearPodIpv4CidrSize() { - - podIpv4CidrSize_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, - com.google.container.v1.NodePool.UpgradeSettings.Builder, - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> - upgradeSettingsBuilder_; - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - * - * @return Whether the upgradeSettings field is set. - */ - public boolean hasUpgradeSettings() { - return upgradeSettingsBuilder_ != null || upgradeSettings_ != null; - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - * - * @return The upgradeSettings. - */ - public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { - if (upgradeSettingsBuilder_ == null) { - return upgradeSettings_ == null - ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } else { - return upgradeSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public Builder setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - upgradeSettings_ = value; - onChanged(); - } else { - upgradeSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public Builder setUpgradeSettings( - com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue) { - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = builderForValue.build(); - onChanged(); - } else { - upgradeSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public Builder mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (upgradeSettings_ != null) { - upgradeSettings_ = - com.google.container.v1.NodePool.UpgradeSettings.newBuilder(upgradeSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - upgradeSettings_ = value; - } - onChanged(); - } else { - upgradeSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public Builder clearUpgradeSettings() { - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = null; - onChanged(); - } else { - upgradeSettings_ = null; - upgradeSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public com.google.container.v1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { - - onChanged(); - return getUpgradeSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - if (upgradeSettingsBuilder_ != null) { - return upgradeSettingsBuilder_.getMessageOrBuilder(); - } else { - return upgradeSettings_ == null - ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, - com.google.container.v1.NodePool.UpgradeSettings.Builder, - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> - getUpgradeSettingsFieldBuilder() { - if (upgradeSettingsBuilder_ == null) { - upgradeSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, - com.google.container.v1.NodePool.UpgradeSettings.Builder, - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder>( - getUpgradeSettings(), getParentForChildren(), isClean()); - upgradeSettings_ = null; - } - return upgradeSettingsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.NodePool) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodePool) - private static final com.google.container.v1.NodePool DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodePool(); - } - - public static com.google.container.v1.NodePool getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodePool parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodePool(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.container.v1.NodePool getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscaling.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscaling.java deleted file mode 100644 index 521278c1..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscaling.java +++ /dev/null @@ -1,824 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * NodePoolAutoscaling contains information required by cluster autoscaler to
- * adjust the size of the node pool to the current cluster usage.
- * 
- * - * Protobuf type {@code google.container.v1.NodePoolAutoscaling} - */ -public final class NodePoolAutoscaling extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodePoolAutoscaling) - NodePoolAutoscalingOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodePoolAutoscaling.newBuilder() to construct. - private NodePoolAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodePoolAutoscaling() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodePoolAutoscaling(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private NodePoolAutoscaling( - 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: - { - enabled_ = input.readBool(); - break; - } - case 16: - { - minNodeCount_ = input.readInt32(); - break; - } - case 24: - { - maxNodeCount_ = input.readInt32(); - break; - } - case 32: - { - autoprovisioned_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolAutoscaling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolAutoscaling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePoolAutoscaling.class, - com.google.container.v1.NodePoolAutoscaling.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - * - * - *
-   * Is autoscaling enabled for this node pool.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - public static final int MIN_NODE_COUNT_FIELD_NUMBER = 2; - private int minNodeCount_; - /** - * - * - *
-   * Minimum number of nodes in the NodePool. Must be >= 1 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_; - /** - * - * - *
-   * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
-   * has to enough quota to scale up the cluster.
-   * 
- * - * int32 max_node_count = 3; - * - * @return The maxNodeCount. - */ - @java.lang.Override - public int getMaxNodeCount() { - return maxNodeCount_; - } - - public static final int AUTOPROVISIONED_FIELD_NUMBER = 4; - private boolean autoprovisioned_; - /** - * - * - *
-   * Can this node pool be deleted automatically.
-   * 
- * - * bool autoprovisioned = 4; - * - * @return The autoprovisioned. - */ - @java.lang.Override - public boolean getAutoprovisioned() { - return autoprovisioned_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - if (minNodeCount_ != 0) { - output.writeInt32(2, minNodeCount_); - } - if (maxNodeCount_ != 0) { - output.writeInt32(3, maxNodeCount_); - } - if (autoprovisioned_ != false) { - output.writeBool(4, autoprovisioned_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); - } - if (minNodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minNodeCount_); - } - if (maxNodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxNodeCount_); - } - if (autoprovisioned_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, autoprovisioned_); - } - 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.container.v1.NodePoolAutoscaling)) { - return super.equals(obj); - } - com.google.container.v1.NodePoolAutoscaling other = - (com.google.container.v1.NodePoolAutoscaling) obj; - - if (getEnabled() != other.getEnabled()) return false; - if (getMinNodeCount() != other.getMinNodeCount()) return false; - if (getMaxNodeCount() != other.getMaxNodeCount()) return false; - if (getAutoprovisioned() != other.getAutoprovisioned()) 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) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); - 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 = (37 * hash) + AUTOPROVISIONED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoprovisioned()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodePoolAutoscaling parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePoolAutoscaling parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePoolAutoscaling parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePoolAutoscaling parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePoolAutoscaling parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodePoolAutoscaling parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodePoolAutoscaling parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePoolAutoscaling parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePoolAutoscaling parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePoolAutoscaling parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodePoolAutoscaling parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodePoolAutoscaling parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NodePoolAutoscaling prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * NodePoolAutoscaling contains information required by cluster autoscaler to
-   * adjust the size of the node pool to the current cluster usage.
-   * 
- * - * Protobuf type {@code google.container.v1.NodePoolAutoscaling} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodePoolAutoscaling) - com.google.container.v1.NodePoolAutoscalingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolAutoscaling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolAutoscaling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodePoolAutoscaling.class, - com.google.container.v1.NodePoolAutoscaling.Builder.class); - } - - // Construct using com.google.container.v1.NodePoolAutoscaling.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(); - enabled_ = false; - - minNodeCount_ = 0; - - maxNodeCount_ = 0; - - autoprovisioned_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodePoolAutoscaling_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodePoolAutoscaling getDefaultInstanceForType() { - return com.google.container.v1.NodePoolAutoscaling.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodePoolAutoscaling build() { - com.google.container.v1.NodePoolAutoscaling result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodePoolAutoscaling buildPartial() { - com.google.container.v1.NodePoolAutoscaling result = - new com.google.container.v1.NodePoolAutoscaling(this); - result.enabled_ = enabled_; - result.minNodeCount_ = minNodeCount_; - result.maxNodeCount_ = maxNodeCount_; - result.autoprovisioned_ = autoprovisioned_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodePoolAutoscaling) { - return mergeFrom((com.google.container.v1.NodePoolAutoscaling) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodePoolAutoscaling other) { - if (other == com.google.container.v1.NodePoolAutoscaling.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (other.getMinNodeCount() != 0) { - setMinNodeCount(other.getMinNodeCount()); - } - if (other.getMaxNodeCount() != 0) { - setMaxNodeCount(other.getMaxNodeCount()); - } - if (other.getAutoprovisioned() != false) { - setAutoprovisioned(other.getAutoprovisioned()); - } - 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.container.v1.NodePoolAutoscaling parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.NodePoolAutoscaling) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean enabled_; - /** - * - * - *
-     * Is autoscaling enabled for this node pool.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Is autoscaling enabled for this node pool.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Is autoscaling enabled for this node pool.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - - private int minNodeCount_; - /** - * - * - *
-     * Minimum number of nodes in the NodePool. Must be >= 1 and <=
-     * max_node_count.
-     * 
- * - * int32 min_node_count = 2; - * - * @return The minNodeCount. - */ - @java.lang.Override - public int getMinNodeCount() { - return minNodeCount_; - } - /** - * - * - *
-     * Minimum number of nodes in the NodePool. Must be >= 1 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; - } - /** - * - * - *
-     * Minimum number of nodes in the NodePool. Must be >= 1 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_; - /** - * - * - *
-     * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
-     * has to enough quota to scale up the cluster.
-     * 
- * - * int32 max_node_count = 3; - * - * @return The maxNodeCount. - */ - @java.lang.Override - public int getMaxNodeCount() { - return maxNodeCount_; - } - /** - * - * - *
-     * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
-     * has to enough quota 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; - } - /** - * - * - *
-     * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
-     * has to enough quota to scale up the cluster.
-     * 
- * - * int32 max_node_count = 3; - * - * @return This builder for chaining. - */ - public Builder clearMaxNodeCount() { - - maxNodeCount_ = 0; - onChanged(); - return this; - } - - private boolean autoprovisioned_; - /** - * - * - *
-     * Can this node pool be deleted automatically.
-     * 
- * - * bool autoprovisioned = 4; - * - * @return The autoprovisioned. - */ - @java.lang.Override - public boolean getAutoprovisioned() { - return autoprovisioned_; - } - /** - * - * - *
-     * Can this node pool be deleted automatically.
-     * 
- * - * bool autoprovisioned = 4; - * - * @param value The autoprovisioned to set. - * @return This builder for chaining. - */ - public Builder setAutoprovisioned(boolean value) { - - autoprovisioned_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Can this node pool be deleted automatically.
-     * 
- * - * bool autoprovisioned = 4; - * - * @return This builder for chaining. - */ - public Builder clearAutoprovisioned() { - - autoprovisioned_ = 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.container.v1.NodePoolAutoscaling) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodePoolAutoscaling) - private static final com.google.container.v1.NodePoolAutoscaling DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodePoolAutoscaling(); - } - - public static com.google.container.v1.NodePoolAutoscaling getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodePoolAutoscaling parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodePoolAutoscaling(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.container.v1.NodePoolAutoscaling getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscalingOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscalingOrBuilder.java deleted file mode 100644 index c4e91108..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscalingOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface NodePoolAutoscalingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodePoolAutoscaling) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Is autoscaling enabled for this node pool.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); - - /** - * - * - *
-   * Minimum number of nodes in the NodePool. Must be >= 1 and <=
-   * max_node_count.
-   * 
- * - * int32 min_node_count = 2; - * - * @return The minNodeCount. - */ - int getMinNodeCount(); - - /** - * - * - *
-   * Maximum number of nodes in the NodePool. Must be >= min_node_count. There
-   * has to enough quota to scale up the cluster.
-   * 
- * - * int32 max_node_count = 3; - * - * @return The maxNodeCount. - */ - int getMaxNodeCount(); - - /** - * - * - *
-   * Can this node pool be deleted automatically.
-   * 
- * - * bool autoprovisioned = 4; - * - * @return The autoprovisioned. - */ - boolean getAutoprovisioned(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java deleted file mode 100644 index 7b27dcb1..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java +++ /dev/null @@ -1,556 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface NodePoolOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodePool) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The name of the node pool.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name of the node pool.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The node configuration of the pool.
-   * 
- * - * .google.container.v1.NodeConfig config = 2; - * - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - * - * - *
-   * The node configuration of the pool.
-   * 
- * - * .google.container.v1.NodeConfig config = 2; - * - * @return The config. - */ - com.google.container.v1.NodeConfig getConfig(); - /** - * - * - *
-   * The node configuration of the pool.
-   * 
- * - * .google.container.v1.NodeConfig config = 2; - */ - com.google.container.v1.NodeConfigOrBuilder getConfigOrBuilder(); - - /** - * - * - *
-   * The initial node count for the pool. You must ensure that your
-   * Compute Engine [resource quota](https://cloud.google.com/compute/quotas)
-   * is sufficient for this number of instances. You must also have available
-   * firewall and routes quota.
-   * 
- * - * int32 initial_node_count = 3; - * - * @return The initialNodeCount. - */ - int getInitialNodeCount(); - - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes should be located.
-   * If this value is unspecified during node pool creation, the
-   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-   * value will be used, instead.
-   * Warning: changing node pool locations will result in nodes being added
-   * and/or removed.
-   * 
- * - * repeated string locations = 13; - * - * @return A list containing the locations. - */ - java.util.List getLocationsList(); - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes should be located.
-   * If this value is unspecified during node pool creation, the
-   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-   * value will be used, instead.
-   * Warning: changing node pool locations will result in nodes being added
-   * and/or removed.
-   * 
- * - * repeated string locations = 13; - * - * @return The count of locations. - */ - int getLocationsCount(); - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes should be located.
-   * If this value is unspecified during node pool creation, the
-   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-   * value will be used, instead.
-   * Warning: changing node pool locations will result in nodes being added
-   * and/or removed.
-   * 
- * - * repeated string locations = 13; - * - * @param index The index of the element to return. - * @return The locations at the given index. - */ - java.lang.String getLocations(int index); - /** - * - * - *
-   * The list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * NodePool's nodes should be located.
-   * If this value is unspecified during node pool creation, the
-   * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations)
-   * value will be used, instead.
-   * Warning: changing node pool locations will result in nodes being added
-   * and/or removed.
-   * 
- * - * repeated string locations = 13; - * - * @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); - - /** - * - * - *
-   * [Output only] Server-defined URL for the resource.
-   * 
- * - * string self_link = 100; - * - * @return The selfLink. - */ - java.lang.String getSelfLink(); - /** - * - * - *
-   * [Output only] Server-defined URL for the resource.
-   * 
- * - * string self_link = 100; - * - * @return The bytes for selfLink. - */ - com.google.protobuf.ByteString getSelfLinkBytes(); - - /** - * - * - *
-   * The version of the Kubernetes of this node.
-   * 
- * - * string version = 101; - * - * @return The version. - */ - java.lang.String getVersion(); - /** - * - * - *
-   * The version of the Kubernetes of this node.
-   * 
- * - * string version = 101; - * - * @return The bytes for version. - */ - com.google.protobuf.ByteString getVersionBytes(); - - /** - * - * - *
-   * [Output only] The resource URLs of the [managed instance
-   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-   * associated with this node pool.
-   * 
- * - * repeated string instance_group_urls = 102; - * - * @return A list containing the instanceGroupUrls. - */ - java.util.List getInstanceGroupUrlsList(); - /** - * - * - *
-   * [Output only] The resource URLs of the [managed instance
-   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-   * associated with this node pool.
-   * 
- * - * repeated string instance_group_urls = 102; - * - * @return The count of instanceGroupUrls. - */ - int getInstanceGroupUrlsCount(); - /** - * - * - *
-   * [Output only] The resource URLs of the [managed instance
-   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-   * associated with this node pool.
-   * 
- * - * repeated string instance_group_urls = 102; - * - * @param index The index of the element to return. - * @return The instanceGroupUrls at the given index. - */ - java.lang.String getInstanceGroupUrls(int index); - /** - * - * - *
-   * [Output only] The resource URLs of the [managed instance
-   * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances)
-   * associated with this node pool.
-   * 
- * - * repeated string instance_group_urls = 102; - * - * @param index The index of the value to return. - * @return The bytes of the instanceGroupUrls at the given index. - */ - com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index); - - /** - * - * - *
-   * [Output only] The status of the nodes in this pool instance.
-   * 
- * - * .google.container.v1.NodePool.Status status = 103; - * - * @return The enum numeric value on the wire for status. - */ - int getStatusValue(); - /** - * - * - *
-   * [Output only] The status of the nodes in this pool instance.
-   * 
- * - * .google.container.v1.NodePool.Status status = 103; - * - * @return The status. - */ - com.google.container.v1.NodePool.Status getStatus(); - - /** - * - * - *
-   * [Output only] Deprecated. Use conditions instead.
-   * Additional information about the current status of this
-   * node pool instance, if available.
-   * 
- * - * string status_message = 104 [deprecated = true]; - * - * @return The statusMessage. - */ - @java.lang.Deprecated - java.lang.String getStatusMessage(); - /** - * - * - *
-   * [Output only] Deprecated. Use conditions instead.
-   * Additional information about the current status of this
-   * node pool instance, if available.
-   * 
- * - * string status_message = 104 [deprecated = true]; - * - * @return The bytes for statusMessage. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getStatusMessageBytes(); - - /** - * - * - *
-   * Autoscaler configuration for this NodePool. Autoscaler is enabled
-   * only if a valid configuration is present.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - * - * @return Whether the autoscaling field is set. - */ - boolean hasAutoscaling(); - /** - * - * - *
-   * Autoscaler configuration for this NodePool. Autoscaler is enabled
-   * only if a valid configuration is present.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - * - * @return The autoscaling. - */ - com.google.container.v1.NodePoolAutoscaling getAutoscaling(); - /** - * - * - *
-   * Autoscaler configuration for this NodePool. Autoscaler is enabled
-   * only if a valid configuration is present.
-   * 
- * - * .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder(); - - /** - * - * - *
-   * NodeManagement configuration for this NodePool.
-   * 
- * - * .google.container.v1.NodeManagement management = 5; - * - * @return Whether the management field is set. - */ - boolean hasManagement(); - /** - * - * - *
-   * NodeManagement configuration for this NodePool.
-   * 
- * - * .google.container.v1.NodeManagement management = 5; - * - * @return The management. - */ - com.google.container.v1.NodeManagement getManagement(); - /** - * - * - *
-   * NodeManagement configuration for this NodePool.
-   * 
- * - * .google.container.v1.NodeManagement management = 5; - */ - com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder(); - - /** - * - * - *
-   * The constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool.
-   * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - * - * @return Whether the maxPodsConstraint field is set. - */ - boolean hasMaxPodsConstraint(); - /** - * - * - *
-   * The constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool.
-   * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - * - * @return The maxPodsConstraint. - */ - com.google.container.v1.MaxPodsConstraint getMaxPodsConstraint(); - /** - * - * - *
-   * The constraint on the maximum number of pods that can be run
-   * simultaneously on a node in the node pool.
-   * 
- * - * .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - com.google.container.v1.MaxPodsConstraintOrBuilder getMaxPodsConstraintOrBuilder(); - - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - java.util.List getConditionsList(); - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - com.google.container.v1.StatusCondition getConditions(int index); - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - int getConditionsCount(); - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - java.util.List - getConditionsOrBuilderList(); - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition conditions = 105; - */ - com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder(int index); - - /** - * - * - *
-   * [Output only] The pod CIDR block size per node in this node pool.
-   * 
- * - * int32 pod_ipv4_cidr_size = 7; - * - * @return The podIpv4CidrSize. - */ - int getPodIpv4CidrSize(); - - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - * - * @return Whether the upgradeSettings field is set. - */ - boolean hasUpgradeSettings(); - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - * - * @return The upgradeSettings. - */ - com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings(); - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaint.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaint.java deleted file mode 100644 index 7ff88cd0..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaint.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Kubernetes taint is comprised of three fields: key, value, and effect. Effect
- * can only be one of three types:  NoSchedule, PreferNoSchedule or NoExecute.
- * See
- * [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
- * for more information, including usage and the valid values.
- * 
- * - * Protobuf type {@code google.container.v1.NodeTaint} - */ -public final class NodeTaint extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.NodeTaint) - NodeTaintOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeTaint.newBuilder() to construct. - private NodeTaint(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private NodeTaint() { - key_ = ""; - value_ = ""; - effect_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NodeTaint(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private NodeTaint( - 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(); - - key_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); - - effect_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeTaint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeTaint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeTaint.class, - com.google.container.v1.NodeTaint.Builder.class); - } - - /** - * - * - *
-   * Possible values for Effect in taint.
-   * 
- * - * Protobuf enum {@code google.container.v1.NodeTaint.Effect} - */ - public enum Effect implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Not set
-     * 
- * - * EFFECT_UNSPECIFIED = 0; - */ - EFFECT_UNSPECIFIED(0), - /** - * - * - *
-     * NoSchedule
-     * 
- * - * NO_SCHEDULE = 1; - */ - NO_SCHEDULE(1), - /** - * - * - *
-     * PreferNoSchedule
-     * 
- * - * PREFER_NO_SCHEDULE = 2; - */ - PREFER_NO_SCHEDULE(2), - /** - * - * - *
-     * NoExecute
-     * 
- * - * NO_EXECUTE = 3; - */ - NO_EXECUTE(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Not set
-     * 
- * - * EFFECT_UNSPECIFIED = 0; - */ - public static final int EFFECT_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * NoSchedule
-     * 
- * - * NO_SCHEDULE = 1; - */ - public static final int NO_SCHEDULE_VALUE = 1; - /** - * - * - *
-     * PreferNoSchedule
-     * 
- * - * PREFER_NO_SCHEDULE = 2; - */ - public static final int PREFER_NO_SCHEDULE_VALUE = 2; - /** - * - * - *
-     * NoExecute
-     * 
- * - * NO_EXECUTE = 3; - */ - public static final int NO_EXECUTE_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 Effect 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 Effect forNumber(int value) { - switch (value) { - case 0: - return EFFECT_UNSPECIFIED; - case 1: - return NO_SCHEDULE; - case 2: - return PREFER_NO_SCHEDULE; - case 3: - return NO_EXECUTE; - 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 Effect findValueByNumber(int number) { - return Effect.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.container.v1.NodeTaint.getDescriptor().getEnumTypes().get(0); - } - - private static final Effect[] VALUES = values(); - - public static Effect 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 Effect(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.NodeTaint.Effect) - } - - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * - * - *
-   * Key for taint.
-   * 
- * - * string key = 1; - * - * @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; - } - } - /** - * - * - *
-   * Key for taint.
-   * 
- * - * string key = 1; - * - * @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 VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; - /** - * - * - *
-   * Value for taint.
-   * 
- * - * string value = 2; - * - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - * - * - *
-   * Value for taint.
-   * 
- * - * string value = 2; - * - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EFFECT_FIELD_NUMBER = 3; - private int effect_; - /** - * - * - *
-   * Effect for taint.
-   * 
- * - * .google.container.v1.NodeTaint.Effect effect = 3; - * - * @return The enum numeric value on the wire for effect. - */ - @java.lang.Override - public int getEffectValue() { - return effect_; - } - /** - * - * - *
-   * Effect for taint.
-   * 
- * - * .google.container.v1.NodeTaint.Effect effect = 3; - * - * @return The effect. - */ - @java.lang.Override - public com.google.container.v1.NodeTaint.Effect getEffect() { - @SuppressWarnings("deprecation") - com.google.container.v1.NodeTaint.Effect result = - com.google.container.v1.NodeTaint.Effect.valueOf(effect_); - return result == null ? com.google.container.v1.NodeTaint.Effect.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 (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - if (effect_ != com.google.container.v1.NodeTaint.Effect.EFFECT_UNSPECIFIED.getNumber()) { - output.writeEnum(3, effect_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); - } - if (effect_ != com.google.container.v1.NodeTaint.Effect.EFFECT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, effect_); - } - 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.container.v1.NodeTaint)) { - return super.equals(obj); - } - com.google.container.v1.NodeTaint other = (com.google.container.v1.NodeTaint) obj; - - if (!getKey().equals(other.getKey())) return false; - if (!getValue().equals(other.getValue())) return false; - if (effect_ != other.effect_) 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) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + EFFECT_FIELD_NUMBER; - hash = (53 * hash) + effect_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.NodeTaint parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeTaint parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeTaint parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeTaint parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeTaint parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.NodeTaint parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.NodeTaint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeTaint parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodeTaint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeTaint parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.NodeTaint parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.NodeTaint parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.NodeTaint prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Kubernetes taint is comprised of three fields: key, value, and effect. Effect
-   * can only be one of three types:  NoSchedule, PreferNoSchedule or NoExecute.
-   * See
-   * [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration)
-   * for more information, including usage and the valid values.
-   * 
- * - * Protobuf type {@code google.container.v1.NodeTaint} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.NodeTaint) - com.google.container.v1.NodeTaintOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeTaint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeTaint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.NodeTaint.class, - com.google.container.v1.NodeTaint.Builder.class); - } - - // Construct using com.google.container.v1.NodeTaint.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(); - key_ = ""; - - value_ = ""; - - effect_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_NodeTaint_descriptor; - } - - @java.lang.Override - public com.google.container.v1.NodeTaint getDefaultInstanceForType() { - return com.google.container.v1.NodeTaint.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.NodeTaint build() { - com.google.container.v1.NodeTaint result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.NodeTaint buildPartial() { - com.google.container.v1.NodeTaint result = new com.google.container.v1.NodeTaint(this); - result.key_ = key_; - result.value_ = value_; - result.effect_ = effect_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.NodeTaint) { - return mergeFrom((com.google.container.v1.NodeTaint) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.NodeTaint other) { - if (other == com.google.container.v1.NodeTaint.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - if (other.effect_ != 0) { - setEffectValue(other.getEffectValue()); - } - 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.container.v1.NodeTaint parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.NodeTaint) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - * - * - *
-     * Key for taint.
-     * 
- * - * string key = 1; - * - * @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; - } - } - /** - * - * - *
-     * Key for taint.
-     * 
- * - * string key = 1; - * - * @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; - } - } - /** - * - * - *
-     * Key for taint.
-     * 
- * - * string key = 1; - * - * @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; - } - /** - * - * - *
-     * Key for taint.
-     * 
- * - * string key = 1; - * - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * - * - *
-     * Key for taint.
-     * 
- * - * string key = 1; - * - * @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 java.lang.Object value_ = ""; - /** - * - * - *
-     * Value for taint.
-     * 
- * - * string value = 2; - * - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Value for taint.
-     * 
- * - * string value = 2; - * - * @return The bytes for value. - */ - public com.google.protobuf.ByteString getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Value for taint.
-     * 
- * - * string value = 2; - * - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Value for taint.
-     * 
- * - * string value = 2; - * - * @return This builder for chaining. - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * - * - *
-     * Value for taint.
-     * 
- * - * string value = 2; - * - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - - private int effect_ = 0; - /** - * - * - *
-     * Effect for taint.
-     * 
- * - * .google.container.v1.NodeTaint.Effect effect = 3; - * - * @return The enum numeric value on the wire for effect. - */ - @java.lang.Override - public int getEffectValue() { - return effect_; - } - /** - * - * - *
-     * Effect for taint.
-     * 
- * - * .google.container.v1.NodeTaint.Effect effect = 3; - * - * @param value The enum numeric value on the wire for effect to set. - * @return This builder for chaining. - */ - public Builder setEffectValue(int value) { - - effect_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Effect for taint.
-     * 
- * - * .google.container.v1.NodeTaint.Effect effect = 3; - * - * @return The effect. - */ - @java.lang.Override - public com.google.container.v1.NodeTaint.Effect getEffect() { - @SuppressWarnings("deprecation") - com.google.container.v1.NodeTaint.Effect result = - com.google.container.v1.NodeTaint.Effect.valueOf(effect_); - return result == null ? com.google.container.v1.NodeTaint.Effect.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Effect for taint.
-     * 
- * - * .google.container.v1.NodeTaint.Effect effect = 3; - * - * @param value The effect to set. - * @return This builder for chaining. - */ - public Builder setEffect(com.google.container.v1.NodeTaint.Effect value) { - if (value == null) { - throw new NullPointerException(); - } - - effect_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Effect for taint.
-     * 
- * - * .google.container.v1.NodeTaint.Effect effect = 3; - * - * @return This builder for chaining. - */ - public Builder clearEffect() { - - effect_ = 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.container.v1.NodeTaint) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.NodeTaint) - private static final com.google.container.v1.NodeTaint DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.NodeTaint(); - } - - public static com.google.container.v1.NodeTaint getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeTaint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeTaint(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.container.v1.NodeTaint getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintOrBuilder.java deleted file mode 100644 index 06b6935b..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface NodeTaintOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.NodeTaint) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Key for taint.
-   * 
- * - * string key = 1; - * - * @return The key. - */ - java.lang.String getKey(); - /** - * - * - *
-   * Key for taint.
-   * 
- * - * string key = 1; - * - * @return The bytes for key. - */ - com.google.protobuf.ByteString getKeyBytes(); - - /** - * - * - *
-   * Value for taint.
-   * 
- * - * string value = 2; - * - * @return The value. - */ - java.lang.String getValue(); - /** - * - * - *
-   * Value for taint.
-   * 
- * - * string value = 2; - * - * @return The bytes for value. - */ - com.google.protobuf.ByteString getValueBytes(); - - /** - * - * - *
-   * Effect for taint.
-   * 
- * - * .google.container.v1.NodeTaint.Effect effect = 3; - * - * @return The enum numeric value on the wire for effect. - */ - int getEffectValue(); - /** - * - * - *
-   * Effect for taint.
-   * 
- * - * .google.container.v1.NodeTaint.Effect effect = 3; - * - * @return The effect. - */ - com.google.container.v1.NodeTaint.Effect getEffect(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java deleted file mode 100644 index c1988733..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java +++ /dev/null @@ -1,4391 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * This operation resource represents operations that may have happened or are
- * happening on the cluster. All fields are output only.
- * 
- * - * Protobuf type {@code google.container.v1.Operation} - */ -public final class Operation extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.Operation) - OperationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Operation.newBuilder() to construct. - private Operation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Operation() { - name_ = ""; - zone_ = ""; - operationType_ = 0; - status_ = 0; - detail_ = ""; - statusMessage_ = ""; - selfLink_ = ""; - targetLink_ = ""; - location_ = ""; - startTime_ = ""; - endTime_ = ""; - clusterConditions_ = java.util.Collections.emptyList(); - nodepoolConditions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Operation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Operation( - 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(); - - zone_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); - - operationType_ = rawValue; - break; - } - case 32: - { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - statusMessage_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - selfLink_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - targetLink_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - detail_ = s; - break; - } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - - location_ = s; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - - startTime_ = s; - break; - } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - - endTime_ = s; - break; - } - case 98: - { - com.google.container.v1.OperationProgress.Builder subBuilder = null; - if (progress_ != null) { - subBuilder = progress_.toBuilder(); - } - progress_ = - input.readMessage( - com.google.container.v1.OperationProgress.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(progress_); - progress_ = subBuilder.buildPartial(); - } - - break; - } - case 106: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - clusterConditions_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - clusterConditions_.add( - input.readMessage( - com.google.container.v1.StatusCondition.parser(), extensionRegistry)); - break; - } - case 114: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - nodepoolConditions_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - nodepoolConditions_.add( - input.readMessage( - com.google.container.v1.StatusCondition.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)) { - clusterConditions_ = java.util.Collections.unmodifiableList(clusterConditions_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - nodepoolConditions_ = java.util.Collections.unmodifiableList(nodepoolConditions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Operation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Operation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.Operation.class, - com.google.container.v1.Operation.Builder.class); - } - - /** - * - * - *
-   * Current status of the operation.
-   * 
- * - * Protobuf enum {@code google.container.v1.Operation.Status} - */ - public enum Status implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Not set.
-     * 
- * - * STATUS_UNSPECIFIED = 0; - */ - STATUS_UNSPECIFIED(0), - /** - * - * - *
-     * The operation has been created.
-     * 
- * - * PENDING = 1; - */ - PENDING(1), - /** - * - * - *
-     * The operation is currently running.
-     * 
- * - * RUNNING = 2; - */ - RUNNING(2), - /** - * - * - *
-     * The operation is done, either cancelled or completed.
-     * 
- * - * DONE = 3; - */ - DONE(3), - /** - * - * - *
-     * The operation is aborting.
-     * 
- * - * ABORTING = 4; - */ - ABORTING(4), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Not set.
-     * 
- * - * STATUS_UNSPECIFIED = 0; - */ - public static final int STATUS_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The operation has been created.
-     * 
- * - * PENDING = 1; - */ - public static final int PENDING_VALUE = 1; - /** - * - * - *
-     * The operation is currently 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; - /** - * - * - *
-     * The operation is aborting.
-     * 
- * - * ABORTING = 4; - */ - public static final int ABORTING_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 Status 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 Status forNumber(int value) { - switch (value) { - case 0: - return STATUS_UNSPECIFIED; - case 1: - return PENDING; - case 2: - return RUNNING; - case 3: - return DONE; - case 4: - return ABORTING; - 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 Status findValueByNumber(int number) { - return Status.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.container.v1.Operation.getDescriptor().getEnumTypes().get(0); - } - - private static final Status[] VALUES = values(); - - public static Status 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 Status(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.Operation.Status) - } - - /** - * - * - *
-   * Operation type.
-   * 
- * - * Protobuf enum {@code google.container.v1.Operation.Type} - */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Not set.
-     * 
- * - * TYPE_UNSPECIFIED = 0; - */ - TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Cluster create.
-     * 
- * - * CREATE_CLUSTER = 1; - */ - CREATE_CLUSTER(1), - /** - * - * - *
-     * Cluster delete.
-     * 
- * - * DELETE_CLUSTER = 2; - */ - DELETE_CLUSTER(2), - /** - * - * - *
-     * A master upgrade.
-     * 
- * - * UPGRADE_MASTER = 3; - */ - UPGRADE_MASTER(3), - /** - * - * - *
-     * A node upgrade.
-     * 
- * - * UPGRADE_NODES = 4; - */ - UPGRADE_NODES(4), - /** - * - * - *
-     * Cluster repair.
-     * 
- * - * REPAIR_CLUSTER = 5; - */ - REPAIR_CLUSTER(5), - /** - * - * - *
-     * Cluster update.
-     * 
- * - * UPDATE_CLUSTER = 6; - */ - UPDATE_CLUSTER(6), - /** - * - * - *
-     * Node pool create.
-     * 
- * - * CREATE_NODE_POOL = 7; - */ - CREATE_NODE_POOL(7), - /** - * - * - *
-     * Node pool delete.
-     * 
- * - * DELETE_NODE_POOL = 8; - */ - DELETE_NODE_POOL(8), - /** - * - * - *
-     * Set node pool management.
-     * 
- * - * SET_NODE_POOL_MANAGEMENT = 9; - */ - SET_NODE_POOL_MANAGEMENT(9), - /** - * - * - *
-     * Automatic node pool repair.
-     * 
- * - * AUTO_REPAIR_NODES = 10; - */ - AUTO_REPAIR_NODES(10), - /** - * - * - *
-     * Automatic node upgrade.
-     * 
- * - * AUTO_UPGRADE_NODES = 11; - */ - AUTO_UPGRADE_NODES(11), - /** - * - * - *
-     * Set labels.
-     * 
- * - * SET_LABELS = 12; - */ - SET_LABELS(12), - /** - * - * - *
-     * Set/generate master auth materials
-     * 
- * - * SET_MASTER_AUTH = 13; - */ - SET_MASTER_AUTH(13), - /** - * - * - *
-     * Set node pool size.
-     * 
- * - * SET_NODE_POOL_SIZE = 14; - */ - SET_NODE_POOL_SIZE(14), - /** - * - * - *
-     * Updates network policy for a cluster.
-     * 
- * - * SET_NETWORK_POLICY = 15; - */ - SET_NETWORK_POLICY(15), - /** - * - * - *
-     * Set the maintenance policy.
-     * 
- * - * SET_MAINTENANCE_POLICY = 16; - */ - SET_MAINTENANCE_POLICY(16), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Not set.
-     * 
- * - * TYPE_UNSPECIFIED = 0; - */ - public static final int TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Cluster create.
-     * 
- * - * CREATE_CLUSTER = 1; - */ - public static final int CREATE_CLUSTER_VALUE = 1; - /** - * - * - *
-     * Cluster delete.
-     * 
- * - * DELETE_CLUSTER = 2; - */ - public static final int DELETE_CLUSTER_VALUE = 2; - /** - * - * - *
-     * A master upgrade.
-     * 
- * - * UPGRADE_MASTER = 3; - */ - public static final int UPGRADE_MASTER_VALUE = 3; - /** - * - * - *
-     * A node upgrade.
-     * 
- * - * UPGRADE_NODES = 4; - */ - public static final int UPGRADE_NODES_VALUE = 4; - /** - * - * - *
-     * Cluster repair.
-     * 
- * - * REPAIR_CLUSTER = 5; - */ - public static final int REPAIR_CLUSTER_VALUE = 5; - /** - * - * - *
-     * Cluster update.
-     * 
- * - * UPDATE_CLUSTER = 6; - */ - public static final int UPDATE_CLUSTER_VALUE = 6; - /** - * - * - *
-     * Node pool create.
-     * 
- * - * CREATE_NODE_POOL = 7; - */ - public static final int CREATE_NODE_POOL_VALUE = 7; - /** - * - * - *
-     * Node pool delete.
-     * 
- * - * DELETE_NODE_POOL = 8; - */ - public static final int DELETE_NODE_POOL_VALUE = 8; - /** - * - * - *
-     * Set node pool management.
-     * 
- * - * SET_NODE_POOL_MANAGEMENT = 9; - */ - public static final int SET_NODE_POOL_MANAGEMENT_VALUE = 9; - /** - * - * - *
-     * Automatic node pool repair.
-     * 
- * - * AUTO_REPAIR_NODES = 10; - */ - public static final int AUTO_REPAIR_NODES_VALUE = 10; - /** - * - * - *
-     * Automatic node upgrade.
-     * 
- * - * AUTO_UPGRADE_NODES = 11; - */ - public static final int AUTO_UPGRADE_NODES_VALUE = 11; - /** - * - * - *
-     * Set labels.
-     * 
- * - * SET_LABELS = 12; - */ - public static final int SET_LABELS_VALUE = 12; - /** - * - * - *
-     * Set/generate master auth materials
-     * 
- * - * SET_MASTER_AUTH = 13; - */ - public static final int SET_MASTER_AUTH_VALUE = 13; - /** - * - * - *
-     * Set node pool size.
-     * 
- * - * SET_NODE_POOL_SIZE = 14; - */ - public static final int SET_NODE_POOL_SIZE_VALUE = 14; - /** - * - * - *
-     * Updates network policy for a cluster.
-     * 
- * - * SET_NETWORK_POLICY = 15; - */ - public static final int SET_NETWORK_POLICY_VALUE = 15; - /** - * - * - *
-     * Set the maintenance policy.
-     * 
- * - * SET_MAINTENANCE_POLICY = 16; - */ - public static final int SET_MAINTENANCE_POLICY_VALUE = 16; - - 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 CREATE_CLUSTER; - case 2: - return DELETE_CLUSTER; - case 3: - return UPGRADE_MASTER; - case 4: - return UPGRADE_NODES; - case 5: - return REPAIR_CLUSTER; - case 6: - return UPDATE_CLUSTER; - case 7: - return CREATE_NODE_POOL; - case 8: - return DELETE_NODE_POOL; - case 9: - return SET_NODE_POOL_MANAGEMENT; - case 10: - return AUTO_REPAIR_NODES; - case 11: - return AUTO_UPGRADE_NODES; - case 12: - return SET_LABELS; - case 13: - return SET_MASTER_AUTH; - case 14: - return SET_NODE_POOL_SIZE; - case 15: - return SET_NETWORK_POLICY; - case 16: - return SET_MAINTENANCE_POLICY; - 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.container.v1.Operation.getDescriptor().getEnumTypes().get(1); - } - - private static final Type[] VALUES = values(); - - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Type(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.Operation.Type) - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The server-assigned ID for the operation.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The server-assigned ID for the operation.
-   * 
- * - * 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * operation is taking place. This field is deprecated, use location instead.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * operation is taking place. This field is deprecated, use location instead.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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 OPERATION_TYPE_FIELD_NUMBER = 3; - private int operationType_; - /** - * - * - *
-   * The operation type.
-   * 
- * - * .google.container.v1.Operation.Type operation_type = 3; - * - * @return The enum numeric value on the wire for operationType. - */ - @java.lang.Override - public int getOperationTypeValue() { - return operationType_; - } - /** - * - * - *
-   * The operation type.
-   * 
- * - * .google.container.v1.Operation.Type operation_type = 3; - * - * @return The operationType. - */ - @java.lang.Override - public com.google.container.v1.Operation.Type getOperationType() { - @SuppressWarnings("deprecation") - com.google.container.v1.Operation.Type result = - com.google.container.v1.Operation.Type.valueOf(operationType_); - return result == null ? com.google.container.v1.Operation.Type.UNRECOGNIZED : result; - } - - public static final int STATUS_FIELD_NUMBER = 4; - private int status_; - /** - * - * - *
-   * The current status of the operation.
-   * 
- * - * .google.container.v1.Operation.Status status = 4; - * - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override - public int getStatusValue() { - return status_; - } - /** - * - * - *
-   * The current status of the operation.
-   * 
- * - * .google.container.v1.Operation.Status status = 4; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1.Operation.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1.Operation.Status result = - com.google.container.v1.Operation.Status.valueOf(status_); - return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result; - } - - public static final int DETAIL_FIELD_NUMBER = 8; - private volatile java.lang.Object detail_; - /** - * - * - *
-   * Detailed operation progress, if available.
-   * 
- * - * string detail = 8; - * - * @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; - } - } - /** - * - * - *
-   * Detailed operation progress, if available.
-   * 
- * - * string detail = 8; - * - * @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 STATUS_MESSAGE_FIELD_NUMBER = 5; - private volatile java.lang.Object statusMessage_; - /** - * - * - *
-   * Output only. If an error has occurred, a textual description of the error.
-   * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The statusMessage. - */ - @java.lang.Override - public java.lang.String getStatusMessage() { - java.lang.Object ref = statusMessage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusMessage_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. If an error has occurred, a textual description of the error.
-   * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for statusMessage. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SELF_LINK_FIELD_NUMBER = 6; - private volatile java.lang.Object selfLink_; - /** - * - * - *
-   * Server-defined URL for the resource.
-   * 
- * - * string self_link = 6; - * - * @return The selfLink. - */ - @java.lang.Override - public java.lang.String getSelfLink() { - java.lang.Object ref = selfLink_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selfLink_ = s; - return s; - } - } - /** - * - * - *
-   * Server-defined URL for the resource.
-   * 
- * - * string self_link = 6; - * - * @return The bytes for selfLink. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSelfLinkBytes() { - java.lang.Object ref = selfLink_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - selfLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TARGET_LINK_FIELD_NUMBER = 7; - private volatile java.lang.Object targetLink_; - /** - * - * - *
-   * Server-defined URL for the target of the operation.
-   * 
- * - * string target_link = 7; - * - * @return The targetLink. - */ - @java.lang.Override - public java.lang.String getTargetLink() { - java.lang.Object ref = targetLink_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetLink_ = s; - return s; - } - } - /** - * - * - *
-   * Server-defined URL for the target of the operation.
-   * 
- * - * string target_link = 7; - * - * @return The bytes for targetLink. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTargetLinkBytes() { - java.lang.Object ref = targetLink_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - targetLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATION_FIELD_NUMBER = 9; - private volatile java.lang.Object location_; - /** - * - * - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * in which the cluster resides.
-   * 
- * - * string location = 9; - * - * @return The location. - */ - @java.lang.Override - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * in which the cluster resides.
-   * 
- * - * string location = 9; - * - * @return The bytes for location. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int START_TIME_FIELD_NUMBER = 10; - private volatile java.lang.Object startTime_; - /** - * - * - *
-   * [Output only] The time the operation started, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string start_time = 10; - * - * @return The startTime. - */ - @java.lang.Override - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - startTime_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] The time the operation started, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string start_time = 10; - * - * @return The bytes for startTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int END_TIME_FIELD_NUMBER = 11; - private volatile java.lang.Object endTime_; - /** - * - * - *
-   * [Output only] The time the operation completed, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string end_time = 11; - * - * @return The endTime. - */ - @java.lang.Override - public java.lang.String getEndTime() { - java.lang.Object ref = endTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - endTime_ = s; - return s; - } - } - /** - * - * - *
-   * [Output only] The time the operation completed, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string end_time = 11; - * - * @return The bytes for endTime. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEndTimeBytes() { - java.lang.Object ref = endTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - endTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROGRESS_FIELD_NUMBER = 12; - private com.google.container.v1.OperationProgress progress_; - /** - * - * - *
-   * Output only. [Output only] Progress information for an operation.
-   * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the progress field is set. - */ - @java.lang.Override - public boolean hasProgress() { - return progress_ != null; - } - /** - * - * - *
-   * Output only. [Output only] Progress information for an operation.
-   * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The progress. - */ - @java.lang.Override - public com.google.container.v1.OperationProgress getProgress() { - return progress_ == null - ? com.google.container.v1.OperationProgress.getDefaultInstance() - : progress_; - } - /** - * - * - *
-   * Output only. [Output only] Progress information for an operation.
-   * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.container.v1.OperationProgressOrBuilder getProgressOrBuilder() { - return getProgress(); - } - - public static final int CLUSTER_CONDITIONS_FIELD_NUMBER = 13; - private java.util.List clusterConditions_; - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - @java.lang.Override - public java.util.List getClusterConditionsList() { - return clusterConditions_; - } - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - @java.lang.Override - public java.util.List - getClusterConditionsOrBuilderList() { - return clusterConditions_; - } - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - @java.lang.Override - public int getClusterConditionsCount() { - return clusterConditions_.size(); - } - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - @java.lang.Override - public com.google.container.v1.StatusCondition getClusterConditions(int index) { - return clusterConditions_.get(index); - } - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - @java.lang.Override - public com.google.container.v1.StatusConditionOrBuilder getClusterConditionsOrBuilder(int index) { - return clusterConditions_.get(index); - } - - public static final int NODEPOOL_CONDITIONS_FIELD_NUMBER = 14; - private java.util.List nodepoolConditions_; - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - @java.lang.Override - public java.util.List getNodepoolConditionsList() { - return nodepoolConditions_; - } - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - @java.lang.Override - public java.util.List - getNodepoolConditionsOrBuilderList() { - return nodepoolConditions_; - } - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - @java.lang.Override - public int getNodepoolConditionsCount() { - return nodepoolConditions_.size(); - } - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - @java.lang.Override - public com.google.container.v1.StatusCondition getNodepoolConditions(int index) { - return nodepoolConditions_.get(index); - } - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - @java.lang.Override - public com.google.container.v1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder( - int index) { - return nodepoolConditions_.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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (operationType_ != com.google.container.v1.Operation.Type.TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(3, operationType_); - } - if (status_ != com.google.container.v1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { - output.writeEnum(4, status_); - } - if (!getStatusMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); - } - if (!getSelfLinkBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, selfLink_); - } - if (!getTargetLinkBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, targetLink_); - } - if (!getDetailBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, detail_); - } - if (!getLocationBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, location_); - } - if (!getStartTimeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, startTime_); - } - if (!getEndTimeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, endTime_); - } - if (progress_ != null) { - output.writeMessage(12, getProgress()); - } - for (int i = 0; i < clusterConditions_.size(); i++) { - output.writeMessage(13, clusterConditions_.get(i)); - } - for (int i = 0; i < nodepoolConditions_.size(); i++) { - output.writeMessage(14, nodepoolConditions_.get(i)); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (operationType_ != com.google.container.v1.Operation.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, operationType_); - } - if (status_ != com.google.container.v1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, status_); - } - if (!getStatusMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); - } - if (!getSelfLinkBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, selfLink_); - } - if (!getTargetLinkBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, targetLink_); - } - if (!getDetailBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, detail_); - } - if (!getLocationBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, location_); - } - if (!getStartTimeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, startTime_); - } - if (!getEndTimeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, endTime_); - } - if (progress_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getProgress()); - } - for (int i = 0; i < clusterConditions_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(13, clusterConditions_.get(i)); - } - for (int i = 0; i < nodepoolConditions_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(14, nodepoolConditions_.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.container.v1.Operation)) { - return super.equals(obj); - } - com.google.container.v1.Operation other = (com.google.container.v1.Operation) obj; - - if (!getName().equals(other.getName())) return false; - if (!getZone().equals(other.getZone())) return false; - if (operationType_ != other.operationType_) return false; - if (status_ != other.status_) return false; - if (!getDetail().equals(other.getDetail())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (!getSelfLink().equals(other.getSelfLink())) return false; - if (!getTargetLink().equals(other.getTargetLink())) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (!getStartTime().equals(other.getStartTime())) return false; - if (!getEndTime().equals(other.getEndTime())) return false; - if (hasProgress() != other.hasProgress()) return false; - if (hasProgress()) { - if (!getProgress().equals(other.getProgress())) return false; - } - if (!getClusterConditionsList().equals(other.getClusterConditionsList())) return false; - if (!getNodepoolConditionsList().equals(other.getNodepoolConditionsList())) 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) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + OPERATION_TYPE_FIELD_NUMBER; - hash = (53 * hash) + operationType_; - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; - hash = (37 * hash) + DETAIL_FIELD_NUMBER; - hash = (53 * hash) + getDetail().hashCode(); - hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getStatusMessage().hashCode(); - hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; - hash = (53 * hash) + getSelfLink().hashCode(); - hash = (37 * hash) + TARGET_LINK_FIELD_NUMBER; - hash = (53 * hash) + getTargetLink().hashCode(); - hash = (37 * hash) + LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getLocation().hashCode(); - hash = (37 * hash) + START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getStartTime().hashCode(); - hash = (37 * hash) + END_TIME_FIELD_NUMBER; - hash = (53 * hash) + getEndTime().hashCode(); - if (hasProgress()) { - hash = (37 * hash) + PROGRESS_FIELD_NUMBER; - hash = (53 * hash) + getProgress().hashCode(); - } - if (getClusterConditionsCount() > 0) { - hash = (37 * hash) + CLUSTER_CONDITIONS_FIELD_NUMBER; - hash = (53 * hash) + getClusterConditionsList().hashCode(); - } - if (getNodepoolConditionsCount() > 0) { - hash = (37 * hash) + NODEPOOL_CONDITIONS_FIELD_NUMBER; - hash = (53 * hash) + getNodepoolConditionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.Operation parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.Operation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.Operation parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.Operation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.Operation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.Operation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.Operation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.Operation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.Operation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.Operation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.Operation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.Operation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.Operation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * This operation resource represents operations that may have happened or are
-   * happening on the cluster. All fields are output only.
-   * 
- * - * Protobuf type {@code google.container.v1.Operation} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.Operation) - com.google.container.v1.OperationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Operation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Operation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.Operation.class, - com.google.container.v1.Operation.Builder.class); - } - - // Construct using com.google.container.v1.Operation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getClusterConditionsFieldBuilder(); - getNodepoolConditionsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - zone_ = ""; - - operationType_ = 0; - - status_ = 0; - - detail_ = ""; - - statusMessage_ = ""; - - selfLink_ = ""; - - targetLink_ = ""; - - location_ = ""; - - startTime_ = ""; - - endTime_ = ""; - - if (progressBuilder_ == null) { - progress_ = null; - } else { - progress_ = null; - progressBuilder_ = null; - } - if (clusterConditionsBuilder_ == null) { - clusterConditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - clusterConditionsBuilder_.clear(); - } - if (nodepoolConditionsBuilder_ == null) { - nodepoolConditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - nodepoolConditionsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_Operation_descriptor; - } - - @java.lang.Override - public com.google.container.v1.Operation getDefaultInstanceForType() { - return com.google.container.v1.Operation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.Operation build() { - com.google.container.v1.Operation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.Operation buildPartial() { - com.google.container.v1.Operation result = new com.google.container.v1.Operation(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.zone_ = zone_; - result.operationType_ = operationType_; - result.status_ = status_; - result.detail_ = detail_; - result.statusMessage_ = statusMessage_; - result.selfLink_ = selfLink_; - result.targetLink_ = targetLink_; - result.location_ = location_; - result.startTime_ = startTime_; - result.endTime_ = endTime_; - if (progressBuilder_ == null) { - result.progress_ = progress_; - } else { - result.progress_ = progressBuilder_.build(); - } - if (clusterConditionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - clusterConditions_ = java.util.Collections.unmodifiableList(clusterConditions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.clusterConditions_ = clusterConditions_; - } else { - result.clusterConditions_ = clusterConditionsBuilder_.build(); - } - if (nodepoolConditionsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - nodepoolConditions_ = java.util.Collections.unmodifiableList(nodepoolConditions_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.nodepoolConditions_ = nodepoolConditions_; - } else { - result.nodepoolConditions_ = nodepoolConditionsBuilder_.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.container.v1.Operation) { - return mergeFrom((com.google.container.v1.Operation) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.Operation other) { - if (other == com.google.container.v1.Operation.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (other.operationType_ != 0) { - setOperationTypeValue(other.getOperationTypeValue()); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - if (!other.getDetail().isEmpty()) { - detail_ = other.detail_; - onChanged(); - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - onChanged(); - } - if (!other.getSelfLink().isEmpty()) { - selfLink_ = other.selfLink_; - onChanged(); - } - if (!other.getTargetLink().isEmpty()) { - targetLink_ = other.targetLink_; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - onChanged(); - } - if (!other.getStartTime().isEmpty()) { - startTime_ = other.startTime_; - onChanged(); - } - if (!other.getEndTime().isEmpty()) { - endTime_ = other.endTime_; - onChanged(); - } - if (other.hasProgress()) { - mergeProgress(other.getProgress()); - } - if (clusterConditionsBuilder_ == null) { - if (!other.clusterConditions_.isEmpty()) { - if (clusterConditions_.isEmpty()) { - clusterConditions_ = other.clusterConditions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureClusterConditionsIsMutable(); - clusterConditions_.addAll(other.clusterConditions_); - } - onChanged(); - } - } else { - if (!other.clusterConditions_.isEmpty()) { - if (clusterConditionsBuilder_.isEmpty()) { - clusterConditionsBuilder_.dispose(); - clusterConditionsBuilder_ = null; - clusterConditions_ = other.clusterConditions_; - bitField0_ = (bitField0_ & ~0x00000001); - clusterConditionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getClusterConditionsFieldBuilder() - : null; - } else { - clusterConditionsBuilder_.addAllMessages(other.clusterConditions_); - } - } - } - if (nodepoolConditionsBuilder_ == null) { - if (!other.nodepoolConditions_.isEmpty()) { - if (nodepoolConditions_.isEmpty()) { - nodepoolConditions_ = other.nodepoolConditions_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureNodepoolConditionsIsMutable(); - nodepoolConditions_.addAll(other.nodepoolConditions_); - } - onChanged(); - } - } else { - if (!other.nodepoolConditions_.isEmpty()) { - if (nodepoolConditionsBuilder_.isEmpty()) { - nodepoolConditionsBuilder_.dispose(); - nodepoolConditionsBuilder_ = null; - nodepoolConditions_ = other.nodepoolConditions_; - bitField0_ = (bitField0_ & ~0x00000002); - nodepoolConditionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNodepoolConditionsFieldBuilder() - : null; - } else { - nodepoolConditionsBuilder_.addAllMessages(other.nodepoolConditions_); - } - } - } - 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.container.v1.Operation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.Operation) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The server-assigned ID for the operation.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The server-assigned ID for the operation.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The server-assigned ID for the operation.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The server-assigned ID for the operation.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The server-assigned ID for the operation.
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object zone_ = ""; - /** - * - * - *
-     * The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * operation is taking place. This field is deprecated, use location instead.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * operation is taking place. This field is deprecated, use location instead.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * operation is taking place. This field is deprecated, use location instead.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * operation is taking place. This field is deprecated, use location instead.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * operation is taking place. This field is deprecated, use location instead.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private int operationType_ = 0; - /** - * - * - *
-     * The operation type.
-     * 
- * - * .google.container.v1.Operation.Type operation_type = 3; - * - * @return The enum numeric value on the wire for operationType. - */ - @java.lang.Override - public int getOperationTypeValue() { - return operationType_; - } - /** - * - * - *
-     * The operation type.
-     * 
- * - * .google.container.v1.Operation.Type operation_type = 3; - * - * @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.container.v1.Operation.Type operation_type = 3; - * - * @return The operationType. - */ - @java.lang.Override - public com.google.container.v1.Operation.Type getOperationType() { - @SuppressWarnings("deprecation") - com.google.container.v1.Operation.Type result = - com.google.container.v1.Operation.Type.valueOf(operationType_); - return result == null ? com.google.container.v1.Operation.Type.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The operation type.
-     * 
- * - * .google.container.v1.Operation.Type operation_type = 3; - * - * @param value The operationType to set. - * @return This builder for chaining. - */ - public Builder setOperationType(com.google.container.v1.Operation.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - operationType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The operation type.
-     * 
- * - * .google.container.v1.Operation.Type operation_type = 3; - * - * @return This builder for chaining. - */ - public Builder clearOperationType() { - - operationType_ = 0; - onChanged(); - return this; - } - - private int status_ = 0; - /** - * - * - *
-     * The current status of the operation.
-     * 
- * - * .google.container.v1.Operation.Status status = 4; - * - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override - public int getStatusValue() { - return status_; - } - /** - * - * - *
-     * The current status of the operation.
-     * 
- * - * .google.container.v1.Operation.Status status = 4; - * - * @param value The enum numeric value on the wire for status to set. - * @return This builder for chaining. - */ - public Builder setStatusValue(int value) { - - status_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The current status of the operation.
-     * 
- * - * .google.container.v1.Operation.Status status = 4; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1.Operation.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1.Operation.Status result = - com.google.container.v1.Operation.Status.valueOf(status_); - return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The current status of the operation.
-     * 
- * - * .google.container.v1.Operation.Status status = 4; - * - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(com.google.container.v1.Operation.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The current status of the operation.
-     * 
- * - * .google.container.v1.Operation.Status status = 4; - * - * @return This builder for chaining. - */ - public Builder clearStatus() { - - status_ = 0; - onChanged(); - return this; - } - - private java.lang.Object detail_ = ""; - /** - * - * - *
-     * Detailed operation progress, if available.
-     * 
- * - * string detail = 8; - * - * @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; - } - } - /** - * - * - *
-     * Detailed operation progress, if available.
-     * 
- * - * string detail = 8; - * - * @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; - } - } - /** - * - * - *
-     * Detailed operation progress, if available.
-     * 
- * - * string detail = 8; - * - * @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; - } - /** - * - * - *
-     * Detailed operation progress, if available.
-     * 
- * - * string detail = 8; - * - * @return This builder for chaining. - */ - public Builder clearDetail() { - - detail_ = getDefaultInstance().getDetail(); - onChanged(); - return this; - } - /** - * - * - *
-     * Detailed operation progress, if available.
-     * 
- * - * string detail = 8; - * - * @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 java.lang.Object statusMessage_ = ""; - /** - * - * - *
-     * Output only. If an error has occurred, a textual description of the error.
-     * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The statusMessage. - */ - public java.lang.String getStatusMessage() { - java.lang.Object ref = statusMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusMessage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. If an error has occurred, a textual description of the error.
-     * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for statusMessage. - */ - public com.google.protobuf.ByteString getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. If an error has occurred, a textual description of the error.
-     * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The statusMessage to set. - * @return This builder for chaining. - */ - public Builder setStatusMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusMessage_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. If an error has occurred, a textual description of the error.
-     * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearStatusMessage() { - - statusMessage_ = getDefaultInstance().getStatusMessage(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. If an error has occurred, a textual description of the error.
-     * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for statusMessage to set. - * @return This builder for chaining. - */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusMessage_ = value; - onChanged(); - return this; - } - - private java.lang.Object selfLink_ = ""; - /** - * - * - *
-     * Server-defined URL for the resource.
-     * 
- * - * string self_link = 6; - * - * @return The selfLink. - */ - public java.lang.String getSelfLink() { - java.lang.Object ref = selfLink_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selfLink_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Server-defined URL for the resource.
-     * 
- * - * string self_link = 6; - * - * @return The bytes for selfLink. - */ - public com.google.protobuf.ByteString getSelfLinkBytes() { - java.lang.Object ref = selfLink_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - selfLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Server-defined URL for the resource.
-     * 
- * - * string self_link = 6; - * - * @param value The selfLink to set. - * @return This builder for chaining. - */ - public Builder setSelfLink(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - selfLink_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Server-defined URL for the resource.
-     * 
- * - * string self_link = 6; - * - * @return This builder for chaining. - */ - public Builder clearSelfLink() { - - selfLink_ = getDefaultInstance().getSelfLink(); - onChanged(); - return this; - } - /** - * - * - *
-     * Server-defined URL for the resource.
-     * 
- * - * string self_link = 6; - * - * @param value The bytes for selfLink to set. - * @return This builder for chaining. - */ - public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - selfLink_ = value; - onChanged(); - return this; - } - - private java.lang.Object targetLink_ = ""; - /** - * - * - *
-     * Server-defined URL for the target of the operation.
-     * 
- * - * string target_link = 7; - * - * @return The targetLink. - */ - public java.lang.String getTargetLink() { - java.lang.Object ref = targetLink_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetLink_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Server-defined URL for the target of the operation.
-     * 
- * - * string target_link = 7; - * - * @return The bytes for targetLink. - */ - public com.google.protobuf.ByteString getTargetLinkBytes() { - java.lang.Object ref = targetLink_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - targetLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Server-defined URL for the target of the operation.
-     * 
- * - * string target_link = 7; - * - * @param value The targetLink to set. - * @return This builder for chaining. - */ - public Builder setTargetLink(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - targetLink_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Server-defined URL for the target of the operation.
-     * 
- * - * string target_link = 7; - * - * @return This builder for chaining. - */ - public Builder clearTargetLink() { - - targetLink_ = getDefaultInstance().getTargetLink(); - onChanged(); - return this; - } - /** - * - * - *
-     * Server-defined URL for the target of the operation.
-     * 
- * - * string target_link = 7; - * - * @param value The bytes for targetLink to set. - * @return This builder for chaining. - */ - public Builder setTargetLinkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - targetLink_ = value; - onChanged(); - return this; - } - - private java.lang.Object location_ = ""; - /** - * - * - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 9; - * - * @return The location. - */ - public java.lang.String getLocation() { - java.lang.Object ref = location_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - location_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 9; - * - * @return The bytes for location. - */ - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - location_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 9; - * - * @param value The location to set. - * @return This builder for chaining. - */ - public Builder setLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - location_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 9; - * - * @return This builder for chaining. - */ - public Builder clearLocation() { - - location_ = getDefaultInstance().getLocation(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * or
-     * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-     * in which the cluster resides.
-     * 
- * - * string location = 9; - * - * @param value The bytes for location to set. - * @return This builder for chaining. - */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - location_ = value; - onChanged(); - return this; - } - - private java.lang.Object startTime_ = ""; - /** - * - * - *
-     * [Output only] The time the operation started, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string start_time = 10; - * - * @return The startTime. - */ - public java.lang.String getStartTime() { - java.lang.Object ref = startTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - startTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] The time the operation started, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string start_time = 10; - * - * @return The bytes for startTime. - */ - public com.google.protobuf.ByteString getStartTimeBytes() { - java.lang.Object ref = startTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - startTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] The time the operation started, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string start_time = 10; - * - * @param value The startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTime(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - startTime_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The time the operation started, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string start_time = 10; - * - * @return This builder for chaining. - */ - public Builder clearStartTime() { - - startTime_ = getDefaultInstance().getStartTime(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The time the operation started, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string start_time = 10; - * - * @param value The bytes for startTime to set. - * @return This builder for chaining. - */ - public Builder setStartTimeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - startTime_ = value; - onChanged(); - return this; - } - - private java.lang.Object endTime_ = ""; - /** - * - * - *
-     * [Output only] The time the operation completed, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string end_time = 11; - * - * @return The endTime. - */ - public java.lang.String getEndTime() { - java.lang.Object ref = endTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - endTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Output only] The time the operation completed, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string end_time = 11; - * - * @return The bytes for endTime. - */ - public com.google.protobuf.ByteString getEndTimeBytes() { - java.lang.Object ref = endTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - endTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Output only] The time the operation completed, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string end_time = 11; - * - * @param value The endTime to set. - * @return This builder for chaining. - */ - public Builder setEndTime(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - endTime_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The time the operation completed, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string end_time = 11; - * - * @return This builder for chaining. - */ - public Builder clearEndTime() { - - endTime_ = getDefaultInstance().getEndTime(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Output only] The time the operation completed, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-     * 
- * - * string end_time = 11; - * - * @param value The bytes for endTime to set. - * @return This builder for chaining. - */ - public Builder setEndTimeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - endTime_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.OperationProgress progress_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.OperationProgress, - com.google.container.v1.OperationProgress.Builder, - com.google.container.v1.OperationProgressOrBuilder> - progressBuilder_; - /** - * - * - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the progress field is set. - */ - public boolean hasProgress() { - return progressBuilder_ != null || progress_ != null; - } - /** - * - * - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The progress. - */ - public com.google.container.v1.OperationProgress getProgress() { - if (progressBuilder_ == null) { - return progress_ == null - ? com.google.container.v1.OperationProgress.getDefaultInstance() - : progress_; - } else { - return progressBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setProgress(com.google.container.v1.OperationProgress value) { - if (progressBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - progress_ = value; - onChanged(); - } else { - progressBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setProgress(com.google.container.v1.OperationProgress.Builder builderForValue) { - if (progressBuilder_ == null) { - progress_ = builderForValue.build(); - onChanged(); - } else { - progressBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeProgress(com.google.container.v1.OperationProgress value) { - if (progressBuilder_ == null) { - if (progress_ != null) { - progress_ = - com.google.container.v1.OperationProgress.newBuilder(progress_) - .mergeFrom(value) - .buildPartial(); - } else { - progress_ = value; - } - onChanged(); - } else { - progressBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearProgress() { - if (progressBuilder_ == null) { - progress_ = null; - onChanged(); - } else { - progress_ = null; - progressBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1.OperationProgress.Builder getProgressBuilder() { - - onChanged(); - return getProgressFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.container.v1.OperationProgressOrBuilder getProgressOrBuilder() { - if (progressBuilder_ != null) { - return progressBuilder_.getMessageOrBuilder(); - } else { - return progress_ == null - ? com.google.container.v1.OperationProgress.getDefaultInstance() - : progress_; - } - } - /** - * - * - *
-     * Output only. [Output only] Progress information for an operation.
-     * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.OperationProgress, - com.google.container.v1.OperationProgress.Builder, - com.google.container.v1.OperationProgressOrBuilder> - getProgressFieldBuilder() { - if (progressBuilder_ == null) { - progressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.OperationProgress, - com.google.container.v1.OperationProgress.Builder, - com.google.container.v1.OperationProgressOrBuilder>( - getProgress(), getParentForChildren(), isClean()); - progress_ = null; - } - return progressBuilder_; - } - - private java.util.List clusterConditions_ = - java.util.Collections.emptyList(); - - private void ensureClusterConditionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - clusterConditions_ = - new java.util.ArrayList(clusterConditions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder> - clusterConditionsBuilder_; - - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - public java.util.List getClusterConditionsList() { - if (clusterConditionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(clusterConditions_); - } else { - return clusterConditionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - public int getClusterConditionsCount() { - if (clusterConditionsBuilder_ == null) { - return clusterConditions_.size(); - } else { - return clusterConditionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - public com.google.container.v1.StatusCondition getClusterConditions(int index) { - if (clusterConditionsBuilder_ == null) { - return clusterConditions_.get(index); - } else { - return clusterConditionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - public Builder setClusterConditions(int index, com.google.container.v1.StatusCondition value) { - if (clusterConditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClusterConditionsIsMutable(); - clusterConditions_.set(index, value); - onChanged(); - } else { - clusterConditionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - public Builder setClusterConditions( - int index, com.google.container.v1.StatusCondition.Builder builderForValue) { - if (clusterConditionsBuilder_ == null) { - ensureClusterConditionsIsMutable(); - clusterConditions_.set(index, builderForValue.build()); - onChanged(); - } else { - clusterConditionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - public Builder addClusterConditions(com.google.container.v1.StatusCondition value) { - if (clusterConditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClusterConditionsIsMutable(); - clusterConditions_.add(value); - onChanged(); - } else { - clusterConditionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - public Builder addClusterConditions(int index, com.google.container.v1.StatusCondition value) { - if (clusterConditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClusterConditionsIsMutable(); - clusterConditions_.add(index, value); - onChanged(); - } else { - clusterConditionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - public Builder addClusterConditions( - com.google.container.v1.StatusCondition.Builder builderForValue) { - if (clusterConditionsBuilder_ == null) { - ensureClusterConditionsIsMutable(); - clusterConditions_.add(builderForValue.build()); - onChanged(); - } else { - clusterConditionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - public Builder addClusterConditions( - int index, com.google.container.v1.StatusCondition.Builder builderForValue) { - if (clusterConditionsBuilder_ == null) { - ensureClusterConditionsIsMutable(); - clusterConditions_.add(index, builderForValue.build()); - onChanged(); - } else { - clusterConditionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - public Builder addAllClusterConditions( - java.lang.Iterable values) { - if (clusterConditionsBuilder_ == null) { - ensureClusterConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, clusterConditions_); - onChanged(); - } else { - clusterConditionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - public Builder clearClusterConditions() { - if (clusterConditionsBuilder_ == null) { - clusterConditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - clusterConditionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - public Builder removeClusterConditions(int index) { - if (clusterConditionsBuilder_ == null) { - ensureClusterConditionsIsMutable(); - clusterConditions_.remove(index); - onChanged(); - } else { - clusterConditionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - public com.google.container.v1.StatusCondition.Builder getClusterConditionsBuilder(int index) { - return getClusterConditionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - public com.google.container.v1.StatusConditionOrBuilder getClusterConditionsOrBuilder( - int index) { - if (clusterConditionsBuilder_ == null) { - return clusterConditions_.get(index); - } else { - return clusterConditionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - public java.util.List - getClusterConditionsOrBuilderList() { - if (clusterConditionsBuilder_ != null) { - return clusterConditionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(clusterConditions_); - } - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - public com.google.container.v1.StatusCondition.Builder addClusterConditionsBuilder() { - return getClusterConditionsFieldBuilder() - .addBuilder(com.google.container.v1.StatusCondition.getDefaultInstance()); - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - public com.google.container.v1.StatusCondition.Builder addClusterConditionsBuilder(int index) { - return getClusterConditionsFieldBuilder() - .addBuilder(index, com.google.container.v1.StatusCondition.getDefaultInstance()); - } - /** - * - * - *
-     * Which conditions caused the current cluster state.
-     * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - public java.util.List - getClusterConditionsBuilderList() { - return getClusterConditionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder> - getClusterConditionsFieldBuilder() { - if (clusterConditionsBuilder_ == null) { - clusterConditionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder>( - clusterConditions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - clusterConditions_ = null; - } - return clusterConditionsBuilder_; - } - - private java.util.List nodepoolConditions_ = - java.util.Collections.emptyList(); - - private void ensureNodepoolConditionsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - nodepoolConditions_ = - new java.util.ArrayList(nodepoolConditions_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder> - nodepoolConditionsBuilder_; - - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - public java.util.List getNodepoolConditionsList() { - if (nodepoolConditionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodepoolConditions_); - } else { - return nodepoolConditionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - public int getNodepoolConditionsCount() { - if (nodepoolConditionsBuilder_ == null) { - return nodepoolConditions_.size(); - } else { - return nodepoolConditionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - public com.google.container.v1.StatusCondition getNodepoolConditions(int index) { - if (nodepoolConditionsBuilder_ == null) { - return nodepoolConditions_.get(index); - } else { - return nodepoolConditionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - public Builder setNodepoolConditions(int index, com.google.container.v1.StatusCondition value) { - if (nodepoolConditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodepoolConditionsIsMutable(); - nodepoolConditions_.set(index, value); - onChanged(); - } else { - nodepoolConditionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - public Builder setNodepoolConditions( - int index, com.google.container.v1.StatusCondition.Builder builderForValue) { - if (nodepoolConditionsBuilder_ == null) { - ensureNodepoolConditionsIsMutable(); - nodepoolConditions_.set(index, builderForValue.build()); - onChanged(); - } else { - nodepoolConditionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - public Builder addNodepoolConditions(com.google.container.v1.StatusCondition value) { - if (nodepoolConditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodepoolConditionsIsMutable(); - nodepoolConditions_.add(value); - onChanged(); - } else { - nodepoolConditionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - public Builder addNodepoolConditions(int index, com.google.container.v1.StatusCondition value) { - if (nodepoolConditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodepoolConditionsIsMutable(); - nodepoolConditions_.add(index, value); - onChanged(); - } else { - nodepoolConditionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - public Builder addNodepoolConditions( - com.google.container.v1.StatusCondition.Builder builderForValue) { - if (nodepoolConditionsBuilder_ == null) { - ensureNodepoolConditionsIsMutable(); - nodepoolConditions_.add(builderForValue.build()); - onChanged(); - } else { - nodepoolConditionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - public Builder addNodepoolConditions( - int index, com.google.container.v1.StatusCondition.Builder builderForValue) { - if (nodepoolConditionsBuilder_ == null) { - ensureNodepoolConditionsIsMutable(); - nodepoolConditions_.add(index, builderForValue.build()); - onChanged(); - } else { - nodepoolConditionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - public Builder addAllNodepoolConditions( - java.lang.Iterable values) { - if (nodepoolConditionsBuilder_ == null) { - ensureNodepoolConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodepoolConditions_); - onChanged(); - } else { - nodepoolConditionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - public Builder clearNodepoolConditions() { - if (nodepoolConditionsBuilder_ == null) { - nodepoolConditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - nodepoolConditionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - public Builder removeNodepoolConditions(int index) { - if (nodepoolConditionsBuilder_ == null) { - ensureNodepoolConditionsIsMutable(); - nodepoolConditions_.remove(index); - onChanged(); - } else { - nodepoolConditionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - public com.google.container.v1.StatusCondition.Builder getNodepoolConditionsBuilder(int index) { - return getNodepoolConditionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - public com.google.container.v1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder( - int index) { - if (nodepoolConditionsBuilder_ == null) { - return nodepoolConditions_.get(index); - } else { - return nodepoolConditionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - public java.util.List - getNodepoolConditionsOrBuilderList() { - if (nodepoolConditionsBuilder_ != null) { - return nodepoolConditionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodepoolConditions_); - } - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - public com.google.container.v1.StatusCondition.Builder addNodepoolConditionsBuilder() { - return getNodepoolConditionsFieldBuilder() - .addBuilder(com.google.container.v1.StatusCondition.getDefaultInstance()); - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - public com.google.container.v1.StatusCondition.Builder addNodepoolConditionsBuilder(int index) { - return getNodepoolConditionsFieldBuilder() - .addBuilder(index, com.google.container.v1.StatusCondition.getDefaultInstance()); - } - /** - * - * - *
-     * Which conditions caused the current node pool state.
-     * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - public java.util.List - getNodepoolConditionsBuilderList() { - return getNodepoolConditionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder> - getNodepoolConditionsFieldBuilder() { - if (nodepoolConditionsBuilder_ == null) { - nodepoolConditionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.StatusCondition, - com.google.container.v1.StatusCondition.Builder, - com.google.container.v1.StatusConditionOrBuilder>( - nodepoolConditions_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - nodepoolConditions_ = null; - } - return nodepoolConditionsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.Operation) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.Operation) - private static final com.google.container.v1.Operation DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.Operation(); - } - - public static com.google.container.v1.Operation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Operation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Operation(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.container.v1.Operation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java deleted file mode 100644 index 5316cdcd..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java +++ /dev/null @@ -1,463 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface OperationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.Operation) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The server-assigned ID for the operation.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The server-assigned ID for the operation.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * operation is taking place. This field is deprecated, use location instead.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * operation is taking place. This field is deprecated, use location instead.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * The operation type.
-   * 
- * - * .google.container.v1.Operation.Type operation_type = 3; - * - * @return The enum numeric value on the wire for operationType. - */ - int getOperationTypeValue(); - /** - * - * - *
-   * The operation type.
-   * 
- * - * .google.container.v1.Operation.Type operation_type = 3; - * - * @return The operationType. - */ - com.google.container.v1.Operation.Type getOperationType(); - - /** - * - * - *
-   * The current status of the operation.
-   * 
- * - * .google.container.v1.Operation.Status status = 4; - * - * @return The enum numeric value on the wire for status. - */ - int getStatusValue(); - /** - * - * - *
-   * The current status of the operation.
-   * 
- * - * .google.container.v1.Operation.Status status = 4; - * - * @return The status. - */ - com.google.container.v1.Operation.Status getStatus(); - - /** - * - * - *
-   * Detailed operation progress, if available.
-   * 
- * - * string detail = 8; - * - * @return The detail. - */ - java.lang.String getDetail(); - /** - * - * - *
-   * Detailed operation progress, if available.
-   * 
- * - * string detail = 8; - * - * @return The bytes for detail. - */ - com.google.protobuf.ByteString getDetailBytes(); - - /** - * - * - *
-   * Output only. If an error has occurred, a textual description of the error.
-   * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The statusMessage. - */ - java.lang.String getStatusMessage(); - /** - * - * - *
-   * Output only. If an error has occurred, a textual description of the error.
-   * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for statusMessage. - */ - com.google.protobuf.ByteString getStatusMessageBytes(); - - /** - * - * - *
-   * Server-defined URL for the resource.
-   * 
- * - * string self_link = 6; - * - * @return The selfLink. - */ - java.lang.String getSelfLink(); - /** - * - * - *
-   * Server-defined URL for the resource.
-   * 
- * - * string self_link = 6; - * - * @return The bytes for selfLink. - */ - com.google.protobuf.ByteString getSelfLinkBytes(); - - /** - * - * - *
-   * Server-defined URL for the target of the operation.
-   * 
- * - * string target_link = 7; - * - * @return The targetLink. - */ - java.lang.String getTargetLink(); - /** - * - * - *
-   * Server-defined URL for the target of the operation.
-   * 
- * - * string target_link = 7; - * - * @return The bytes for targetLink. - */ - com.google.protobuf.ByteString getTargetLinkBytes(); - - /** - * - * - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * in which the cluster resides.
-   * 
- * - * string location = 9; - * - * @return The location. - */ - java.lang.String getLocation(); - /** - * - * - *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * or
-   * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available)
-   * in which the cluster resides.
-   * 
- * - * string location = 9; - * - * @return The bytes for location. - */ - com.google.protobuf.ByteString getLocationBytes(); - - /** - * - * - *
-   * [Output only] The time the operation started, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string start_time = 10; - * - * @return The startTime. - */ - java.lang.String getStartTime(); - /** - * - * - *
-   * [Output only] The time the operation started, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string start_time = 10; - * - * @return The bytes for startTime. - */ - com.google.protobuf.ByteString getStartTimeBytes(); - - /** - * - * - *
-   * [Output only] The time the operation completed, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string end_time = 11; - * - * @return The endTime. - */ - java.lang.String getEndTime(); - /** - * - * - *
-   * [Output only] The time the operation completed, in
-   * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
-   * 
- * - * string end_time = 11; - * - * @return The bytes for endTime. - */ - com.google.protobuf.ByteString getEndTimeBytes(); - - /** - * - * - *
-   * Output only. [Output only] Progress information for an operation.
-   * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the progress field is set. - */ - boolean hasProgress(); - /** - * - * - *
-   * Output only. [Output only] Progress information for an operation.
-   * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The progress. - */ - com.google.container.v1.OperationProgress getProgress(); - /** - * - * - *
-   * Output only. [Output only] Progress information for an operation.
-   * 
- * - * - * .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.container.v1.OperationProgressOrBuilder getProgressOrBuilder(); - - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - java.util.List getClusterConditionsList(); - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - com.google.container.v1.StatusCondition getClusterConditions(int index); - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - int getClusterConditionsCount(); - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - java.util.List - getClusterConditionsOrBuilderList(); - /** - * - * - *
-   * Which conditions caused the current cluster state.
-   * 
- * - * repeated .google.container.v1.StatusCondition cluster_conditions = 13; - */ - com.google.container.v1.StatusConditionOrBuilder getClusterConditionsOrBuilder(int index); - - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - java.util.List getNodepoolConditionsList(); - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - com.google.container.v1.StatusCondition getNodepoolConditions(int index); - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - int getNodepoolConditionsCount(); - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - java.util.List - getNodepoolConditionsOrBuilderList(); - /** - * - * - *
-   * Which conditions caused the current node pool state.
-   * 
- * - * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; - */ - com.google.container.v1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder(int index); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgress.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgress.java deleted file mode 100644 index 55fce38c..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgress.java +++ /dev/null @@ -1,3101 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Information about operation (or operation stage) progress.
- * 
- * - * Protobuf type {@code google.container.v1.OperationProgress} - */ -public final class OperationProgress extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.OperationProgress) - OperationProgressOrBuilder { - private static final long serialVersionUID = 0L; - // Use OperationProgress.newBuilder() to construct. - private OperationProgress(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private OperationProgress() { - name_ = ""; - status_ = 0; - metrics_ = java.util.Collections.emptyList(); - stages_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new OperationProgress(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private OperationProgress( - 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: - { - int rawValue = input.readEnum(); - - status_ = rawValue; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - metrics_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - metrics_.add( - input.readMessage( - com.google.container.v1.OperationProgress.Metric.parser(), - extensionRegistry)); - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - stages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - stages_.add( - input.readMessage( - com.google.container.v1.OperationProgress.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)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - stages_ = java.util.Collections.unmodifiableList(stages_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_OperationProgress_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_OperationProgress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.OperationProgress.class, - com.google.container.v1.OperationProgress.Builder.class); - } - - public interface MetricOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.OperationProgress.Metric) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Required. Metric name, e.g., "nodes total", "percent done".
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-     * Required. Metric name, e.g., "nodes total", "percent done".
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-     * For metrics with integer value.
-     * 
- * - * int64 int_value = 2; - * - * @return The intValue. - */ - long getIntValue(); - - /** - * - * - *
-     * For metrics with floating point value.
-     * 
- * - * double double_value = 3; - * - * @return The doubleValue. - */ - double getDoubleValue(); - - /** - * - * - *
-     * For metrics with custom values (ratios, visual progress, etc.).
-     * 
- * - * string string_value = 4; - * - * @return The stringValue. - */ - java.lang.String getStringValue(); - /** - * - * - *
-     * For metrics with custom values (ratios, visual progress, etc.).
-     * 
- * - * string string_value = 4; - * - * @return The bytes for stringValue. - */ - com.google.protobuf.ByteString getStringValueBytes(); - - public com.google.container.v1.OperationProgress.Metric.ValueCase getValueCase(); - } - /** - * - * - *
-   * Progress metric is (string, int|float|string) pair.
-   * 
- * - * Protobuf type {@code google.container.v1.OperationProgress.Metric} - */ - public static final class Metric extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.OperationProgress.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() { - name_ = ""; - } - - @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(); - } - com.google.protobuf.UnknownFieldSet.Builder 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: - { - valueCase_ = 2; - value_ = input.readInt64(); - break; - } - case 25: - { - valueCase_ = 3; - value_ = input.readDouble(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - valueCase_ = 4; - value_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_OperationProgress_Metric_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_OperationProgress_Metric_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.OperationProgress.Metric.class, - com.google.container.v1.OperationProgress.Metric.Builder.class); - } - - private int valueCase_ = 0; - private java.lang.Object value_; - - public enum ValueCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - INT_VALUE(2), - DOUBLE_VALUE(3), - STRING_VALUE(4), - VALUE_NOT_SET(0); - private final int value; - - private ValueCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 2: - return INT_VALUE; - case 3: - return DOUBLE_VALUE; - case 4: - return STRING_VALUE; - case 0: - return VALUE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ValueCase getValueCase() { - return ValueCase.forNumber(valueCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-     * Required. Metric name, e.g., "nodes total", "percent done".
-     * 
- * - * 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. Metric name, e.g., "nodes total", "percent done".
-     * 
- * - * 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 INT_VALUE_FIELD_NUMBER = 2; - /** - * - * - *
-     * For metrics with integer value.
-     * 
- * - * int64 int_value = 2; - * - * @return The intValue. - */ - @java.lang.Override - public long getIntValue() { - if (valueCase_ == 2) { - return (java.lang.Long) value_; - } - return 0L; - } - - public static final int DOUBLE_VALUE_FIELD_NUMBER = 3; - /** - * - * - *
-     * For metrics with floating point value.
-     * 
- * - * double double_value = 3; - * - * @return The doubleValue. - */ - @java.lang.Override - public double getDoubleValue() { - if (valueCase_ == 3) { - return (java.lang.Double) value_; - } - return 0D; - } - - public static final int STRING_VALUE_FIELD_NUMBER = 4; - /** - * - * - *
-     * For metrics with custom values (ratios, visual progress, etc.).
-     * 
- * - * string string_value = 4; - * - * @return The stringValue. - */ - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (valueCase_ == 4) { - ref = value_; - } - if (ref instanceof java.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 (valueCase_ == 4) { - value_ = s; - } - return s; - } - } - /** - * - * - *
-     * For metrics with custom values (ratios, visual progress, etc.).
-     * 
- * - * string string_value = 4; - * - * @return The bytes for stringValue. - */ - public com.google.protobuf.ByteString getStringValueBytes() { - java.lang.Object ref = ""; - if (valueCase_ == 4) { - ref = value_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (valueCase_ == 4) { - value_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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 (valueCase_ == 2) { - output.writeInt64(2, (long) ((java.lang.Long) value_)); - } - if (valueCase_ == 3) { - output.writeDouble(3, (double) ((java.lang.Double) value_)); - } - if (valueCase_ == 4) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, value_); - } - 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 (valueCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeInt64Size( - 2, (long) ((java.lang.Long) value_)); - } - if (valueCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 3, (double) ((java.lang.Double) value_)); - } - if (valueCase_ == 4) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, value_); - } - 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.container.v1.OperationProgress.Metric)) { - return super.equals(obj); - } - com.google.container.v1.OperationProgress.Metric other = - (com.google.container.v1.OperationProgress.Metric) obj; - - if (!getName().equals(other.getName())) return false; - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 2: - if (getIntValue() != other.getIntValue()) return false; - break; - case 3: - if (java.lang.Double.doubleToLongBits(getDoubleValue()) - != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; - break; - case 4: - if (!getStringValue().equals(other.getStringValue())) 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(); - switch (valueCase_) { - case 2: - hash = (37 * hash) + INT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIntValue()); - break; - case 3: - hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDoubleValue())); - break; - case 4: - hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getStringValue().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.OperationProgress.Metric parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.OperationProgress.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.container.v1.OperationProgress.Metric parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.OperationProgress.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.container.v1.OperationProgress.Metric parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.OperationProgress.Metric parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.OperationProgress.Metric parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.OperationProgress.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.container.v1.OperationProgress.Metric parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.OperationProgress.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.container.v1.OperationProgress.Metric parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.OperationProgress.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.container.v1.OperationProgress.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; - } - /** - * - * - *
-     * Progress metric is (string, int|float|string) pair.
-     * 
- * - * Protobuf type {@code google.container.v1.OperationProgress.Metric} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.OperationProgress.Metric) - com.google.container.v1.OperationProgress.MetricOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_OperationProgress_Metric_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_OperationProgress_Metric_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.OperationProgress.Metric.class, - com.google.container.v1.OperationProgress.Metric.Builder.class); - } - - // Construct using com.google.container.v1.OperationProgress.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(); - name_ = ""; - - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_OperationProgress_Metric_descriptor; - } - - @java.lang.Override - public com.google.container.v1.OperationProgress.Metric getDefaultInstanceForType() { - return com.google.container.v1.OperationProgress.Metric.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.OperationProgress.Metric build() { - com.google.container.v1.OperationProgress.Metric result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.OperationProgress.Metric buildPartial() { - com.google.container.v1.OperationProgress.Metric result = - new com.google.container.v1.OperationProgress.Metric(this); - result.name_ = name_; - if (valueCase_ == 2) { - result.value_ = value_; - } - if (valueCase_ == 3) { - result.value_ = value_; - } - if (valueCase_ == 4) { - result.value_ = value_; - } - result.valueCase_ = valueCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.OperationProgress.Metric) { - return mergeFrom((com.google.container.v1.OperationProgress.Metric) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.OperationProgress.Metric other) { - if (other == com.google.container.v1.OperationProgress.Metric.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - switch (other.getValueCase()) { - case INT_VALUE: - { - setIntValue(other.getIntValue()); - break; - } - case DOUBLE_VALUE: - { - setDoubleValue(other.getDoubleValue()); - break; - } - case STRING_VALUE: - { - valueCase_ = 4; - value_ = other.value_; - onChanged(); - break; - } - case VALUE_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.container.v1.OperationProgress.Metric parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.container.v1.OperationProgress.Metric) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int valueCase_ = 0; - private java.lang.Object value_; - - public ValueCase getValueCase() { - return ValueCase.forNumber(valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-       * Required. Metric name, e.g., "nodes total", "percent done".
-       * 
- * - * 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. Metric name, e.g., "nodes total", "percent done".
-       * 
- * - * 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. Metric name, e.g., "nodes total", "percent done".
-       * 
- * - * 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. Metric name, e.g., "nodes total", "percent done".
-       * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-       * Required. Metric name, e.g., "nodes total", "percent done".
-       * 
- * - * 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; - } - - /** - * - * - *
-       * For metrics with integer value.
-       * 
- * - * int64 int_value = 2; - * - * @return The intValue. - */ - public long getIntValue() { - if (valueCase_ == 2) { - return (java.lang.Long) value_; - } - return 0L; - } - /** - * - * - *
-       * For metrics with integer value.
-       * 
- * - * int64 int_value = 2; - * - * @param value The intValue to set. - * @return This builder for chaining. - */ - public Builder setIntValue(long value) { - valueCase_ = 2; - value_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * For metrics with integer value.
-       * 
- * - * int64 int_value = 2; - * - * @return This builder for chaining. - */ - public Builder clearIntValue() { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-       * For metrics with floating point value.
-       * 
- * - * double double_value = 3; - * - * @return The doubleValue. - */ - public double getDoubleValue() { - if (valueCase_ == 3) { - return (java.lang.Double) value_; - } - return 0D; - } - /** - * - * - *
-       * For metrics with floating point value.
-       * 
- * - * double double_value = 3; - * - * @param value The doubleValue to set. - * @return This builder for chaining. - */ - public Builder setDoubleValue(double value) { - valueCase_ = 3; - value_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * For metrics with floating point value.
-       * 
- * - * double double_value = 3; - * - * @return This builder for chaining. - */ - public Builder clearDoubleValue() { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-       * For metrics with custom values (ratios, visual progress, etc.).
-       * 
- * - * string string_value = 4; - * - * @return The stringValue. - */ - @java.lang.Override - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (valueCase_ == 4) { - ref = value_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valueCase_ == 4) { - value_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * For metrics with custom values (ratios, visual progress, etc.).
-       * 
- * - * string string_value = 4; - * - * @return The bytes for stringValue. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStringValueBytes() { - java.lang.Object ref = ""; - if (valueCase_ == 4) { - ref = value_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (valueCase_ == 4) { - value_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * For metrics with custom values (ratios, visual progress, etc.).
-       * 
- * - * string string_value = 4; - * - * @param value The stringValue to set. - * @return This builder for chaining. - */ - public Builder setStringValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - valueCase_ = 4; - value_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * For metrics with custom values (ratios, visual progress, etc.).
-       * 
- * - * string string_value = 4; - * - * @return This builder for chaining. - */ - public Builder clearStringValue() { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-       * For metrics with custom values (ratios, visual progress, etc.).
-       * 
- * - * string string_value = 4; - * - * @param value The bytes for stringValue to set. - * @return This builder for chaining. - */ - public Builder setStringValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - valueCase_ = 4; - value_ = 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.container.v1.OperationProgress.Metric) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.OperationProgress.Metric) - private static final com.google.container.v1.OperationProgress.Metric DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.OperationProgress.Metric(); - } - - public static com.google.container.v1.OperationProgress.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.container.v1.OperationProgress.Metric getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * A non-parameterized string describing an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * 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; - } - } - /** - * - * - *
-   * A non-parameterized string describing an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * 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 STATUS_FIELD_NUMBER = 2; - private int status_; - /** - * - * - *
-   * Status of an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * .google.container.v1.Operation.Status status = 2; - * - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override - public int getStatusValue() { - return status_; - } - /** - * - * - *
-   * Status of an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * .google.container.v1.Operation.Status status = 2; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1.Operation.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1.Operation.Status result = - com.google.container.v1.Operation.Status.valueOf(status_); - return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result; - } - - public static final int METRICS_FIELD_NUMBER = 3; - private java.util.List metrics_; - /** - * - * - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - @java.lang.Override - public java.util.List getMetricsList() { - return metrics_; - } - /** - * - * - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - @java.lang.Override - public java.util.List - getMetricsOrBuilderList() { - return metrics_; - } - /** - * - * - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - @java.lang.Override - public int getMetricsCount() { - return metrics_.size(); - } - /** - * - * - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - @java.lang.Override - public com.google.container.v1.OperationProgress.Metric getMetrics(int index) { - return metrics_.get(index); - } - /** - * - * - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - @java.lang.Override - public com.google.container.v1.OperationProgress.MetricOrBuilder getMetricsOrBuilder(int index) { - return metrics_.get(index); - } - - public static final int STAGES_FIELD_NUMBER = 4; - private java.util.List stages_; - /** - * - * - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - @java.lang.Override - public java.util.List getStagesList() { - return stages_; - } - /** - * - * - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - @java.lang.Override - public java.util.List - getStagesOrBuilderList() { - return stages_; - } - /** - * - * - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - @java.lang.Override - public int getStagesCount() { - return stages_.size(); - } - /** - * - * - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - @java.lang.Override - public com.google.container.v1.OperationProgress getStages(int index) { - return stages_.get(index); - } - /** - * - * - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - @java.lang.Override - public com.google.container.v1.OperationProgressOrBuilder getStagesOrBuilder(int index) { - return stages_.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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (status_ != com.google.container.v1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { - output.writeEnum(2, status_); - } - for (int i = 0; i < metrics_.size(); i++) { - output.writeMessage(3, metrics_.get(i)); - } - for (int i = 0; i < stages_.size(); i++) { - output.writeMessage(4, stages_.get(i)); - } - 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 (status_ != com.google.container.v1.Operation.Status.STATUS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, status_); - } - for (int i = 0; i < metrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metrics_.get(i)); - } - for (int i = 0; i < stages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, stages_.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.container.v1.OperationProgress)) { - return super.equals(obj); - } - com.google.container.v1.OperationProgress other = - (com.google.container.v1.OperationProgress) obj; - - if (!getName().equals(other.getName())) return false; - if (status_ != other.status_) return false; - if (!getMetricsList().equals(other.getMetricsList())) return false; - if (!getStagesList().equals(other.getStagesList())) 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) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; - if (getMetricsCount() > 0) { - hash = (37 * hash) + METRICS_FIELD_NUMBER; - hash = (53 * hash) + getMetricsList().hashCode(); - } - if (getStagesCount() > 0) { - hash = (37 * hash) + STAGES_FIELD_NUMBER; - hash = (53 * hash) + getStagesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.OperationProgress parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.OperationProgress parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.OperationProgress parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.OperationProgress parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.OperationProgress parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.OperationProgress parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.OperationProgress parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.OperationProgress parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.OperationProgress parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.OperationProgress parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.OperationProgress parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.OperationProgress parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.OperationProgress prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Information about operation (or operation stage) progress.
-   * 
- * - * Protobuf type {@code google.container.v1.OperationProgress} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.OperationProgress) - com.google.container.v1.OperationProgressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_OperationProgress_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_OperationProgress_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.OperationProgress.class, - com.google.container.v1.OperationProgress.Builder.class); - } - - // Construct using com.google.container.v1.OperationProgress.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(); - getStagesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - status_ = 0; - - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - metricsBuilder_.clear(); - } - if (stagesBuilder_ == null) { - stages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - stagesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_OperationProgress_descriptor; - } - - @java.lang.Override - public com.google.container.v1.OperationProgress getDefaultInstanceForType() { - return com.google.container.v1.OperationProgress.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.OperationProgress build() { - com.google.container.v1.OperationProgress result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.OperationProgress buildPartial() { - com.google.container.v1.OperationProgress result = - new com.google.container.v1.OperationProgress(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.status_ = status_; - if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.build(); - } - if (stagesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - stages_ = java.util.Collections.unmodifiableList(stages_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.stages_ = stages_; - } else { - result.stages_ = stagesBuilder_.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.container.v1.OperationProgress) { - return mergeFrom((com.google.container.v1.OperationProgress) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.OperationProgress other) { - if (other == com.google.container.v1.OperationProgress.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - 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_); - } - } - } - if (stagesBuilder_ == null) { - if (!other.stages_.isEmpty()) { - if (stages_.isEmpty()) { - stages_ = other.stages_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureStagesIsMutable(); - stages_.addAll(other.stages_); - } - onChanged(); - } - } else { - if (!other.stages_.isEmpty()) { - if (stagesBuilder_.isEmpty()) { - stagesBuilder_.dispose(); - stagesBuilder_ = null; - stages_ = other.stages_; - bitField0_ = (bitField0_ & ~0x00000002); - stagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStagesFieldBuilder() - : null; - } else { - stagesBuilder_.addAllMessages(other.stages_); - } - } - } - 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.container.v1.OperationProgress parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.OperationProgress) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * A non-parameterized string describing an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * A non-parameterized string describing an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * 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; - } - } - /** - * - * - *
-     * A non-parameterized string describing an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * 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; - } - /** - * - * - *
-     * A non-parameterized string describing an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * A non-parameterized string describing an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * 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 int status_ = 0; - /** - * - * - *
-     * Status of an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * .google.container.v1.Operation.Status status = 2; - * - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override - public int getStatusValue() { - return status_; - } - /** - * - * - *
-     * Status of an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * .google.container.v1.Operation.Status status = 2; - * - * @param value The enum numeric value on the wire for status to set. - * @return This builder for chaining. - */ - public Builder setStatusValue(int value) { - - status_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Status of an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * .google.container.v1.Operation.Status status = 2; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1.Operation.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1.Operation.Status result = - com.google.container.v1.Operation.Status.valueOf(status_); - return result == null ? com.google.container.v1.Operation.Status.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Status of an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * .google.container.v1.Operation.Status status = 2; - * - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(com.google.container.v1.Operation.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Status of an operation stage.
-     * Unset for single-stage operations.
-     * 
- * - * .google.container.v1.Operation.Status status = 2; - * - * @return This builder for chaining. - */ - public Builder clearStatus() { - - status_ = 0; - onChanged(); - return this; - } - - 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.container.v1.OperationProgress.Metric, - com.google.container.v1.OperationProgress.Metric.Builder, - com.google.container.v1.OperationProgress.MetricOrBuilder> - metricsBuilder_; - - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public java.util.List getMetricsList() { - if (metricsBuilder_ == null) { - return java.util.Collections.unmodifiableList(metrics_); - } else { - return metricsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public int getMetricsCount() { - if (metricsBuilder_ == null) { - return metrics_.size(); - } else { - return metricsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1.OperationProgress.Metric getMetrics(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder setMetrics(int index, com.google.container.v1.OperationProgress.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.set(index, value); - onChanged(); - } else { - metricsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder setMetrics( - int index, com.google.container.v1.OperationProgress.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.set(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder addMetrics(com.google.container.v1.OperationProgress.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(value); - onChanged(); - } else { - metricsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder addMetrics(int index, com.google.container.v1.OperationProgress.Metric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(index, value); - onChanged(); - } else { - metricsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder addMetrics( - com.google.container.v1.OperationProgress.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder addMetrics( - int index, com.google.container.v1.OperationProgress.Metric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - 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; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - metricsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public Builder removeMetrics(int index) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.remove(index); - onChanged(); - } else { - metricsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1.OperationProgress.Metric.Builder getMetricsBuilder(int index) { - return getMetricsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1.OperationProgress.MetricOrBuilder getMetricsOrBuilder( - int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public java.util.List - getMetricsOrBuilderList() { - if (metricsBuilder_ != null) { - return metricsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metrics_); - } - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1.OperationProgress.Metric.Builder addMetricsBuilder() { - return getMetricsFieldBuilder() - .addBuilder(com.google.container.v1.OperationProgress.Metric.getDefaultInstance()); - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public com.google.container.v1.OperationProgress.Metric.Builder addMetricsBuilder(int index) { - return getMetricsFieldBuilder() - .addBuilder(index, com.google.container.v1.OperationProgress.Metric.getDefaultInstance()); - } - /** - * - * - *
-     * Progress metric bundle, for example:
-     *   metrics: [{name: "nodes done",     int_value: 15},
-     *             {name: "nodes total",    int_value: 32}]
-     * or
-     *   metrics: [{name: "progress",       double_value: 0.56},
-     *             {name: "progress scale", double_value: 1.0}]
-     * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - public java.util.List - getMetricsBuilderList() { - return getMetricsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.OperationProgress.Metric, - com.google.container.v1.OperationProgress.Metric.Builder, - com.google.container.v1.OperationProgress.MetricOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.OperationProgress.Metric, - com.google.container.v1.OperationProgress.Metric.Builder, - com.google.container.v1.OperationProgress.MetricOrBuilder>( - metrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - metrics_ = null; - } - return metricsBuilder_; - } - - private java.util.List stages_ = - java.util.Collections.emptyList(); - - private void ensureStagesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - stages_ = new java.util.ArrayList(stages_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.OperationProgress, - com.google.container.v1.OperationProgress.Builder, - com.google.container.v1.OperationProgressOrBuilder> - stagesBuilder_; - - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public java.util.List getStagesList() { - if (stagesBuilder_ == null) { - return java.util.Collections.unmodifiableList(stages_); - } else { - return stagesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public int getStagesCount() { - if (stagesBuilder_ == null) { - return stages_.size(); - } else { - return stagesBuilder_.getCount(); - } - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public com.google.container.v1.OperationProgress getStages(int index) { - if (stagesBuilder_ == null) { - return stages_.get(index); - } else { - return stagesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder setStages(int index, com.google.container.v1.OperationProgress value) { - if (stagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStagesIsMutable(); - stages_.set(index, value); - onChanged(); - } else { - stagesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder setStages( - int index, com.google.container.v1.OperationProgress.Builder builderForValue) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.set(index, builderForValue.build()); - onChanged(); - } else { - stagesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder addStages(com.google.container.v1.OperationProgress value) { - if (stagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStagesIsMutable(); - stages_.add(value); - onChanged(); - } else { - stagesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder addStages(int index, com.google.container.v1.OperationProgress value) { - if (stagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStagesIsMutable(); - stages_.add(index, value); - onChanged(); - } else { - stagesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder addStages(com.google.container.v1.OperationProgress.Builder builderForValue) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.add(builderForValue.build()); - onChanged(); - } else { - stagesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder addStages( - int index, com.google.container.v1.OperationProgress.Builder builderForValue) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.add(index, builderForValue.build()); - onChanged(); - } else { - stagesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder addAllStages( - java.lang.Iterable values) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stages_); - onChanged(); - } else { - stagesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder clearStages() { - if (stagesBuilder_ == null) { - stages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - stagesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public Builder removeStages(int index) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.remove(index); - onChanged(); - } else { - stagesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public com.google.container.v1.OperationProgress.Builder getStagesBuilder(int index) { - return getStagesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public com.google.container.v1.OperationProgressOrBuilder getStagesOrBuilder(int index) { - if (stagesBuilder_ == null) { - return stages_.get(index); - } else { - return stagesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public java.util.List - getStagesOrBuilderList() { - if (stagesBuilder_ != null) { - return stagesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(stages_); - } - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public com.google.container.v1.OperationProgress.Builder addStagesBuilder() { - return getStagesFieldBuilder() - .addBuilder(com.google.container.v1.OperationProgress.getDefaultInstance()); - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public com.google.container.v1.OperationProgress.Builder addStagesBuilder(int index) { - return getStagesFieldBuilder() - .addBuilder(index, com.google.container.v1.OperationProgress.getDefaultInstance()); - } - /** - * - * - *
-     * Substages of an operation or a stage.
-     * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - public java.util.List - getStagesBuilderList() { - return getStagesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.OperationProgress, - com.google.container.v1.OperationProgress.Builder, - com.google.container.v1.OperationProgressOrBuilder> - getStagesFieldBuilder() { - if (stagesBuilder_ == null) { - stagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.OperationProgress, - com.google.container.v1.OperationProgress.Builder, - com.google.container.v1.OperationProgressOrBuilder>( - stages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - stages_ = null; - } - return stagesBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.OperationProgress) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.OperationProgress) - private static final com.google.container.v1.OperationProgress DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.OperationProgress(); - } - - public static com.google.container.v1.OperationProgress getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationProgress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationProgress(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.container.v1.OperationProgress getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgressOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgressOrBuilder.java deleted file mode 100644 index 5f11ca8c..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgressOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface OperationProgressOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.OperationProgress) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A non-parameterized string describing an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * A non-parameterized string describing an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Status of an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * .google.container.v1.Operation.Status status = 2; - * - * @return The enum numeric value on the wire for status. - */ - int getStatusValue(); - /** - * - * - *
-   * Status of an operation stage.
-   * Unset for single-stage operations.
-   * 
- * - * .google.container.v1.Operation.Status status = 2; - * - * @return The status. - */ - com.google.container.v1.Operation.Status getStatus(); - - /** - * - * - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - java.util.List getMetricsList(); - /** - * - * - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - com.google.container.v1.OperationProgress.Metric getMetrics(int index); - /** - * - * - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - int getMetricsCount(); - /** - * - * - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - java.util.List - getMetricsOrBuilderList(); - /** - * - * - *
-   * Progress metric bundle, for example:
-   *   metrics: [{name: "nodes done",     int_value: 15},
-   *             {name: "nodes total",    int_value: 32}]
-   * or
-   *   metrics: [{name: "progress",       double_value: 0.56},
-   *             {name: "progress scale", double_value: 1.0}]
-   * 
- * - * repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - com.google.container.v1.OperationProgress.MetricOrBuilder getMetricsOrBuilder(int index); - - /** - * - * - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - java.util.List getStagesList(); - /** - * - * - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - com.google.container.v1.OperationProgress getStages(int index); - /** - * - * - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - int getStagesCount(); - /** - * - * - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - java.util.List - getStagesOrBuilderList(); - /** - * - * - *
-   * Substages of an operation or a stage.
-   * 
- * - * repeated .google.container.v1.OperationProgress stages = 4; - */ - com.google.container.v1.OperationProgressOrBuilder getStagesOrBuilder(int index); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java deleted file mode 100644 index 94f0a10c..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java +++ /dev/null @@ -1,1695 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Configuration options for private clusters.
- * 
- * - * Protobuf type {@code google.container.v1.PrivateClusterConfig} - */ -public final class PrivateClusterConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.PrivateClusterConfig) - PrivateClusterConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrivateClusterConfig.newBuilder() to construct. - private PrivateClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PrivateClusterConfig() { - masterIpv4CidrBlock_ = ""; - privateEndpoint_ = ""; - publicEndpoint_ = ""; - peeringName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PrivateClusterConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PrivateClusterConfig( - 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: - { - enablePrivateNodes_ = input.readBool(); - break; - } - case 16: - { - enablePrivateEndpoint_ = input.readBool(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - masterIpv4CidrBlock_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - privateEndpoint_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - publicEndpoint_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - - peeringName_ = s; - break; - } - case 66: - { - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder subBuilder = - null; - if (masterGlobalAccessConfig_ != null) { - subBuilder = masterGlobalAccessConfig_.toBuilder(); - } - masterGlobalAccessConfig_ = - input.readMessage( - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(masterGlobalAccessConfig_); - masterGlobalAccessConfig_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PrivateClusterConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PrivateClusterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.PrivateClusterConfig.class, - com.google.container.v1.PrivateClusterConfig.Builder.class); - } - - public static final int ENABLE_PRIVATE_NODES_FIELD_NUMBER = 1; - private boolean enablePrivateNodes_; - /** - * - * - *
-   * Whether nodes have internal IP addresses only. If enabled, all nodes are
-   * given only RFC 1918 private addresses and communicate with the master via
-   * private networking.
-   * 
- * - * bool enable_private_nodes = 1; - * - * @return The enablePrivateNodes. - */ - @java.lang.Override - public boolean getEnablePrivateNodes() { - return enablePrivateNodes_; - } - - public static final int ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 2; - private boolean enablePrivateEndpoint_; - /** - * - * - *
-   * Whether the master's internal IP address is used as the cluster endpoint.
-   * 
- * - * bool enable_private_endpoint = 2; - * - * @return The enablePrivateEndpoint. - */ - @java.lang.Override - public boolean getEnablePrivateEndpoint() { - return enablePrivateEndpoint_; - } - - public static final int MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER = 3; - private volatile java.lang.Object masterIpv4CidrBlock_; - /** - * - * - *
-   * The IP range in CIDR notation to use for the hosted master network. This
-   * range will be used for assigning internal IP addresses to the master or
-   * set of masters, as well as the ILB VIP. This range must not overlap with
-   * any other ranges in use within the cluster's network.
-   * 
- * - * string master_ipv4_cidr_block = 3; - * - * @return The masterIpv4CidrBlock. - */ - @java.lang.Override - public java.lang.String getMasterIpv4CidrBlock() { - java.lang.Object ref = masterIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - masterIpv4CidrBlock_ = s; - return s; - } - } - /** - * - * - *
-   * The IP range in CIDR notation to use for the hosted master network. This
-   * range will be used for assigning internal IP addresses to the master or
-   * set of masters, as well as the ILB VIP. This range must not overlap with
-   * any other ranges in use within the cluster's network.
-   * 
- * - * string master_ipv4_cidr_block = 3; - * - * @return The bytes for masterIpv4CidrBlock. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { - java.lang.Object ref = masterIpv4CidrBlock_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - masterIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PRIVATE_ENDPOINT_FIELD_NUMBER = 4; - private volatile java.lang.Object privateEndpoint_; - /** - * - * - *
-   * Output only. The internal IP address of this cluster's master endpoint.
-   * 
- * - * string private_endpoint = 4; - * - * @return The privateEndpoint. - */ - @java.lang.Override - public java.lang.String getPrivateEndpoint() { - java.lang.Object ref = privateEndpoint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privateEndpoint_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The internal IP address of this cluster's master endpoint.
-   * 
- * - * string private_endpoint = 4; - * - * @return The bytes for privateEndpoint. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPrivateEndpointBytes() { - java.lang.Object ref = privateEndpoint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - privateEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PUBLIC_ENDPOINT_FIELD_NUMBER = 5; - private volatile java.lang.Object publicEndpoint_; - /** - * - * - *
-   * Output only. The external IP address of this cluster's master endpoint.
-   * 
- * - * string public_endpoint = 5; - * - * @return The publicEndpoint. - */ - @java.lang.Override - public java.lang.String getPublicEndpoint() { - java.lang.Object ref = publicEndpoint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - publicEndpoint_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The external IP address of this cluster's master endpoint.
-   * 
- * - * string public_endpoint = 5; - * - * @return The bytes for publicEndpoint. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPublicEndpointBytes() { - java.lang.Object ref = publicEndpoint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - publicEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PEERING_NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object peeringName_; - /** - * - * - *
-   * Output only. The peering name in the customer VPC used by this cluster.
-   * 
- * - * string peering_name = 7; - * - * @return The peeringName. - */ - @java.lang.Override - public java.lang.String getPeeringName() { - java.lang.Object ref = peeringName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - peeringName_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The peering name in the customer VPC used by this cluster.
-   * 
- * - * string peering_name = 7; - * - * @return The bytes for peeringName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPeeringNameBytes() { - java.lang.Object ref = peeringName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - peeringName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MASTER_GLOBAL_ACCESS_CONFIG_FIELD_NUMBER = 8; - private com.google.container.v1.PrivateClusterMasterGlobalAccessConfig masterGlobalAccessConfig_; - /** - * - * - *
-   * Controls master global access settings.
-   * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - * - * @return Whether the masterGlobalAccessConfig field is set. - */ - @java.lang.Override - public boolean hasMasterGlobalAccessConfig() { - return masterGlobalAccessConfig_ != null; - } - /** - * - * - *
-   * Controls master global access settings.
-   * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - * - * @return The masterGlobalAccessConfig. - */ - @java.lang.Override - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig - getMasterGlobalAccessConfig() { - return masterGlobalAccessConfig_ == null - ? com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() - : masterGlobalAccessConfig_; - } - /** - * - * - *
-   * Controls master global access settings.
-   * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - */ - @java.lang.Override - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder - getMasterGlobalAccessConfigOrBuilder() { - return getMasterGlobalAccessConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enablePrivateNodes_ != false) { - output.writeBool(1, enablePrivateNodes_); - } - if (enablePrivateEndpoint_ != false) { - output.writeBool(2, enablePrivateEndpoint_); - } - if (!getMasterIpv4CidrBlockBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, masterIpv4CidrBlock_); - } - if (!getPrivateEndpointBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, privateEndpoint_); - } - if (!getPublicEndpointBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, publicEndpoint_); - } - if (!getPeeringNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, peeringName_); - } - if (masterGlobalAccessConfig_ != null) { - output.writeMessage(8, getMasterGlobalAccessConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enablePrivateNodes_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enablePrivateNodes_); - } - if (enablePrivateEndpoint_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enablePrivateEndpoint_); - } - if (!getMasterIpv4CidrBlockBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, masterIpv4CidrBlock_); - } - if (!getPrivateEndpointBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, privateEndpoint_); - } - if (!getPublicEndpointBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, publicEndpoint_); - } - if (!getPeeringNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, peeringName_); - } - if (masterGlobalAccessConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getMasterGlobalAccessConfig()); - } - 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.container.v1.PrivateClusterConfig)) { - return super.equals(obj); - } - com.google.container.v1.PrivateClusterConfig other = - (com.google.container.v1.PrivateClusterConfig) obj; - - if (getEnablePrivateNodes() != other.getEnablePrivateNodes()) return false; - if (getEnablePrivateEndpoint() != other.getEnablePrivateEndpoint()) return false; - if (!getMasterIpv4CidrBlock().equals(other.getMasterIpv4CidrBlock())) return false; - if (!getPrivateEndpoint().equals(other.getPrivateEndpoint())) return false; - if (!getPublicEndpoint().equals(other.getPublicEndpoint())) return false; - if (!getPeeringName().equals(other.getPeeringName())) return false; - if (hasMasterGlobalAccessConfig() != other.hasMasterGlobalAccessConfig()) return false; - if (hasMasterGlobalAccessConfig()) { - if (!getMasterGlobalAccessConfig().equals(other.getMasterGlobalAccessConfig())) 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_PRIVATE_NODES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateNodes()); - hash = (37 * hash) + ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateEndpoint()); - hash = (37 * hash) + MASTER_IPV4_CIDR_BLOCK_FIELD_NUMBER; - hash = (53 * hash) + getMasterIpv4CidrBlock().hashCode(); - hash = (37 * hash) + PRIVATE_ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + getPrivateEndpoint().hashCode(); - hash = (37 * hash) + PUBLIC_ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + getPublicEndpoint().hashCode(); - hash = (37 * hash) + PEERING_NAME_FIELD_NUMBER; - hash = (53 * hash) + getPeeringName().hashCode(); - if (hasMasterGlobalAccessConfig()) { - hash = (37 * hash) + MASTER_GLOBAL_ACCESS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getMasterGlobalAccessConfig().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.PrivateClusterConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.PrivateClusterConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.PrivateClusterConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.PrivateClusterConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.PrivateClusterConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.PrivateClusterConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.PrivateClusterConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.PrivateClusterConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.PrivateClusterConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.PrivateClusterConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.PrivateClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.PrivateClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.PrivateClusterConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 options for private clusters.
-   * 
- * - * Protobuf type {@code google.container.v1.PrivateClusterConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.PrivateClusterConfig) - com.google.container.v1.PrivateClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PrivateClusterConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PrivateClusterConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.PrivateClusterConfig.class, - com.google.container.v1.PrivateClusterConfig.Builder.class); - } - - // Construct using com.google.container.v1.PrivateClusterConfig.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(); - enablePrivateNodes_ = false; - - enablePrivateEndpoint_ = false; - - masterIpv4CidrBlock_ = ""; - - privateEndpoint_ = ""; - - publicEndpoint_ = ""; - - peeringName_ = ""; - - if (masterGlobalAccessConfigBuilder_ == null) { - masterGlobalAccessConfig_ = null; - } else { - masterGlobalAccessConfig_ = null; - masterGlobalAccessConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PrivateClusterConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.PrivateClusterConfig getDefaultInstanceForType() { - return com.google.container.v1.PrivateClusterConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.PrivateClusterConfig build() { - com.google.container.v1.PrivateClusterConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.PrivateClusterConfig buildPartial() { - com.google.container.v1.PrivateClusterConfig result = - new com.google.container.v1.PrivateClusterConfig(this); - result.enablePrivateNodes_ = enablePrivateNodes_; - result.enablePrivateEndpoint_ = enablePrivateEndpoint_; - result.masterIpv4CidrBlock_ = masterIpv4CidrBlock_; - result.privateEndpoint_ = privateEndpoint_; - result.publicEndpoint_ = publicEndpoint_; - result.peeringName_ = peeringName_; - if (masterGlobalAccessConfigBuilder_ == null) { - result.masterGlobalAccessConfig_ = masterGlobalAccessConfig_; - } else { - result.masterGlobalAccessConfig_ = masterGlobalAccessConfigBuilder_.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.container.v1.PrivateClusterConfig) { - return mergeFrom((com.google.container.v1.PrivateClusterConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.PrivateClusterConfig other) { - if (other == com.google.container.v1.PrivateClusterConfig.getDefaultInstance()) return this; - if (other.getEnablePrivateNodes() != false) { - setEnablePrivateNodes(other.getEnablePrivateNodes()); - } - if (other.getEnablePrivateEndpoint() != false) { - setEnablePrivateEndpoint(other.getEnablePrivateEndpoint()); - } - if (!other.getMasterIpv4CidrBlock().isEmpty()) { - masterIpv4CidrBlock_ = other.masterIpv4CidrBlock_; - onChanged(); - } - if (!other.getPrivateEndpoint().isEmpty()) { - privateEndpoint_ = other.privateEndpoint_; - onChanged(); - } - if (!other.getPublicEndpoint().isEmpty()) { - publicEndpoint_ = other.publicEndpoint_; - onChanged(); - } - if (!other.getPeeringName().isEmpty()) { - peeringName_ = other.peeringName_; - onChanged(); - } - if (other.hasMasterGlobalAccessConfig()) { - mergeMasterGlobalAccessConfig(other.getMasterGlobalAccessConfig()); - } - 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.container.v1.PrivateClusterConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.PrivateClusterConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean enablePrivateNodes_; - /** - * - * - *
-     * Whether nodes have internal IP addresses only. If enabled, all nodes are
-     * given only RFC 1918 private addresses and communicate with the master via
-     * private networking.
-     * 
- * - * bool enable_private_nodes = 1; - * - * @return The enablePrivateNodes. - */ - @java.lang.Override - public boolean getEnablePrivateNodes() { - return enablePrivateNodes_; - } - /** - * - * - *
-     * Whether nodes have internal IP addresses only. If enabled, all nodes are
-     * given only RFC 1918 private addresses and communicate with the master via
-     * private networking.
-     * 
- * - * bool enable_private_nodes = 1; - * - * @param value The enablePrivateNodes to set. - * @return This builder for chaining. - */ - public Builder setEnablePrivateNodes(boolean value) { - - enablePrivateNodes_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether nodes have internal IP addresses only. If enabled, all nodes are
-     * given only RFC 1918 private addresses and communicate with the master via
-     * private networking.
-     * 
- * - * bool enable_private_nodes = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnablePrivateNodes() { - - enablePrivateNodes_ = false; - onChanged(); - return this; - } - - private boolean enablePrivateEndpoint_; - /** - * - * - *
-     * Whether the master's internal IP address is used as the cluster endpoint.
-     * 
- * - * bool enable_private_endpoint = 2; - * - * @return The enablePrivateEndpoint. - */ - @java.lang.Override - public boolean getEnablePrivateEndpoint() { - return enablePrivateEndpoint_; - } - /** - * - * - *
-     * Whether the master's internal IP address is used as the cluster endpoint.
-     * 
- * - * bool enable_private_endpoint = 2; - * - * @param value The enablePrivateEndpoint to set. - * @return This builder for chaining. - */ - public Builder setEnablePrivateEndpoint(boolean value) { - - enablePrivateEndpoint_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the master's internal IP address is used as the cluster endpoint.
-     * 
- * - * bool enable_private_endpoint = 2; - * - * @return This builder for chaining. - */ - public Builder clearEnablePrivateEndpoint() { - - enablePrivateEndpoint_ = false; - onChanged(); - return this; - } - - private java.lang.Object masterIpv4CidrBlock_ = ""; - /** - * - * - *
-     * The IP range in CIDR notation to use for the hosted master network. This
-     * range will be used for assigning internal IP addresses to the master or
-     * set of masters, as well as the ILB VIP. This range must not overlap with
-     * any other ranges in use within the cluster's network.
-     * 
- * - * string master_ipv4_cidr_block = 3; - * - * @return The masterIpv4CidrBlock. - */ - public java.lang.String getMasterIpv4CidrBlock() { - java.lang.Object ref = masterIpv4CidrBlock_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - masterIpv4CidrBlock_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The IP range in CIDR notation to use for the hosted master network. This
-     * range will be used for assigning internal IP addresses to the master or
-     * set of masters, as well as the ILB VIP. This range must not overlap with
-     * any other ranges in use within the cluster's network.
-     * 
- * - * string master_ipv4_cidr_block = 3; - * - * @return The bytes for masterIpv4CidrBlock. - */ - public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { - java.lang.Object ref = masterIpv4CidrBlock_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - masterIpv4CidrBlock_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The IP range in CIDR notation to use for the hosted master network. This
-     * range will be used for assigning internal IP addresses to the master or
-     * set of masters, as well as the ILB VIP. This range must not overlap with
-     * any other ranges in use within the cluster's network.
-     * 
- * - * string master_ipv4_cidr_block = 3; - * - * @param value The masterIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setMasterIpv4CidrBlock(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - masterIpv4CidrBlock_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The IP range in CIDR notation to use for the hosted master network. This
-     * range will be used for assigning internal IP addresses to the master or
-     * set of masters, as well as the ILB VIP. This range must not overlap with
-     * any other ranges in use within the cluster's network.
-     * 
- * - * string master_ipv4_cidr_block = 3; - * - * @return This builder for chaining. - */ - public Builder clearMasterIpv4CidrBlock() { - - masterIpv4CidrBlock_ = getDefaultInstance().getMasterIpv4CidrBlock(); - onChanged(); - return this; - } - /** - * - * - *
-     * The IP range in CIDR notation to use for the hosted master network. This
-     * range will be used for assigning internal IP addresses to the master or
-     * set of masters, as well as the ILB VIP. This range must not overlap with
-     * any other ranges in use within the cluster's network.
-     * 
- * - * string master_ipv4_cidr_block = 3; - * - * @param value The bytes for masterIpv4CidrBlock to set. - * @return This builder for chaining. - */ - public Builder setMasterIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - masterIpv4CidrBlock_ = value; - onChanged(); - return this; - } - - private java.lang.Object privateEndpoint_ = ""; - /** - * - * - *
-     * Output only. The internal IP address of this cluster's master endpoint.
-     * 
- * - * string private_endpoint = 4; - * - * @return The privateEndpoint. - */ - public java.lang.String getPrivateEndpoint() { - java.lang.Object ref = privateEndpoint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - privateEndpoint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The internal IP address of this cluster's master endpoint.
-     * 
- * - * string private_endpoint = 4; - * - * @return The bytes for privateEndpoint. - */ - public com.google.protobuf.ByteString getPrivateEndpointBytes() { - java.lang.Object ref = privateEndpoint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - privateEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The internal IP address of this cluster's master endpoint.
-     * 
- * - * string private_endpoint = 4; - * - * @param value The privateEndpoint to set. - * @return This builder for chaining. - */ - public Builder setPrivateEndpoint(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - privateEndpoint_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The internal IP address of this cluster's master endpoint.
-     * 
- * - * string private_endpoint = 4; - * - * @return This builder for chaining. - */ - public Builder clearPrivateEndpoint() { - - privateEndpoint_ = getDefaultInstance().getPrivateEndpoint(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The internal IP address of this cluster's master endpoint.
-     * 
- * - * string private_endpoint = 4; - * - * @param value The bytes for privateEndpoint to set. - * @return This builder for chaining. - */ - public Builder setPrivateEndpointBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - privateEndpoint_ = value; - onChanged(); - return this; - } - - private java.lang.Object publicEndpoint_ = ""; - /** - * - * - *
-     * Output only. The external IP address of this cluster's master endpoint.
-     * 
- * - * string public_endpoint = 5; - * - * @return The publicEndpoint. - */ - public java.lang.String getPublicEndpoint() { - java.lang.Object ref = publicEndpoint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - publicEndpoint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The external IP address of this cluster's master endpoint.
-     * 
- * - * string public_endpoint = 5; - * - * @return The bytes for publicEndpoint. - */ - public com.google.protobuf.ByteString getPublicEndpointBytes() { - java.lang.Object ref = publicEndpoint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - publicEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The external IP address of this cluster's master endpoint.
-     * 
- * - * string public_endpoint = 5; - * - * @param value The publicEndpoint to set. - * @return This builder for chaining. - */ - public Builder setPublicEndpoint(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - publicEndpoint_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The external IP address of this cluster's master endpoint.
-     * 
- * - * string public_endpoint = 5; - * - * @return This builder for chaining. - */ - public Builder clearPublicEndpoint() { - - publicEndpoint_ = getDefaultInstance().getPublicEndpoint(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The external IP address of this cluster's master endpoint.
-     * 
- * - * string public_endpoint = 5; - * - * @param value The bytes for publicEndpoint to set. - * @return This builder for chaining. - */ - public Builder setPublicEndpointBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - publicEndpoint_ = value; - onChanged(); - return this; - } - - private java.lang.Object peeringName_ = ""; - /** - * - * - *
-     * Output only. The peering name in the customer VPC used by this cluster.
-     * 
- * - * string peering_name = 7; - * - * @return The peeringName. - */ - public java.lang.String getPeeringName() { - java.lang.Object ref = peeringName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - peeringName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The peering name in the customer VPC used by this cluster.
-     * 
- * - * string peering_name = 7; - * - * @return The bytes for peeringName. - */ - public com.google.protobuf.ByteString getPeeringNameBytes() { - java.lang.Object ref = peeringName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - peeringName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The peering name in the customer VPC used by this cluster.
-     * 
- * - * string peering_name = 7; - * - * @param value The peeringName to set. - * @return This builder for chaining. - */ - public Builder setPeeringName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - peeringName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The peering name in the customer VPC used by this cluster.
-     * 
- * - * string peering_name = 7; - * - * @return This builder for chaining. - */ - public Builder clearPeeringName() { - - peeringName_ = getDefaultInstance().getPeeringName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The peering name in the customer VPC used by this cluster.
-     * 
- * - * string peering_name = 7; - * - * @param value The bytes for peeringName to set. - * @return This builder for chaining. - */ - public Builder setPeeringNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - peeringName_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.PrivateClusterMasterGlobalAccessConfig - masterGlobalAccessConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig, - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder, - com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder> - masterGlobalAccessConfigBuilder_; - /** - * - * - *
-     * Controls master global access settings.
-     * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - * - * @return Whether the masterGlobalAccessConfig field is set. - */ - public boolean hasMasterGlobalAccessConfig() { - return masterGlobalAccessConfigBuilder_ != null || masterGlobalAccessConfig_ != null; - } - /** - * - * - *
-     * Controls master global access settings.
-     * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - * - * @return The masterGlobalAccessConfig. - */ - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig - getMasterGlobalAccessConfig() { - if (masterGlobalAccessConfigBuilder_ == null) { - return masterGlobalAccessConfig_ == null - ? com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() - : masterGlobalAccessConfig_; - } else { - return masterGlobalAccessConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Controls master global access settings.
-     * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - */ - public Builder setMasterGlobalAccessConfig( - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig value) { - if (masterGlobalAccessConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - masterGlobalAccessConfig_ = value; - onChanged(); - } else { - masterGlobalAccessConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Controls master global access settings.
-     * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - */ - public Builder setMasterGlobalAccessConfig( - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder builderForValue) { - if (masterGlobalAccessConfigBuilder_ == null) { - masterGlobalAccessConfig_ = builderForValue.build(); - onChanged(); - } else { - masterGlobalAccessConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Controls master global access settings.
-     * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - */ - public Builder mergeMasterGlobalAccessConfig( - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig value) { - if (masterGlobalAccessConfigBuilder_ == null) { - if (masterGlobalAccessConfig_ != null) { - masterGlobalAccessConfig_ = - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.newBuilder( - masterGlobalAccessConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - masterGlobalAccessConfig_ = value; - } - onChanged(); - } else { - masterGlobalAccessConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Controls master global access settings.
-     * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - */ - public Builder clearMasterGlobalAccessConfig() { - if (masterGlobalAccessConfigBuilder_ == null) { - masterGlobalAccessConfig_ = null; - onChanged(); - } else { - masterGlobalAccessConfig_ = null; - masterGlobalAccessConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Controls master global access settings.
-     * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - */ - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder - getMasterGlobalAccessConfigBuilder() { - - onChanged(); - return getMasterGlobalAccessConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Controls master global access settings.
-     * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - */ - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder - getMasterGlobalAccessConfigOrBuilder() { - if (masterGlobalAccessConfigBuilder_ != null) { - return masterGlobalAccessConfigBuilder_.getMessageOrBuilder(); - } else { - return masterGlobalAccessConfig_ == null - ? com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance() - : masterGlobalAccessConfig_; - } - } - /** - * - * - *
-     * Controls master global access settings.
-     * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig, - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder, - com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder> - getMasterGlobalAccessConfigFieldBuilder() { - if (masterGlobalAccessConfigBuilder_ == null) { - masterGlobalAccessConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig, - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder, - com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder>( - getMasterGlobalAccessConfig(), getParentForChildren(), isClean()); - masterGlobalAccessConfig_ = null; - } - return masterGlobalAccessConfigBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.PrivateClusterConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.PrivateClusterConfig) - private static final com.google.container.v1.PrivateClusterConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.PrivateClusterConfig(); - } - - public static com.google.container.v1.PrivateClusterConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivateClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrivateClusterConfig(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.container.v1.PrivateClusterConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java deleted file mode 100644 index 61470067..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface PrivateClusterConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.PrivateClusterConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether nodes have internal IP addresses only. If enabled, all nodes are
-   * given only RFC 1918 private addresses and communicate with the master via
-   * private networking.
-   * 
- * - * bool enable_private_nodes = 1; - * - * @return The enablePrivateNodes. - */ - boolean getEnablePrivateNodes(); - - /** - * - * - *
-   * Whether the master's internal IP address is used as the cluster endpoint.
-   * 
- * - * bool enable_private_endpoint = 2; - * - * @return The enablePrivateEndpoint. - */ - boolean getEnablePrivateEndpoint(); - - /** - * - * - *
-   * The IP range in CIDR notation to use for the hosted master network. This
-   * range will be used for assigning internal IP addresses to the master or
-   * set of masters, as well as the ILB VIP. This range must not overlap with
-   * any other ranges in use within the cluster's network.
-   * 
- * - * string master_ipv4_cidr_block = 3; - * - * @return The masterIpv4CidrBlock. - */ - java.lang.String getMasterIpv4CidrBlock(); - /** - * - * - *
-   * The IP range in CIDR notation to use for the hosted master network. This
-   * range will be used for assigning internal IP addresses to the master or
-   * set of masters, as well as the ILB VIP. This range must not overlap with
-   * any other ranges in use within the cluster's network.
-   * 
- * - * string master_ipv4_cidr_block = 3; - * - * @return The bytes for masterIpv4CidrBlock. - */ - com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes(); - - /** - * - * - *
-   * Output only. The internal IP address of this cluster's master endpoint.
-   * 
- * - * string private_endpoint = 4; - * - * @return The privateEndpoint. - */ - java.lang.String getPrivateEndpoint(); - /** - * - * - *
-   * Output only. The internal IP address of this cluster's master endpoint.
-   * 
- * - * string private_endpoint = 4; - * - * @return The bytes for privateEndpoint. - */ - com.google.protobuf.ByteString getPrivateEndpointBytes(); - - /** - * - * - *
-   * Output only. The external IP address of this cluster's master endpoint.
-   * 
- * - * string public_endpoint = 5; - * - * @return The publicEndpoint. - */ - java.lang.String getPublicEndpoint(); - /** - * - * - *
-   * Output only. The external IP address of this cluster's master endpoint.
-   * 
- * - * string public_endpoint = 5; - * - * @return The bytes for publicEndpoint. - */ - com.google.protobuf.ByteString getPublicEndpointBytes(); - - /** - * - * - *
-   * Output only. The peering name in the customer VPC used by this cluster.
-   * 
- * - * string peering_name = 7; - * - * @return The peeringName. - */ - java.lang.String getPeeringName(); - /** - * - * - *
-   * Output only. The peering name in the customer VPC used by this cluster.
-   * 
- * - * string peering_name = 7; - * - * @return The bytes for peeringName. - */ - com.google.protobuf.ByteString getPeeringNameBytes(); - - /** - * - * - *
-   * Controls master global access settings.
-   * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - * - * @return Whether the masterGlobalAccessConfig field is set. - */ - boolean hasMasterGlobalAccessConfig(); - /** - * - * - *
-   * Controls master global access settings.
-   * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - * - * @return The masterGlobalAccessConfig. - */ - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig getMasterGlobalAccessConfig(); - /** - * - * - *
-   * Controls master global access settings.
-   * 
- * - * - * .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; - * - */ - com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder - getMasterGlobalAccessConfigOrBuilder(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfig.java deleted file mode 100644 index 8a98e852..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfig.java +++ /dev/null @@ -1,555 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Configuration for controlling master global access settings.
- * 
- * - * Protobuf type {@code google.container.v1.PrivateClusterMasterGlobalAccessConfig} - */ -public final class PrivateClusterMasterGlobalAccessConfig - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.PrivateClusterMasterGlobalAccessConfig) - PrivateClusterMasterGlobalAccessConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrivateClusterMasterGlobalAccessConfig.newBuilder() to construct. - private PrivateClusterMasterGlobalAccessConfig( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PrivateClusterMasterGlobalAccessConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PrivateClusterMasterGlobalAccessConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private PrivateClusterMasterGlobalAccessConfig( - 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: - { - enabled_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.class, - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - * - * - *
-   * Whenever master is accessible globally or not.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); - } - 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.container.v1.PrivateClusterMasterGlobalAccessConfig)) { - return super.equals(obj); - } - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig other = - (com.google.container.v1.PrivateClusterMasterGlobalAccessConfig) obj; - - if (getEnabled() != other.getEnabled()) 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) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 controlling master global access settings.
-   * 
- * - * Protobuf type {@code google.container.v1.PrivateClusterMasterGlobalAccessConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.PrivateClusterMasterGlobalAccessConfig) - com.google.container.v1.PrivateClusterMasterGlobalAccessConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.class, - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.Builder.class); - } - - // Construct using com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_PrivateClusterMasterGlobalAccessConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig - getDefaultInstanceForType() { - return com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig build() { - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.PrivateClusterMasterGlobalAccessConfig buildPartial() { - com.google.container.v1.PrivateClusterMasterGlobalAccessConfig result = - new com.google.container.v1.PrivateClusterMasterGlobalAccessConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.PrivateClusterMasterGlobalAccessConfig) { - return mergeFrom((com.google.container.v1.PrivateClusterMasterGlobalAccessConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.PrivateClusterMasterGlobalAccessConfig other) { - if (other - == com.google.container.v1.PrivateClusterMasterGlobalAccessConfig.getDefaultInstance()) - return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - 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.container.v1.PrivateClusterMasterGlobalAccessConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.container.v1.PrivateClusterMasterGlobalAccessConfig) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean enabled_; - /** - * - * - *
-     * Whenever master is accessible globally or not.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whenever master is accessible globally or not.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whenever master is accessible globally or not.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = 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.container.v1.PrivateClusterMasterGlobalAccessConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.PrivateClusterMasterGlobalAccessConfig) - private static final com.google.container.v1.PrivateClusterMasterGlobalAccessConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.PrivateClusterMasterGlobalAccessConfig(); - } - - public static com.google.container.v1.PrivateClusterMasterGlobalAccessConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivateClusterMasterGlobalAccessConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrivateClusterMasterGlobalAccessConfig(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.container.v1.PrivateClusterMasterGlobalAccessConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java deleted file mode 100644 index 59fcbb68..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfigOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface PrivateClusterMasterGlobalAccessConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.PrivateClusterMasterGlobalAccessConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whenever master is accessible globally or not.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindow.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindow.java deleted file mode 100644 index 7a96ac58..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindow.java +++ /dev/null @@ -1,1079 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Represents an arbitrary window of time that recurs.
- * 
- * - * Protobuf type {@code google.container.v1.RecurringTimeWindow} - */ -public final class RecurringTimeWindow extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.RecurringTimeWindow) - RecurringTimeWindowOrBuilder { - private static final long serialVersionUID = 0L; - // Use RecurringTimeWindow.newBuilder() to construct. - private RecurringTimeWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RecurringTimeWindow() { - recurrence_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RecurringTimeWindow(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private RecurringTimeWindow( - 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.container.v1.TimeWindow.Builder subBuilder = null; - if (window_ != null) { - subBuilder = window_.toBuilder(); - } - window_ = - input.readMessage(com.google.container.v1.TimeWindow.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(window_); - window_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - recurrence_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RecurringTimeWindow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RecurringTimeWindow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.RecurringTimeWindow.class, - com.google.container.v1.RecurringTimeWindow.Builder.class); - } - - public static final int WINDOW_FIELD_NUMBER = 1; - private com.google.container.v1.TimeWindow window_; - /** - * - * - *
-   * The window of the first recurrence.
-   * 
- * - * .google.container.v1.TimeWindow window = 1; - * - * @return Whether the window field is set. - */ - @java.lang.Override - public boolean hasWindow() { - return window_ != null; - } - /** - * - * - *
-   * The window of the first recurrence.
-   * 
- * - * .google.container.v1.TimeWindow window = 1; - * - * @return The window. - */ - @java.lang.Override - public com.google.container.v1.TimeWindow getWindow() { - return window_ == null ? com.google.container.v1.TimeWindow.getDefaultInstance() : window_; - } - /** - * - * - *
-   * The window of the first recurrence.
-   * 
- * - * .google.container.v1.TimeWindow window = 1; - */ - @java.lang.Override - public com.google.container.v1.TimeWindowOrBuilder getWindowOrBuilder() { - return getWindow(); - } - - public static final int RECURRENCE_FIELD_NUMBER = 2; - private volatile java.lang.Object recurrence_; - /** - * - * - *
-   * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-   * this window reccurs. They go on for the span of time between the start and
-   * end time.
-   * For example, to have something repeat every weekday, you'd use:
-   * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-   * `FREQ=DAILY`
-   * For the first weekend of every month:
-   * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-   * This specifies how frequently the window starts. Eg, if you wanted to have
-   * a 9-5 UTC-4 window every weekday, you'd use something like:
-   * ```
-   * start time = 2019-01-01T09:00:00-0400
-   * end time = 2019-01-01T17:00:00-0400
-   * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-   * ```
-   * Windows can span multiple days. Eg, to make the window encompass every
-   * weekend from midnight Saturday till the last minute of Sunday UTC:
-   * ```
-   * start time = 2019-01-05T00:00:00Z
-   * end time = 2019-01-07T23:59:00Z
-   * recurrence = FREQ=WEEKLY;BYDAY=SA
-   * ```
-   * Note the start and end time's specific dates are largely arbitrary except
-   * to specify duration of the window and when it first starts.
-   * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-   * 
- * - * string recurrence = 2; - * - * @return The recurrence. - */ - @java.lang.Override - public java.lang.String getRecurrence() { - java.lang.Object ref = recurrence_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - recurrence_ = s; - return s; - } - } - /** - * - * - *
-   * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-   * this window reccurs. They go on for the span of time between the start and
-   * end time.
-   * For example, to have something repeat every weekday, you'd use:
-   * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-   * `FREQ=DAILY`
-   * For the first weekend of every month:
-   * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-   * This specifies how frequently the window starts. Eg, if you wanted to have
-   * a 9-5 UTC-4 window every weekday, you'd use something like:
-   * ```
-   * start time = 2019-01-01T09:00:00-0400
-   * end time = 2019-01-01T17:00:00-0400
-   * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-   * ```
-   * Windows can span multiple days. Eg, to make the window encompass every
-   * weekend from midnight Saturday till the last minute of Sunday UTC:
-   * ```
-   * start time = 2019-01-05T00:00:00Z
-   * end time = 2019-01-07T23:59:00Z
-   * recurrence = FREQ=WEEKLY;BYDAY=SA
-   * ```
-   * Note the start and end time's specific dates are largely arbitrary except
-   * to specify duration of the window and when it first starts.
-   * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-   * 
- * - * string recurrence = 2; - * - * @return The bytes for recurrence. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRecurrenceBytes() { - java.lang.Object ref = recurrence_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - recurrence_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (window_ != null) { - output.writeMessage(1, getWindow()); - } - if (!getRecurrenceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, recurrence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (window_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWindow()); - } - if (!getRecurrenceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, recurrence_); - } - 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.container.v1.RecurringTimeWindow)) { - return super.equals(obj); - } - com.google.container.v1.RecurringTimeWindow other = - (com.google.container.v1.RecurringTimeWindow) obj; - - if (hasWindow() != other.hasWindow()) return false; - if (hasWindow()) { - if (!getWindow().equals(other.getWindow())) return false; - } - if (!getRecurrence().equals(other.getRecurrence())) 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 (hasWindow()) { - hash = (37 * hash) + WINDOW_FIELD_NUMBER; - hash = (53 * hash) + getWindow().hashCode(); - } - hash = (37 * hash) + RECURRENCE_FIELD_NUMBER; - hash = (53 * hash) + getRecurrence().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.RecurringTimeWindow parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.RecurringTimeWindow parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.RecurringTimeWindow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.RecurringTimeWindow parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.RecurringTimeWindow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.RecurringTimeWindow parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.RecurringTimeWindow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.RecurringTimeWindow parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.RecurringTimeWindow parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.RecurringTimeWindow parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.RecurringTimeWindow parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.RecurringTimeWindow parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.RecurringTimeWindow prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Represents an arbitrary window of time that recurs.
-   * 
- * - * Protobuf type {@code google.container.v1.RecurringTimeWindow} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.RecurringTimeWindow) - com.google.container.v1.RecurringTimeWindowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RecurringTimeWindow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RecurringTimeWindow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.RecurringTimeWindow.class, - com.google.container.v1.RecurringTimeWindow.Builder.class); - } - - // Construct using com.google.container.v1.RecurringTimeWindow.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 (windowBuilder_ == null) { - window_ = null; - } else { - window_ = null; - windowBuilder_ = null; - } - recurrence_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RecurringTimeWindow_descriptor; - } - - @java.lang.Override - public com.google.container.v1.RecurringTimeWindow getDefaultInstanceForType() { - return com.google.container.v1.RecurringTimeWindow.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.RecurringTimeWindow build() { - com.google.container.v1.RecurringTimeWindow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.RecurringTimeWindow buildPartial() { - com.google.container.v1.RecurringTimeWindow result = - new com.google.container.v1.RecurringTimeWindow(this); - if (windowBuilder_ == null) { - result.window_ = window_; - } else { - result.window_ = windowBuilder_.build(); - } - result.recurrence_ = recurrence_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.RecurringTimeWindow) { - return mergeFrom((com.google.container.v1.RecurringTimeWindow) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.RecurringTimeWindow other) { - if (other == com.google.container.v1.RecurringTimeWindow.getDefaultInstance()) return this; - if (other.hasWindow()) { - mergeWindow(other.getWindow()); - } - if (!other.getRecurrence().isEmpty()) { - recurrence_ = other.recurrence_; - 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.container.v1.RecurringTimeWindow parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.RecurringTimeWindow) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.container.v1.TimeWindow window_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.TimeWindow, - com.google.container.v1.TimeWindow.Builder, - com.google.container.v1.TimeWindowOrBuilder> - windowBuilder_; - /** - * - * - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1.TimeWindow window = 1; - * - * @return Whether the window field is set. - */ - public boolean hasWindow() { - return windowBuilder_ != null || window_ != null; - } - /** - * - * - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1.TimeWindow window = 1; - * - * @return The window. - */ - public com.google.container.v1.TimeWindow getWindow() { - if (windowBuilder_ == null) { - return window_ == null ? com.google.container.v1.TimeWindow.getDefaultInstance() : window_; - } else { - return windowBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1.TimeWindow window = 1; - */ - public Builder setWindow(com.google.container.v1.TimeWindow value) { - if (windowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - window_ = value; - onChanged(); - } else { - windowBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1.TimeWindow window = 1; - */ - public Builder setWindow(com.google.container.v1.TimeWindow.Builder builderForValue) { - if (windowBuilder_ == null) { - window_ = builderForValue.build(); - onChanged(); - } else { - windowBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1.TimeWindow window = 1; - */ - public Builder mergeWindow(com.google.container.v1.TimeWindow value) { - if (windowBuilder_ == null) { - if (window_ != null) { - window_ = - com.google.container.v1.TimeWindow.newBuilder(window_) - .mergeFrom(value) - .buildPartial(); - } else { - window_ = value; - } - onChanged(); - } else { - windowBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1.TimeWindow window = 1; - */ - public Builder clearWindow() { - if (windowBuilder_ == null) { - window_ = null; - onChanged(); - } else { - window_ = null; - windowBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1.TimeWindow window = 1; - */ - public com.google.container.v1.TimeWindow.Builder getWindowBuilder() { - - onChanged(); - return getWindowFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1.TimeWindow window = 1; - */ - public com.google.container.v1.TimeWindowOrBuilder getWindowOrBuilder() { - if (windowBuilder_ != null) { - return windowBuilder_.getMessageOrBuilder(); - } else { - return window_ == null ? com.google.container.v1.TimeWindow.getDefaultInstance() : window_; - } - } - /** - * - * - *
-     * The window of the first recurrence.
-     * 
- * - * .google.container.v1.TimeWindow window = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.TimeWindow, - com.google.container.v1.TimeWindow.Builder, - com.google.container.v1.TimeWindowOrBuilder> - getWindowFieldBuilder() { - if (windowBuilder_ == null) { - windowBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.TimeWindow, - com.google.container.v1.TimeWindow.Builder, - com.google.container.v1.TimeWindowOrBuilder>( - getWindow(), getParentForChildren(), isClean()); - window_ = null; - } - return windowBuilder_; - } - - private java.lang.Object recurrence_ = ""; - /** - * - * - *
-     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-     * this window reccurs. They go on for the span of time between the start and
-     * end time.
-     * For example, to have something repeat every weekday, you'd use:
-     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-     * `FREQ=DAILY`
-     * For the first weekend of every month:
-     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-     * This specifies how frequently the window starts. Eg, if you wanted to have
-     * a 9-5 UTC-4 window every weekday, you'd use something like:
-     * ```
-     * start time = 2019-01-01T09:00:00-0400
-     * end time = 2019-01-01T17:00:00-0400
-     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-     * ```
-     * Windows can span multiple days. Eg, to make the window encompass every
-     * weekend from midnight Saturday till the last minute of Sunday UTC:
-     * ```
-     * start time = 2019-01-05T00:00:00Z
-     * end time = 2019-01-07T23:59:00Z
-     * recurrence = FREQ=WEEKLY;BYDAY=SA
-     * ```
-     * Note the start and end time's specific dates are largely arbitrary except
-     * to specify duration of the window and when it first starts.
-     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-     * 
- * - * string recurrence = 2; - * - * @return The recurrence. - */ - public java.lang.String getRecurrence() { - java.lang.Object ref = recurrence_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - recurrence_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-     * this window reccurs. They go on for the span of time between the start and
-     * end time.
-     * For example, to have something repeat every weekday, you'd use:
-     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-     * `FREQ=DAILY`
-     * For the first weekend of every month:
-     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-     * This specifies how frequently the window starts. Eg, if you wanted to have
-     * a 9-5 UTC-4 window every weekday, you'd use something like:
-     * ```
-     * start time = 2019-01-01T09:00:00-0400
-     * end time = 2019-01-01T17:00:00-0400
-     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-     * ```
-     * Windows can span multiple days. Eg, to make the window encompass every
-     * weekend from midnight Saturday till the last minute of Sunday UTC:
-     * ```
-     * start time = 2019-01-05T00:00:00Z
-     * end time = 2019-01-07T23:59:00Z
-     * recurrence = FREQ=WEEKLY;BYDAY=SA
-     * ```
-     * Note the start and end time's specific dates are largely arbitrary except
-     * to specify duration of the window and when it first starts.
-     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-     * 
- * - * string recurrence = 2; - * - * @return The bytes for recurrence. - */ - public com.google.protobuf.ByteString getRecurrenceBytes() { - java.lang.Object ref = recurrence_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - recurrence_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-     * this window reccurs. They go on for the span of time between the start and
-     * end time.
-     * For example, to have something repeat every weekday, you'd use:
-     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-     * `FREQ=DAILY`
-     * For the first weekend of every month:
-     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-     * This specifies how frequently the window starts. Eg, if you wanted to have
-     * a 9-5 UTC-4 window every weekday, you'd use something like:
-     * ```
-     * start time = 2019-01-01T09:00:00-0400
-     * end time = 2019-01-01T17:00:00-0400
-     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-     * ```
-     * Windows can span multiple days. Eg, to make the window encompass every
-     * weekend from midnight Saturday till the last minute of Sunday UTC:
-     * ```
-     * start time = 2019-01-05T00:00:00Z
-     * end time = 2019-01-07T23:59:00Z
-     * recurrence = FREQ=WEEKLY;BYDAY=SA
-     * ```
-     * Note the start and end time's specific dates are largely arbitrary except
-     * to specify duration of the window and when it first starts.
-     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-     * 
- * - * string recurrence = 2; - * - * @param value The recurrence to set. - * @return This builder for chaining. - */ - public Builder setRecurrence(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - recurrence_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-     * this window reccurs. They go on for the span of time between the start and
-     * end time.
-     * For example, to have something repeat every weekday, you'd use:
-     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-     * `FREQ=DAILY`
-     * For the first weekend of every month:
-     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-     * This specifies how frequently the window starts. Eg, if you wanted to have
-     * a 9-5 UTC-4 window every weekday, you'd use something like:
-     * ```
-     * start time = 2019-01-01T09:00:00-0400
-     * end time = 2019-01-01T17:00:00-0400
-     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-     * ```
-     * Windows can span multiple days. Eg, to make the window encompass every
-     * weekend from midnight Saturday till the last minute of Sunday UTC:
-     * ```
-     * start time = 2019-01-05T00:00:00Z
-     * end time = 2019-01-07T23:59:00Z
-     * recurrence = FREQ=WEEKLY;BYDAY=SA
-     * ```
-     * Note the start and end time's specific dates are largely arbitrary except
-     * to specify duration of the window and when it first starts.
-     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-     * 
- * - * string recurrence = 2; - * - * @return This builder for chaining. - */ - public Builder clearRecurrence() { - - recurrence_ = getDefaultInstance().getRecurrence(); - onChanged(); - return this; - } - /** - * - * - *
-     * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-     * this window reccurs. They go on for the span of time between the start and
-     * end time.
-     * For example, to have something repeat every weekday, you'd use:
-     * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-     * `FREQ=DAILY`
-     * For the first weekend of every month:
-     * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-     * This specifies how frequently the window starts. Eg, if you wanted to have
-     * a 9-5 UTC-4 window every weekday, you'd use something like:
-     * ```
-     * start time = 2019-01-01T09:00:00-0400
-     * end time = 2019-01-01T17:00:00-0400
-     * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-     * ```
-     * Windows can span multiple days. Eg, to make the window encompass every
-     * weekend from midnight Saturday till the last minute of Sunday UTC:
-     * ```
-     * start time = 2019-01-05T00:00:00Z
-     * end time = 2019-01-07T23:59:00Z
-     * recurrence = FREQ=WEEKLY;BYDAY=SA
-     * ```
-     * Note the start and end time's specific dates are largely arbitrary except
-     * to specify duration of the window and when it first starts.
-     * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-     * 
- * - * string recurrence = 2; - * - * @param value The bytes for recurrence to set. - * @return This builder for chaining. - */ - public Builder setRecurrenceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - recurrence_ = 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.container.v1.RecurringTimeWindow) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.RecurringTimeWindow) - private static final com.google.container.v1.RecurringTimeWindow DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.RecurringTimeWindow(); - } - - public static com.google.container.v1.RecurringTimeWindow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecurringTimeWindow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecurringTimeWindow(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.container.v1.RecurringTimeWindow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindowOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindowOrBuilder.java deleted file mode 100644 index c17f3e73..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindowOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface RecurringTimeWindowOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.RecurringTimeWindow) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The window of the first recurrence.
-   * 
- * - * .google.container.v1.TimeWindow window = 1; - * - * @return Whether the window field is set. - */ - boolean hasWindow(); - /** - * - * - *
-   * The window of the first recurrence.
-   * 
- * - * .google.container.v1.TimeWindow window = 1; - * - * @return The window. - */ - com.google.container.v1.TimeWindow getWindow(); - /** - * - * - *
-   * The window of the first recurrence.
-   * 
- * - * .google.container.v1.TimeWindow window = 1; - */ - com.google.container.v1.TimeWindowOrBuilder getWindowOrBuilder(); - - /** - * - * - *
-   * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-   * this window reccurs. They go on for the span of time between the start and
-   * end time.
-   * For example, to have something repeat every weekday, you'd use:
-   * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-   * `FREQ=DAILY`
-   * For the first weekend of every month:
-   * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-   * This specifies how frequently the window starts. Eg, if you wanted to have
-   * a 9-5 UTC-4 window every weekday, you'd use something like:
-   * ```
-   * start time = 2019-01-01T09:00:00-0400
-   * end time = 2019-01-01T17:00:00-0400
-   * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-   * ```
-   * Windows can span multiple days. Eg, to make the window encompass every
-   * weekend from midnight Saturday till the last minute of Sunday UTC:
-   * ```
-   * start time = 2019-01-05T00:00:00Z
-   * end time = 2019-01-07T23:59:00Z
-   * recurrence = FREQ=WEEKLY;BYDAY=SA
-   * ```
-   * Note the start and end time's specific dates are largely arbitrary except
-   * to specify duration of the window and when it first starts.
-   * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-   * 
- * - * string recurrence = 2; - * - * @return The recurrence. - */ - java.lang.String getRecurrence(); - /** - * - * - *
-   * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how
-   * this window reccurs. They go on for the span of time between the start and
-   * end time.
-   * For example, to have something repeat every weekday, you'd use:
-   * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
-   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
-   * `FREQ=DAILY`
-   * For the first weekend of every month:
-   * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
-   * This specifies how frequently the window starts. Eg, if you wanted to have
-   * a 9-5 UTC-4 window every weekday, you'd use something like:
-   * ```
-   * start time = 2019-01-01T09:00:00-0400
-   * end time = 2019-01-01T17:00:00-0400
-   * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
-   * ```
-   * Windows can span multiple days. Eg, to make the window encompass every
-   * weekend from midnight Saturday till the last minute of Sunday UTC:
-   * ```
-   * start time = 2019-01-05T00:00:00Z
-   * end time = 2019-01-07T23:59:00Z
-   * recurrence = FREQ=WEEKLY;BYDAY=SA
-   * ```
-   * Note the start and end time's specific dates are largely arbitrary except
-   * to specify duration of the window and when it first starts.
-   * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
-   * 
- * - * string recurrence = 2; - * - * @return The bytes for recurrence. - */ - com.google.protobuf.ByteString getRecurrenceBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannel.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannel.java deleted file mode 100644 index a5f1daf7..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannel.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * ReleaseChannel indicates which release channel a cluster is
- * subscribed to. Release channels are arranged in order of risk.
- * When a cluster is subscribed to a release channel, Google maintains
- * both the master version and the node version. Node auto-upgrade
- * defaults to true and cannot be disabled.
- * 
- * - * Protobuf type {@code google.container.v1.ReleaseChannel} - */ -public final class ReleaseChannel extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ReleaseChannel) - ReleaseChannelOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReleaseChannel.newBuilder() to construct. - private ReleaseChannel(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ReleaseChannel() { - channel_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ReleaseChannel(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ReleaseChannel( - 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(); - - channel_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ReleaseChannel_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ReleaseChannel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ReleaseChannel.class, - com.google.container.v1.ReleaseChannel.Builder.class); - } - - /** - * - * - *
-   * Possible values for 'channel'.
-   * 
- * - * Protobuf enum {@code google.container.v1.ReleaseChannel.Channel} - */ - public enum Channel implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * No channel specified.
-     * 
- * - * UNSPECIFIED = 0; - */ - UNSPECIFIED(0), - /** - * - * - *
-     * RAPID channel is offered on an early access basis for customers who want
-     * to test new releases.
-     * WARNING: Versions available in the RAPID Channel may be subject to
-     * unresolved issues with no known workaround and are not subject to any
-     * SLAs.
-     * 
- * - * RAPID = 1; - */ - RAPID(1), - /** - * - * - *
-     * Clusters subscribed to REGULAR receive versions that are considered GA
-     * quality. REGULAR is intended for production users who want to take
-     * advantage of new features.
-     * 
- * - * REGULAR = 2; - */ - REGULAR(2), - /** - * - * - *
-     * Clusters subscribed to STABLE receive versions that are known to be
-     * stable and reliable in production.
-     * 
- * - * STABLE = 3; - */ - STABLE(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * No channel specified.
-     * 
- * - * UNSPECIFIED = 0; - */ - public static final int UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * RAPID channel is offered on an early access basis for customers who want
-     * to test new releases.
-     * WARNING: Versions available in the RAPID Channel may be subject to
-     * unresolved issues with no known workaround and are not subject to any
-     * SLAs.
-     * 
- * - * RAPID = 1; - */ - public static final int RAPID_VALUE = 1; - /** - * - * - *
-     * Clusters subscribed to REGULAR receive versions that are considered GA
-     * quality. REGULAR is intended for production users who want to take
-     * advantage of new features.
-     * 
- * - * REGULAR = 2; - */ - public static final int REGULAR_VALUE = 2; - /** - * - * - *
-     * Clusters subscribed to STABLE receive versions that are known to be
-     * stable and reliable in production.
-     * 
- * - * STABLE = 3; - */ - public static final int STABLE_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 Channel 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 Channel forNumber(int value) { - switch (value) { - case 0: - return UNSPECIFIED; - case 1: - return RAPID; - case 2: - return REGULAR; - case 3: - return STABLE; - 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 Channel findValueByNumber(int number) { - return Channel.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.container.v1.ReleaseChannel.getDescriptor().getEnumTypes().get(0); - } - - private static final Channel[] VALUES = values(); - - public static Channel 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 Channel(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.ReleaseChannel.Channel) - } - - public static final int CHANNEL_FIELD_NUMBER = 1; - private int channel_; - /** - * - * - *
-   * channel specifies which release channel the cluster is subscribed to.
-   * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The enum numeric value on the wire for channel. - */ - @java.lang.Override - public int getChannelValue() { - return channel_; - } - /** - * - * - *
-   * channel specifies which release channel the cluster is subscribed to.
-   * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The channel. - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannel.Channel getChannel() { - @SuppressWarnings("deprecation") - com.google.container.v1.ReleaseChannel.Channel result = - com.google.container.v1.ReleaseChannel.Channel.valueOf(channel_); - return result == null ? com.google.container.v1.ReleaseChannel.Channel.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 (channel_ != com.google.container.v1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { - output.writeEnum(1, channel_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (channel_ != com.google.container.v1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, channel_); - } - 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.container.v1.ReleaseChannel)) { - return super.equals(obj); - } - com.google.container.v1.ReleaseChannel other = (com.google.container.v1.ReleaseChannel) obj; - - if (channel_ != other.channel_) 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) + CHANNEL_FIELD_NUMBER; - hash = (53 * hash) + channel_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ReleaseChannel parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ReleaseChannel parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ReleaseChannel parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ReleaseChannel parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ReleaseChannel parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ReleaseChannel parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ReleaseChannel parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ReleaseChannel parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ReleaseChannel parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ReleaseChannel parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ReleaseChannel parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ReleaseChannel parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ReleaseChannel prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * ReleaseChannel indicates which release channel a cluster is
-   * subscribed to. Release channels are arranged in order of risk.
-   * When a cluster is subscribed to a release channel, Google maintains
-   * both the master version and the node version. Node auto-upgrade
-   * defaults to true and cannot be disabled.
-   * 
- * - * Protobuf type {@code google.container.v1.ReleaseChannel} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ReleaseChannel) - com.google.container.v1.ReleaseChannelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ReleaseChannel_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ReleaseChannel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ReleaseChannel.class, - com.google.container.v1.ReleaseChannel.Builder.class); - } - - // Construct using com.google.container.v1.ReleaseChannel.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(); - channel_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ReleaseChannel_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ReleaseChannel getDefaultInstanceForType() { - return com.google.container.v1.ReleaseChannel.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ReleaseChannel build() { - com.google.container.v1.ReleaseChannel result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ReleaseChannel buildPartial() { - com.google.container.v1.ReleaseChannel result = - new com.google.container.v1.ReleaseChannel(this); - result.channel_ = channel_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ReleaseChannel) { - return mergeFrom((com.google.container.v1.ReleaseChannel) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ReleaseChannel other) { - if (other == com.google.container.v1.ReleaseChannel.getDefaultInstance()) return this; - if (other.channel_ != 0) { - setChannelValue(other.getChannelValue()); - } - 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.container.v1.ReleaseChannel parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.ReleaseChannel) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int channel_ = 0; - /** - * - * - *
-     * channel specifies which release channel the cluster is subscribed to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The enum numeric value on the wire for channel. - */ - @java.lang.Override - public int getChannelValue() { - return channel_; - } - /** - * - * - *
-     * channel specifies which release channel the cluster is subscribed to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @param value The enum numeric value on the wire for channel to set. - * @return This builder for chaining. - */ - public Builder setChannelValue(int value) { - - channel_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * channel specifies which release channel the cluster is subscribed to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The channel. - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannel.Channel getChannel() { - @SuppressWarnings("deprecation") - com.google.container.v1.ReleaseChannel.Channel result = - com.google.container.v1.ReleaseChannel.Channel.valueOf(channel_); - return result == null ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED : result; - } - /** - * - * - *
-     * channel specifies which release channel the cluster is subscribed to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @param value The channel to set. - * @return This builder for chaining. - */ - public Builder setChannel(com.google.container.v1.ReleaseChannel.Channel value) { - if (value == null) { - throw new NullPointerException(); - } - - channel_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * channel specifies which release channel the cluster is subscribed to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return This builder for chaining. - */ - public Builder clearChannel() { - - channel_ = 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.container.v1.ReleaseChannel) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ReleaseChannel) - private static final com.google.container.v1.ReleaseChannel DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ReleaseChannel(); - } - - public static com.google.container.v1.ReleaseChannel getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReleaseChannel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReleaseChannel(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.container.v1.ReleaseChannel getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannelOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannelOrBuilder.java deleted file mode 100644 index f529cad1..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannelOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ReleaseChannelOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ReleaseChannel) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * channel specifies which release channel the cluster is subscribed to.
-   * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The enum numeric value on the wire for channel. - */ - int getChannelValue(); - /** - * - * - *
-   * channel specifies which release channel the cluster is subscribed to.
-   * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The channel. - */ - com.google.container.v1.ReleaseChannel.Channel getChannel(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinity.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinity.java deleted file mode 100644 index 0718551c..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinity.java +++ /dev/null @@ -1,1268 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
- * is the configuration of desired reservation which instances could take
- * capacity from.
- * 
- * - * Protobuf type {@code google.container.v1.ReservationAffinity} - */ -public final class ReservationAffinity extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.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; - } - - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ReservationAffinity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ReservationAffinity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ReservationAffinity.class, - com.google.container.v1.ReservationAffinity.Builder.class); - } - - /** - * - * - *
-   * Indicates whether to consume capacity from a reservation or not.
-   * 
- * - * Protobuf enum {@code google.container.v1.ReservationAffinity.Type} - */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value. This should not be used.
-     * 
- * - * UNSPECIFIED = 0; - */ - UNSPECIFIED(0), - /** - * - * - *
-     * Do not consume from any reserved 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), - ; - - /** - * - * - *
-     * Default value. This should not be used.
-     * 
- * - * UNSPECIFIED = 0; - */ - public static final int UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Do not consume from any reserved 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 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.container.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.container.v1.ReservationAffinity.Type) - } - - public static final int CONSUME_RESERVATION_TYPE_FIELD_NUMBER = 1; - private int consumeReservationType_; - /** - * - * - *
-   * Corresponds to the type of reservation consumption.
-   * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * - * @return The enum numeric value on the wire for consumeReservationType. - */ - @java.lang.Override - public int getConsumeReservationTypeValue() { - return consumeReservationType_; - } - /** - * - * - *
-   * Corresponds to the type of reservation consumption.
-   * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * - * @return The consumeReservationType. - */ - @java.lang.Override - public com.google.container.v1.ReservationAffinity.Type getConsumeReservationType() { - @SuppressWarnings("deprecation") - com.google.container.v1.ReservationAffinity.Type result = - com.google.container.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); - return result == null ? com.google.container.v1.ReservationAffinity.Type.UNRECOGNIZED : result; - } - - public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; - /** - * - * - *
-   * Corresponds to the label key of a reservation resource. To target a
-   * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
-   * the key and specify the name of your reservation as its value.
-   * 
- * - * string key = 2; - * - * @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; - } - } - /** - * - * - *
-   * Corresponds to the label key of a reservation resource. To target a
-   * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
-   * the key and specify the name of your reservation as its value.
-   * 
- * - * string key = 2; - * - * @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_; - /** - * - * - *
-   * Corresponds to the label value(s) of reservation resource(s).
-   * 
- * - * repeated string values = 3; - * - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList getValuesList() { - return values_; - } - /** - * - * - *
-   * Corresponds to the label value(s) of reservation resource(s).
-   * 
- * - * repeated string values = 3; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * - * - *
-   * Corresponds to the label value(s) of reservation resource(s).
-   * 
- * - * repeated string values = 3; - * - * @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); - } - /** - * - * - *
-   * Corresponds to the label value(s) of reservation resource(s).
-   * 
- * - * repeated string values = 3; - * - * @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.container.v1.ReservationAffinity.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.container.v1.ReservationAffinity.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.container.v1.ReservationAffinity)) { - return super.equals(obj); - } - com.google.container.v1.ReservationAffinity other = - (com.google.container.v1.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.container.v1.ReservationAffinity parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.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.container.v1.ReservationAffinity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.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.container.v1.ReservationAffinity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ReservationAffinity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ReservationAffinity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.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.container.v1.ReservationAffinity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.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.container.v1.ReservationAffinity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.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.container.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; - } - /** - * - * - *
-   * [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
-   * is the configuration of desired reservation which instances could take
-   * capacity from.
-   * 
- * - * Protobuf type {@code google.container.v1.ReservationAffinity} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ReservationAffinity) - com.google.container.v1.ReservationAffinityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ReservationAffinity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ReservationAffinity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ReservationAffinity.class, - com.google.container.v1.ReservationAffinity.Builder.class); - } - - // Construct using com.google.container.v1.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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ReservationAffinity_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ReservationAffinity getDefaultInstanceForType() { - return com.google.container.v1.ReservationAffinity.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ReservationAffinity build() { - com.google.container.v1.ReservationAffinity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ReservationAffinity buildPartial() { - com.google.container.v1.ReservationAffinity result = - new com.google.container.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.container.v1.ReservationAffinity) { - return mergeFrom((com.google.container.v1.ReservationAffinity) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ReservationAffinity other) { - if (other == com.google.container.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.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.container.v1.ReservationAffinity parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.ReservationAffinity) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private int consumeReservationType_ = 0; - /** - * - * - *
-     * Corresponds to the type of reservation consumption.
-     * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * - * @return The enum numeric value on the wire for consumeReservationType. - */ - @java.lang.Override - public int getConsumeReservationTypeValue() { - return consumeReservationType_; - } - /** - * - * - *
-     * Corresponds to the type of reservation consumption.
-     * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * - * @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; - } - /** - * - * - *
-     * Corresponds to the type of reservation consumption.
-     * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * - * @return The consumeReservationType. - */ - @java.lang.Override - public com.google.container.v1.ReservationAffinity.Type getConsumeReservationType() { - @SuppressWarnings("deprecation") - com.google.container.v1.ReservationAffinity.Type result = - com.google.container.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); - return result == null - ? com.google.container.v1.ReservationAffinity.Type.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Corresponds to the type of reservation consumption.
-     * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * - * @param value The consumeReservationType to set. - * @return This builder for chaining. - */ - public Builder setConsumeReservationType( - com.google.container.v1.ReservationAffinity.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - consumeReservationType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Corresponds to the type of reservation consumption.
-     * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * - * @return This builder for chaining. - */ - public Builder clearConsumeReservationType() { - - consumeReservationType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - * - * - *
-     * Corresponds to the label key of a reservation resource. To target a
-     * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
-     * the key and specify the name of your reservation as its value.
-     * 
- * - * string key = 2; - * - * @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; - } - } - /** - * - * - *
-     * Corresponds to the label key of a reservation resource. To target a
-     * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
-     * the key and specify the name of your reservation as its value.
-     * 
- * - * string key = 2; - * - * @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; - } - } - /** - * - * - *
-     * Corresponds to the label key of a reservation resource. To target a
-     * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
-     * the key and specify the name of your reservation as its value.
-     * 
- * - * string key = 2; - * - * @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; - } - /** - * - * - *
-     * Corresponds to the label key of a reservation resource. To target a
-     * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
-     * the key and specify the name of your reservation as its value.
-     * 
- * - * string key = 2; - * - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * - * - *
-     * Corresponds to the label key of a reservation resource. To target a
-     * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
-     * the key and specify the name of your reservation as its value.
-     * 
- * - * string key = 2; - * - * @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; - } - } - /** - * - * - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList getValuesList() { - return values_.getUnmodifiableView(); - } - /** - * - * - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - * - * - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * - * @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); - } - /** - * - * - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * - * @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); - } - /** - * - * - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * - * @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; - } - /** - * - * - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * - * @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; - } - /** - * - * - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * - * @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; - } - /** - * - * - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * - * @return This builder for chaining. - */ - public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Corresponds to the label value(s) of reservation resource(s).
-     * 
- * - * repeated string values = 3; - * - * @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.container.v1.ReservationAffinity) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ReservationAffinity) - private static final com.google.container.v1.ReservationAffinity DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ReservationAffinity(); - } - - public static com.google.container.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 { - 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.container.v1.ReservationAffinity getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinityOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinityOrBuilder.java deleted file mode 100644 index 87fb27a1..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ReservationAffinityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ReservationAffinity) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Corresponds to the type of reservation consumption.
-   * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * - * @return The enum numeric value on the wire for consumeReservationType. - */ - int getConsumeReservationTypeValue(); - /** - * - * - *
-   * Corresponds to the type of reservation consumption.
-   * 
- * - * .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * - * @return The consumeReservationType. - */ - com.google.container.v1.ReservationAffinity.Type getConsumeReservationType(); - - /** - * - * - *
-   * Corresponds to the label key of a reservation resource. To target a
-   * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
-   * the key and specify the name of your reservation as its value.
-   * 
- * - * string key = 2; - * - * @return The key. - */ - java.lang.String getKey(); - /** - * - * - *
-   * Corresponds to the label key of a reservation resource. To target a
-   * SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as
-   * the key and specify the name of your reservation as its value.
-   * 
- * - * string key = 2; - * - * @return The bytes for key. - */ - com.google.protobuf.ByteString getKeyBytes(); - - /** - * - * - *
-   * Corresponds to the label value(s) of reservation resource(s).
-   * 
- * - * repeated string values = 3; - * - * @return A list containing the values. - */ - java.util.List getValuesList(); - /** - * - * - *
-   * Corresponds to the label value(s) of reservation resource(s).
-   * 
- * - * repeated string values = 3; - * - * @return The count of values. - */ - int getValuesCount(); - /** - * - * - *
-   * Corresponds to the label value(s) of reservation resource(s).
-   * 
- * - * repeated string values = 3; - * - * @param index The index of the element to return. - * @return The values at the given index. - */ - java.lang.String getValues(int index); - /** - * - * - *
-   * Corresponds to the label value(s) of reservation resource(s).
-   * 
- * - * repeated string values = 3; - * - * @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-container-v1/src/main/java/com/google/container/v1/ResourceLimit.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimit.java deleted file mode 100644 index 1ce5533a..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimit.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Contains information about amount of some resource in the cluster.
- * For memory, value should be in GB.
- * 
- * - * Protobuf type {@code google.container.v1.ResourceLimit} - */ -public final class ResourceLimit extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ResourceLimit) - ResourceLimitOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResourceLimit.newBuilder() to construct. - private ResourceLimit(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ResourceLimit() { - resourceType_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ResourceLimit(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ResourceLimit( - 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(); - - resourceType_ = s; - break; - } - case 16: - { - minimum_ = input.readInt64(); - break; - } - case 24: - { - maximum_ = input.readInt64(); - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceLimit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceLimit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ResourceLimit.class, - com.google.container.v1.ResourceLimit.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object resourceType_; - /** - * - * - *
-   * Resource name "cpu", "memory" or gpu-specific string.
-   * 
- * - * string resource_type = 1; - * - * @return The resourceType. - */ - @java.lang.Override - public java.lang.String getResourceType() { - java.lang.Object ref = resourceType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceType_ = s; - return s; - } - } - /** - * - * - *
-   * Resource name "cpu", "memory" or gpu-specific string.
-   * 
- * - * string resource_type = 1; - * - * @return The bytes for resourceType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getResourceTypeBytes() { - java.lang.Object ref = resourceType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resourceType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MINIMUM_FIELD_NUMBER = 2; - private long minimum_; - /** - * - * - *
-   * Minimum amount of the resource in the cluster.
-   * 
- * - * int64 minimum = 2; - * - * @return The minimum. - */ - @java.lang.Override - public long getMinimum() { - return minimum_; - } - - public static final int MAXIMUM_FIELD_NUMBER = 3; - private long maximum_; - /** - * - * - *
-   * Maximum amount of the resource in the cluster.
-   * 
- * - * int64 maximum = 3; - * - * @return The maximum. - */ - @java.lang.Override - public long getMaximum() { - return maximum_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getResourceTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceType_); - } - if (minimum_ != 0L) { - output.writeInt64(2, minimum_); - } - if (maximum_ != 0L) { - output.writeInt64(3, maximum_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getResourceTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceType_); - } - if (minimum_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, minimum_); - } - if (maximum_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, maximum_); - } - 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.container.v1.ResourceLimit)) { - return super.equals(obj); - } - com.google.container.v1.ResourceLimit other = (com.google.container.v1.ResourceLimit) obj; - - if (!getResourceType().equals(other.getResourceType())) return false; - if (getMinimum() != other.getMinimum()) return false; - if (getMaximum() != other.getMaximum()) 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) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getResourceType().hashCode(); - hash = (37 * hash) + MINIMUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinimum()); - hash = (37 * hash) + MAXIMUM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaximum()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ResourceLimit parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ResourceLimit parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ResourceLimit parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ResourceLimit parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ResourceLimit parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ResourceLimit parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ResourceLimit parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ResourceLimit parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ResourceLimit parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ResourceLimit parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ResourceLimit parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ResourceLimit parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ResourceLimit prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 information about amount of some resource in the cluster.
-   * For memory, value should be in GB.
-   * 
- * - * Protobuf type {@code google.container.v1.ResourceLimit} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ResourceLimit) - com.google.container.v1.ResourceLimitOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceLimit_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceLimit_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ResourceLimit.class, - com.google.container.v1.ResourceLimit.Builder.class); - } - - // Construct using com.google.container.v1.ResourceLimit.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(); - resourceType_ = ""; - - minimum_ = 0L; - - maximum_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceLimit_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ResourceLimit getDefaultInstanceForType() { - return com.google.container.v1.ResourceLimit.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ResourceLimit build() { - com.google.container.v1.ResourceLimit result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ResourceLimit buildPartial() { - com.google.container.v1.ResourceLimit result = - new com.google.container.v1.ResourceLimit(this); - result.resourceType_ = resourceType_; - result.minimum_ = minimum_; - result.maximum_ = maximum_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ResourceLimit) { - return mergeFrom((com.google.container.v1.ResourceLimit) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ResourceLimit other) { - if (other == com.google.container.v1.ResourceLimit.getDefaultInstance()) return this; - if (!other.getResourceType().isEmpty()) { - resourceType_ = other.resourceType_; - onChanged(); - } - if (other.getMinimum() != 0L) { - setMinimum(other.getMinimum()); - } - if (other.getMaximum() != 0L) { - setMaximum(other.getMaximum()); - } - 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.container.v1.ResourceLimit parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.ResourceLimit) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object resourceType_ = ""; - /** - * - * - *
-     * Resource name "cpu", "memory" or gpu-specific string.
-     * 
- * - * string resource_type = 1; - * - * @return The resourceType. - */ - public java.lang.String getResourceType() { - java.lang.Object ref = resourceType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resourceType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Resource name "cpu", "memory" or gpu-specific string.
-     * 
- * - * string resource_type = 1; - * - * @return The bytes for resourceType. - */ - public com.google.protobuf.ByteString getResourceTypeBytes() { - java.lang.Object ref = resourceType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resourceType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Resource name "cpu", "memory" or gpu-specific string.
-     * 
- * - * string resource_type = 1; - * - * @param value The resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Resource name "cpu", "memory" or gpu-specific string.
-     * 
- * - * string resource_type = 1; - * - * @return This builder for chaining. - */ - public Builder clearResourceType() { - - resourceType_ = getDefaultInstance().getResourceType(); - onChanged(); - return this; - } - /** - * - * - *
-     * Resource name "cpu", "memory" or gpu-specific string.
-     * 
- * - * string resource_type = 1; - * - * @param value The bytes for resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - resourceType_ = value; - onChanged(); - return this; - } - - private long minimum_; - /** - * - * - *
-     * Minimum amount of the resource in the cluster.
-     * 
- * - * int64 minimum = 2; - * - * @return The minimum. - */ - @java.lang.Override - public long getMinimum() { - return minimum_; - } - /** - * - * - *
-     * Minimum amount of the resource in the cluster.
-     * 
- * - * int64 minimum = 2; - * - * @param value The minimum to set. - * @return This builder for chaining. - */ - public Builder setMinimum(long value) { - - minimum_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Minimum amount of the resource in the cluster.
-     * 
- * - * int64 minimum = 2; - * - * @return This builder for chaining. - */ - public Builder clearMinimum() { - - minimum_ = 0L; - onChanged(); - return this; - } - - private long maximum_; - /** - * - * - *
-     * Maximum amount of the resource in the cluster.
-     * 
- * - * int64 maximum = 3; - * - * @return The maximum. - */ - @java.lang.Override - public long getMaximum() { - return maximum_; - } - /** - * - * - *
-     * Maximum amount of the resource in the cluster.
-     * 
- * - * int64 maximum = 3; - * - * @param value The maximum to set. - * @return This builder for chaining. - */ - public Builder setMaximum(long value) { - - maximum_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Maximum amount of the resource in the cluster.
-     * 
- * - * int64 maximum = 3; - * - * @return This builder for chaining. - */ - public Builder clearMaximum() { - - maximum_ = 0L; - 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.container.v1.ResourceLimit) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ResourceLimit) - private static final com.google.container.v1.ResourceLimit DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ResourceLimit(); - } - - public static com.google.container.v1.ResourceLimit getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceLimit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceLimit(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.container.v1.ResourceLimit getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimitOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimitOrBuilder.java deleted file mode 100644 index 65a681ae..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimitOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ResourceLimitOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ResourceLimit) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Resource name "cpu", "memory" or gpu-specific string.
-   * 
- * - * string resource_type = 1; - * - * @return The resourceType. - */ - java.lang.String getResourceType(); - /** - * - * - *
-   * Resource name "cpu", "memory" or gpu-specific string.
-   * 
- * - * string resource_type = 1; - * - * @return The bytes for resourceType. - */ - com.google.protobuf.ByteString getResourceTypeBytes(); - - /** - * - * - *
-   * Minimum amount of the resource in the cluster.
-   * 
- * - * int64 minimum = 2; - * - * @return The minimum. - */ - long getMinimum(); - - /** - * - * - *
-   * Maximum amount of the resource in the cluster.
-   * 
- * - * int64 maximum = 3; - * - * @return The maximum. - */ - long getMaximum(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfig.java deleted file mode 100644 index 34da0458..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfig.java +++ /dev/null @@ -1,2446 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Configuration for exporting cluster resource usages.
- * 
- * - * Protobuf type {@code google.container.v1.ResourceUsageExportConfig} - */ -public final class ResourceUsageExportConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ResourceUsageExportConfig) - ResourceUsageExportConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResourceUsageExportConfig.newBuilder() to construct. - private ResourceUsageExportConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ResourceUsageExportConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ResourceUsageExportConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ResourceUsageExportConfig( - 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.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder - subBuilder = null; - if (bigqueryDestination_ != null) { - subBuilder = bigqueryDestination_.toBuilder(); - } - bigqueryDestination_ = - input.readMessage( - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bigqueryDestination_); - bigqueryDestination_ = subBuilder.buildPartial(); - } - - break; - } - case 16: - { - enableNetworkEgressMetering_ = input.readBool(); - break; - } - case 26: - { - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder - subBuilder = null; - if (consumptionMeteringConfig_ != null) { - subBuilder = consumptionMeteringConfig_.toBuilder(); - } - consumptionMeteringConfig_ = - input.readMessage( - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(consumptionMeteringConfig_); - consumptionMeteringConfig_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ResourceUsageExportConfig.class, - com.google.container.v1.ResourceUsageExportConfig.Builder.class); - } - - public interface BigQueryDestinationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ResourceUsageExportConfig.BigQueryDestination) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The ID of a BigQuery Dataset.
-     * 
- * - * string dataset_id = 1; - * - * @return The datasetId. - */ - java.lang.String getDatasetId(); - /** - * - * - *
-     * The ID of a BigQuery Dataset.
-     * 
- * - * string dataset_id = 1; - * - * @return The bytes for datasetId. - */ - com.google.protobuf.ByteString getDatasetIdBytes(); - } - /** - * - * - *
-   * Parameters for using BigQuery as the destination of resource usage export.
-   * 
- * - * Protobuf type {@code google.container.v1.ResourceUsageExportConfig.BigQueryDestination} - */ - public static final class BigQueryDestination extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ResourceUsageExportConfig.BigQueryDestination) - BigQueryDestinationOrBuilder { - private static final long serialVersionUID = 0L; - // Use BigQueryDestination.newBuilder() to construct. - private BigQueryDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BigQueryDestination() { - datasetId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BigQueryDestination(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private BigQueryDestination( - 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(); - - datasetId_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_BigQueryDestination_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_BigQueryDestination_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.class, - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder.class); - } - - public static final int DATASET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object datasetId_; - /** - * - * - *
-     * The ID of a BigQuery Dataset.
-     * 
- * - * string dataset_id = 1; - * - * @return The datasetId. - */ - @java.lang.Override - public java.lang.String getDatasetId() { - java.lang.Object ref = datasetId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - datasetId_ = s; - return s; - } - } - /** - * - * - *
-     * The ID of a BigQuery Dataset.
-     * 
- * - * string dataset_id = 1; - * - * @return The bytes for datasetId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDatasetIdBytes() { - java.lang.Object ref = datasetId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - datasetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDatasetIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datasetId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDatasetIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, datasetId_); - } - 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.container.v1.ResourceUsageExportConfig.BigQueryDestination)) { - return super.equals(obj); - } - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination other = - (com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination) obj; - - if (!getDatasetId().equals(other.getDatasetId())) 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) + DATASET_ID_FIELD_NUMBER; - hash = (53 * hash) + getDatasetId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Parameters for using BigQuery as the destination of resource usage export.
-     * 
- * - * Protobuf type {@code google.container.v1.ResourceUsageExportConfig.BigQueryDestination} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ResourceUsageExportConfig.BigQueryDestination) - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_BigQueryDestination_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_BigQueryDestination_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.class, - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder - .class); - } - - // Construct using - // com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.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(); - datasetId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_BigQueryDestination_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - getDefaultInstanceForType() { - return com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination build() { - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination buildPartial() { - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination result = - new com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination(this); - result.datasetId_ = datasetId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination) { - return mergeFrom( - (com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination other) { - if (other - == com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - .getDefaultInstance()) return this; - if (!other.getDatasetId().isEmpty()) { - datasetId_ = other.datasetId_; - 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.container.v1.ResourceUsageExportConfig.BigQueryDestination parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object datasetId_ = ""; - /** - * - * - *
-       * The ID of a BigQuery Dataset.
-       * 
- * - * string dataset_id = 1; - * - * @return The datasetId. - */ - public java.lang.String getDatasetId() { - java.lang.Object ref = datasetId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - datasetId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * The ID of a BigQuery Dataset.
-       * 
- * - * string dataset_id = 1; - * - * @return The bytes for datasetId. - */ - public com.google.protobuf.ByteString getDatasetIdBytes() { - java.lang.Object ref = datasetId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - datasetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * The ID of a BigQuery Dataset.
-       * 
- * - * string dataset_id = 1; - * - * @param value The datasetId to set. - * @return This builder for chaining. - */ - public Builder setDatasetId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - datasetId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The ID of a BigQuery Dataset.
-       * 
- * - * string dataset_id = 1; - * - * @return This builder for chaining. - */ - public Builder clearDatasetId() { - - datasetId_ = getDefaultInstance().getDatasetId(); - onChanged(); - return this; - } - /** - * - * - *
-       * The ID of a BigQuery Dataset.
-       * 
- * - * string dataset_id = 1; - * - * @param value The bytes for datasetId to set. - * @return This builder for chaining. - */ - public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - datasetId_ = 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.container.v1.ResourceUsageExportConfig.BigQueryDestination) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ResourceUsageExportConfig.BigQueryDestination) - private static final com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination(); - } - - public static com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BigQueryDestination(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.container.v1.ResourceUsageExportConfig.BigQueryDestination - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface ConsumptionMeteringConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Whether to enable consumption metering for this cluster. If enabled, a
-     * second BigQuery table will be created to hold resource consumption
-     * records.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); - } - /** - * - * - *
-   * Parameters for controlling consumption metering.
-   * 
- * - * Protobuf type {@code google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} - */ - public static final class ConsumptionMeteringConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) - ConsumptionMeteringConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConsumptionMeteringConfig.newBuilder() to construct. - private ConsumptionMeteringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ConsumptionMeteringConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConsumptionMeteringConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ConsumptionMeteringConfig( - 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: - { - enabled_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_ConsumptionMeteringConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_ConsumptionMeteringConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.class, - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder - .class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - * - * - *
-     * Whether to enable consumption metering for this cluster. If enabled, a
-     * second BigQuery table will be created to hold resource consumption
-     * records.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); - } - 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.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig)) { - return super.equals(obj); - } - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig other = - (com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) obj; - - if (getEnabled() != other.getEnabled()) 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) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 for controlling consumption metering.
-     * 
- * - * Protobuf type {@code google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_ConsumptionMeteringConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_ConsumptionMeteringConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.class, - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder - .class); - } - - // Construct using - // com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_ConsumptionMeteringConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - getDefaultInstanceForType() { - return com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig build() { - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - buildPartial() { - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig result = - new com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) { - return mergeFrom( - (com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig other) { - if (other - == com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - .getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - 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.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean enabled_; - /** - * - * - *
-       * Whether to enable consumption metering for this cluster. If enabled, a
-       * second BigQuery table will be created to hold resource consumption
-       * records.
-       * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-       * Whether to enable consumption metering for this cluster. If enabled, a
-       * second BigQuery table will be created to hold resource consumption
-       * records.
-       * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * Whether to enable consumption metering for this cluster. If enabled, a
-       * second BigQuery table will be created to hold resource consumption
-       * records.
-       * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = 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.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) - private static final com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig(); - } - - public static com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConsumptionMeteringConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConsumptionMeteringConfig(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.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int BIGQUERY_DESTINATION_FIELD_NUMBER = 1; - private com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - bigqueryDestination_; - /** - * - * - *
-   * Configuration to use BigQuery as usage export destination.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - * - * @return Whether the bigqueryDestination field is set. - */ - @java.lang.Override - public boolean hasBigqueryDestination() { - return bigqueryDestination_ != null; - } - /** - * - * - *
-   * Configuration to use BigQuery as usage export destination.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - * - * @return The bigqueryDestination. - */ - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - getBigqueryDestination() { - return bigqueryDestination_ == null - ? com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.getDefaultInstance() - : bigqueryDestination_; - } - /** - * - * - *
-   * Configuration to use BigQuery as usage export destination.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - */ - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder - getBigqueryDestinationOrBuilder() { - return getBigqueryDestination(); - } - - public static final int ENABLE_NETWORK_EGRESS_METERING_FIELD_NUMBER = 2; - private boolean enableNetworkEgressMetering_; - /** - * - * - *
-   * Whether to enable network egress metering for this cluster. If enabled, a
-   * daemonset will be created in the cluster to meter network egress traffic.
-   * 
- * - * bool enable_network_egress_metering = 2; - * - * @return The enableNetworkEgressMetering. - */ - @java.lang.Override - public boolean getEnableNetworkEgressMetering() { - return enableNetworkEgressMetering_; - } - - public static final int CONSUMPTION_METERING_CONFIG_FIELD_NUMBER = 3; - private com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - consumptionMeteringConfig_; - /** - * - * - *
-   * Configuration to enable resource consumption metering.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - * - * @return Whether the consumptionMeteringConfig field is set. - */ - @java.lang.Override - public boolean hasConsumptionMeteringConfig() { - return consumptionMeteringConfig_ != null; - } - /** - * - * - *
-   * Configuration to enable resource consumption metering.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - * - * @return The consumptionMeteringConfig. - */ - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - getConsumptionMeteringConfig() { - return consumptionMeteringConfig_ == null - ? com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - .getDefaultInstance() - : consumptionMeteringConfig_; - } - /** - * - * - *
-   * Configuration to enable resource consumption metering.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - */ - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder - getConsumptionMeteringConfigOrBuilder() { - return getConsumptionMeteringConfig(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (bigqueryDestination_ != null) { - output.writeMessage(1, getBigqueryDestination()); - } - if (enableNetworkEgressMetering_ != false) { - output.writeBool(2, enableNetworkEgressMetering_); - } - if (consumptionMeteringConfig_ != null) { - output.writeMessage(3, getConsumptionMeteringConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (bigqueryDestination_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBigqueryDestination()); - } - if (enableNetworkEgressMetering_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableNetworkEgressMetering_); - } - if (consumptionMeteringConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, getConsumptionMeteringConfig()); - } - 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.container.v1.ResourceUsageExportConfig)) { - return super.equals(obj); - } - com.google.container.v1.ResourceUsageExportConfig other = - (com.google.container.v1.ResourceUsageExportConfig) obj; - - if (hasBigqueryDestination() != other.hasBigqueryDestination()) return false; - if (hasBigqueryDestination()) { - if (!getBigqueryDestination().equals(other.getBigqueryDestination())) return false; - } - if (getEnableNetworkEgressMetering() != other.getEnableNetworkEgressMetering()) return false; - if (hasConsumptionMeteringConfig() != other.hasConsumptionMeteringConfig()) return false; - if (hasConsumptionMeteringConfig()) { - if (!getConsumptionMeteringConfig().equals(other.getConsumptionMeteringConfig())) - 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 (hasBigqueryDestination()) { - hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER; - hash = (53 * hash) + getBigqueryDestination().hashCode(); - } - hash = (37 * hash) + ENABLE_NETWORK_EGRESS_METERING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableNetworkEgressMetering()); - if (hasConsumptionMeteringConfig()) { - hash = (37 * hash) + CONSUMPTION_METERING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConsumptionMeteringConfig().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ResourceUsageExportConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ResourceUsageExportConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ResourceUsageExportConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ResourceUsageExportConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ResourceUsageExportConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ResourceUsageExportConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ResourceUsageExportConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ResourceUsageExportConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ResourceUsageExportConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ResourceUsageExportConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ResourceUsageExportConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ResourceUsageExportConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ResourceUsageExportConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 exporting cluster resource usages.
-   * 
- * - * Protobuf type {@code google.container.v1.ResourceUsageExportConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ResourceUsageExportConfig) - com.google.container.v1.ResourceUsageExportConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ResourceUsageExportConfig.class, - com.google.container.v1.ResourceUsageExportConfig.Builder.class); - } - - // Construct using com.google.container.v1.ResourceUsageExportConfig.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 (bigqueryDestinationBuilder_ == null) { - bigqueryDestination_ = null; - } else { - bigqueryDestination_ = null; - bigqueryDestinationBuilder_ = null; - } - enableNetworkEgressMetering_ = false; - - if (consumptionMeteringConfigBuilder_ == null) { - consumptionMeteringConfig_ = null; - } else { - consumptionMeteringConfig_ = null; - consumptionMeteringConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ResourceUsageExportConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig getDefaultInstanceForType() { - return com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig build() { - com.google.container.v1.ResourceUsageExportConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ResourceUsageExportConfig buildPartial() { - com.google.container.v1.ResourceUsageExportConfig result = - new com.google.container.v1.ResourceUsageExportConfig(this); - if (bigqueryDestinationBuilder_ == null) { - result.bigqueryDestination_ = bigqueryDestination_; - } else { - result.bigqueryDestination_ = bigqueryDestinationBuilder_.build(); - } - result.enableNetworkEgressMetering_ = enableNetworkEgressMetering_; - if (consumptionMeteringConfigBuilder_ == null) { - result.consumptionMeteringConfig_ = consumptionMeteringConfig_; - } else { - result.consumptionMeteringConfig_ = consumptionMeteringConfigBuilder_.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.container.v1.ResourceUsageExportConfig) { - return mergeFrom((com.google.container.v1.ResourceUsageExportConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ResourceUsageExportConfig other) { - if (other == com.google.container.v1.ResourceUsageExportConfig.getDefaultInstance()) - return this; - if (other.hasBigqueryDestination()) { - mergeBigqueryDestination(other.getBigqueryDestination()); - } - if (other.getEnableNetworkEgressMetering() != false) { - setEnableNetworkEgressMetering(other.getEnableNetworkEgressMetering()); - } - if (other.hasConsumptionMeteringConfig()) { - mergeConsumptionMeteringConfig(other.getConsumptionMeteringConfig()); - } - 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.container.v1.ResourceUsageExportConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.container.v1.ResourceUsageExportConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - bigqueryDestination_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination, - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder, - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder> - bigqueryDestinationBuilder_; - /** - * - * - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - * - * @return Whether the bigqueryDestination field is set. - */ - public boolean hasBigqueryDestination() { - return bigqueryDestinationBuilder_ != null || bigqueryDestination_ != null; - } - /** - * - * - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - * - * @return The bigqueryDestination. - */ - public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - getBigqueryDestination() { - if (bigqueryDestinationBuilder_ == null) { - return bigqueryDestination_ == null - ? com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - .getDefaultInstance() - : bigqueryDestination_; - } else { - return bigqueryDestinationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - */ - public Builder setBigqueryDestination( - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination value) { - if (bigqueryDestinationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - bigqueryDestination_ = value; - onChanged(); - } else { - bigqueryDestinationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - */ - public Builder setBigqueryDestination( - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder - builderForValue) { - if (bigqueryDestinationBuilder_ == null) { - bigqueryDestination_ = builderForValue.build(); - onChanged(); - } else { - bigqueryDestinationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - */ - public Builder mergeBigqueryDestination( - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination value) { - if (bigqueryDestinationBuilder_ == null) { - if (bigqueryDestination_ != null) { - bigqueryDestination_ = - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.newBuilder( - bigqueryDestination_) - .mergeFrom(value) - .buildPartial(); - } else { - bigqueryDestination_ = value; - } - onChanged(); - } else { - bigqueryDestinationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - */ - public Builder clearBigqueryDestination() { - if (bigqueryDestinationBuilder_ == null) { - bigqueryDestination_ = null; - onChanged(); - } else { - bigqueryDestination_ = null; - bigqueryDestinationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - */ - public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder - getBigqueryDestinationBuilder() { - - onChanged(); - return getBigqueryDestinationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - */ - public com.google.container.v1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder - getBigqueryDestinationOrBuilder() { - if (bigqueryDestinationBuilder_ != null) { - return bigqueryDestinationBuilder_.getMessageOrBuilder(); - } else { - return bigqueryDestination_ == null - ? com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination - .getDefaultInstance() - : bigqueryDestination_; - } - } - /** - * - * - *
-     * Configuration to use BigQuery as usage export destination.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination, - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder, - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder> - getBigqueryDestinationFieldBuilder() { - if (bigqueryDestinationBuilder_ == null) { - bigqueryDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination, - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder, - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder>( - getBigqueryDestination(), getParentForChildren(), isClean()); - bigqueryDestination_ = null; - } - return bigqueryDestinationBuilder_; - } - - private boolean enableNetworkEgressMetering_; - /** - * - * - *
-     * Whether to enable network egress metering for this cluster. If enabled, a
-     * daemonset will be created in the cluster to meter network egress traffic.
-     * 
- * - * bool enable_network_egress_metering = 2; - * - * @return The enableNetworkEgressMetering. - */ - @java.lang.Override - public boolean getEnableNetworkEgressMetering() { - return enableNetworkEgressMetering_; - } - /** - * - * - *
-     * Whether to enable network egress metering for this cluster. If enabled, a
-     * daemonset will be created in the cluster to meter network egress traffic.
-     * 
- * - * bool enable_network_egress_metering = 2; - * - * @param value The enableNetworkEgressMetering to set. - * @return This builder for chaining. - */ - public Builder setEnableNetworkEgressMetering(boolean value) { - - enableNetworkEgressMetering_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether to enable network egress metering for this cluster. If enabled, a
-     * daemonset will be created in the cluster to meter network egress traffic.
-     * 
- * - * bool enable_network_egress_metering = 2; - * - * @return This builder for chaining. - */ - public Builder clearEnableNetworkEgressMetering() { - - enableNetworkEgressMetering_ = false; - onChanged(); - return this; - } - - private com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - consumptionMeteringConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig, - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder, - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder> - consumptionMeteringConfigBuilder_; - /** - * - * - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - * - * @return Whether the consumptionMeteringConfig field is set. - */ - public boolean hasConsumptionMeteringConfig() { - return consumptionMeteringConfigBuilder_ != null || consumptionMeteringConfig_ != null; - } - /** - * - * - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - * - * @return The consumptionMeteringConfig. - */ - public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - getConsumptionMeteringConfig() { - if (consumptionMeteringConfigBuilder_ == null) { - return consumptionMeteringConfig_ == null - ? com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - .getDefaultInstance() - : consumptionMeteringConfig_; - } else { - return consumptionMeteringConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - */ - public Builder setConsumptionMeteringConfig( - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig value) { - if (consumptionMeteringConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - consumptionMeteringConfig_ = value; - onChanged(); - } else { - consumptionMeteringConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - */ - public Builder setConsumptionMeteringConfig( - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder - builderForValue) { - if (consumptionMeteringConfigBuilder_ == null) { - consumptionMeteringConfig_ = builderForValue.build(); - onChanged(); - } else { - consumptionMeteringConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - */ - public Builder mergeConsumptionMeteringConfig( - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig value) { - if (consumptionMeteringConfigBuilder_ == null) { - if (consumptionMeteringConfig_ != null) { - consumptionMeteringConfig_ = - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - .newBuilder(consumptionMeteringConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - consumptionMeteringConfig_ = value; - } - onChanged(); - } else { - consumptionMeteringConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - */ - public Builder clearConsumptionMeteringConfig() { - if (consumptionMeteringConfigBuilder_ == null) { - consumptionMeteringConfig_ = null; - onChanged(); - } else { - consumptionMeteringConfig_ = null; - consumptionMeteringConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - */ - public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder - getConsumptionMeteringConfigBuilder() { - - onChanged(); - return getConsumptionMeteringConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - */ - public com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder - getConsumptionMeteringConfigOrBuilder() { - if (consumptionMeteringConfigBuilder_ != null) { - return consumptionMeteringConfigBuilder_.getMessageOrBuilder(); - } else { - return consumptionMeteringConfig_ == null - ? com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - .getDefaultInstance() - : consumptionMeteringConfig_; - } - } - /** - * - * - *
-     * Configuration to enable resource consumption metering.
-     * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig, - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder, - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder> - getConsumptionMeteringConfigFieldBuilder() { - if (consumptionMeteringConfigBuilder_ == null) { - consumptionMeteringConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig, - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder, - com.google.container.v1.ResourceUsageExportConfig - .ConsumptionMeteringConfigOrBuilder>( - getConsumptionMeteringConfig(), getParentForChildren(), isClean()); - consumptionMeteringConfig_ = null; - } - return consumptionMeteringConfigBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ResourceUsageExportConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ResourceUsageExportConfig) - private static final com.google.container.v1.ResourceUsageExportConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ResourceUsageExportConfig(); - } - - public static com.google.container.v1.ResourceUsageExportConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceUsageExportConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceUsageExportConfig(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.container.v1.ResourceUsageExportConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfigOrBuilder.java deleted file mode 100644 index 9921d1a6..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfigOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ResourceUsageExportConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ResourceUsageExportConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Configuration to use BigQuery as usage export destination.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - * - * @return Whether the bigqueryDestination field is set. - */ - boolean hasBigqueryDestination(); - /** - * - * - *
-   * Configuration to use BigQuery as usage export destination.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - * - * @return The bigqueryDestination. - */ - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination getBigqueryDestination(); - /** - * - * - *
-   * Configuration to use BigQuery as usage export destination.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * - */ - com.google.container.v1.ResourceUsageExportConfig.BigQueryDestinationOrBuilder - getBigqueryDestinationOrBuilder(); - - /** - * - * - *
-   * Whether to enable network egress metering for this cluster. If enabled, a
-   * daemonset will be created in the cluster to meter network egress traffic.
-   * 
- * - * bool enable_network_egress_metering = 2; - * - * @return The enableNetworkEgressMetering. - */ - boolean getEnableNetworkEgressMetering(); - - /** - * - * - *
-   * Configuration to enable resource consumption metering.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - * - * @return Whether the consumptionMeteringConfig field is set. - */ - boolean hasConsumptionMeteringConfig(); - /** - * - * - *
-   * Configuration to enable resource consumption metering.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - * - * @return The consumptionMeteringConfig. - */ - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - getConsumptionMeteringConfig(); - /** - * - * - *
-   * Configuration to enable resource consumption metering.
-   * 
- * - * - * .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * - */ - com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfigOrBuilder - getConsumptionMeteringConfigOrBuilder(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java deleted file mode 100644 index 3b479e5f..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java +++ /dev/null @@ -1,1449 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
- * NodePool upgrade. This will be an no-op if the last upgrade successfully
- * completed.
- * 
- * - * Protobuf type {@code google.container.v1.RollbackNodePoolUpgradeRequest} - */ -public final class RollbackNodePoolUpgradeRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.RollbackNodePoolUpgradeRequest) - RollbackNodePoolUpgradeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RollbackNodePoolUpgradeRequest.newBuilder() to construct. - private RollbackNodePoolUpgradeRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RollbackNodePoolUpgradeRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RollbackNodePoolUpgradeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private RollbackNodePoolUpgradeRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - nodePoolId_ = s; - break; - } - case 50: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RollbackNodePoolUpgradeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RollbackNodePoolUpgradeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.RollbackNodePoolUpgradeRequest.class, - com.google.container.v1.RollbackNodePoolUpgradeRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster to rollback.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to rollback.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object nodePoolId_; - /** - * - * - *
-   * Deprecated. The name of the node pool to rollback.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getNodePoolId() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodePoolId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the node pool to rollback.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The bytes for nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node poll to
-   * rollback upgrade.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node poll to
-   * rollback upgrade.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!getNodePoolIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!getNodePoolIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1.RollbackNodePoolUpgradeRequest)) { - return super.equals(obj); - } - com.google.container.v1.RollbackNodePoolUpgradeRequest other = - (com.google.container.v1.RollbackNodePoolUpgradeRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - if (!getNodePoolId().equals(other.getNodePoolId())) return false; - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodePoolId().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.container.v1.RollbackNodePoolUpgradeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.RollbackNodePoolUpgradeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.RollbackNodePoolUpgradeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.RollbackNodePoolUpgradeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.RollbackNodePoolUpgradeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.RollbackNodePoolUpgradeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.RollbackNodePoolUpgradeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.RollbackNodePoolUpgradeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.RollbackNodePoolUpgradeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.RollbackNodePoolUpgradeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.RollbackNodePoolUpgradeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.RollbackNodePoolUpgradeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.RollbackNodePoolUpgradeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
-   * NodePool upgrade. This will be an no-op if the last upgrade successfully
-   * completed.
-   * 
- * - * Protobuf type {@code google.container.v1.RollbackNodePoolUpgradeRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.RollbackNodePoolUpgradeRequest) - com.google.container.v1.RollbackNodePoolUpgradeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RollbackNodePoolUpgradeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RollbackNodePoolUpgradeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.RollbackNodePoolUpgradeRequest.class, - com.google.container.v1.RollbackNodePoolUpgradeRequest.Builder.class); - } - - // Construct using com.google.container.v1.RollbackNodePoolUpgradeRequest.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - nodePoolId_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_RollbackNodePoolUpgradeRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.RollbackNodePoolUpgradeRequest getDefaultInstanceForType() { - return com.google.container.v1.RollbackNodePoolUpgradeRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.RollbackNodePoolUpgradeRequest build() { - com.google.container.v1.RollbackNodePoolUpgradeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.RollbackNodePoolUpgradeRequest buildPartial() { - com.google.container.v1.RollbackNodePoolUpgradeRequest result = - new com.google.container.v1.RollbackNodePoolUpgradeRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.nodePoolId_ = nodePoolId_; - 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.container.v1.RollbackNodePoolUpgradeRequest) { - return mergeFrom((com.google.container.v1.RollbackNodePoolUpgradeRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.RollbackNodePoolUpgradeRequest other) { - if (other == com.google.container.v1.RollbackNodePoolUpgradeRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - onChanged(); - } - 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.container.v1.RollbackNodePoolUpgradeRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.container.v1.RollbackNodePoolUpgradeRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the node pool to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The nodePoolId. - */ - @java.lang.Deprecated - public java.lang.String getNodePoolId() { - java.lang.Object ref = nodePoolId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodePoolId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the node pool to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The bytes for nodePoolId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the node pool to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @param value The nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setNodePoolId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePoolId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodePoolId() { - - nodePoolId_ = getDefaultInstance().getNodePoolId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to rollback.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @param value The bytes for nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePoolId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node poll to
-     * rollback upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node poll to
-     * rollback upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node poll to
-     * rollback upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node poll to
-     * rollback upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node poll to
-     * rollback upgrade.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * - * @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.container.v1.RollbackNodePoolUpgradeRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.RollbackNodePoolUpgradeRequest) - private static final com.google.container.v1.RollbackNodePoolUpgradeRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.RollbackNodePoolUpgradeRequest(); - } - - public static com.google.container.v1.RollbackNodePoolUpgradeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RollbackNodePoolUpgradeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RollbackNodePoolUpgradeRequest(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.container.v1.RollbackNodePoolUpgradeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java deleted file mode 100644 index 9007e5f8..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java +++ /dev/null @@ -1,176 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface RollbackNodePoolUpgradeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.RollbackNodePoolUpgradeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to rollback.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to rollback.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the node pool to rollback.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The nodePoolId. - */ - @java.lang.Deprecated - java.lang.String getNodePoolId(); - /** - * - * - *
-   * Deprecated. The name of the node pool to rollback.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The bytes for nodePoolId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getNodePoolIdBytes(); - - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node poll to
-   * rollback upgrade.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node poll to
-   * rollback upgrade.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfig.java deleted file mode 100644 index df95fe1c..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfig.java +++ /dev/null @@ -1,738 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * SandboxConfig contains configurations of the sandbox to use for the node.
- * 
- * - * Protobuf type {@code google.container.v1.SandboxConfig} - */ -public final class SandboxConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.SandboxConfig) - SandboxConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use SandboxConfig.newBuilder() to construct. - private SandboxConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SandboxConfig() { - type_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SandboxConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SandboxConfig( - 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: - { - int rawValue = input.readEnum(); - - type_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SandboxConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SandboxConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SandboxConfig.class, - com.google.container.v1.SandboxConfig.Builder.class); - } - - /** - * - * - *
-   * Possible types of sandboxes.
-   * 
- * - * Protobuf enum {@code google.container.v1.SandboxConfig.Type} - */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value. This should not be used.
-     * 
- * - * UNSPECIFIED = 0; - */ - UNSPECIFIED(0), - /** - * - * - *
-     * Run sandbox using gvisor.
-     * 
- * - * GVISOR = 1; - */ - GVISOR(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value. This should not be used.
-     * 
- * - * UNSPECIFIED = 0; - */ - public static final int UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Run sandbox using gvisor.
-     * 
- * - * GVISOR = 1; - */ - public static final int GVISOR_VALUE = 1; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Type valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Type forNumber(int value) { - switch (value) { - case 0: - return UNSPECIFIED; - case 1: - return GVISOR; - 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.container.v1.SandboxConfig.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.container.v1.SandboxConfig.Type) - } - - public static final int TYPE_FIELD_NUMBER = 2; - private int type_; - /** - * - * - *
-   * Type of the sandbox to use for the node.
-   * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-   * Type of the sandbox to use for the node.
-   * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * - * @return The type. - */ - @java.lang.Override - public com.google.container.v1.SandboxConfig.Type getType() { - @SuppressWarnings("deprecation") - com.google.container.v1.SandboxConfig.Type result = - com.google.container.v1.SandboxConfig.Type.valueOf(type_); - return result == null ? com.google.container.v1.SandboxConfig.Type.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ != com.google.container.v1.SandboxConfig.Type.UNSPECIFIED.getNumber()) { - output.writeEnum(2, type_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != com.google.container.v1.SandboxConfig.Type.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); - } - 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.container.v1.SandboxConfig)) { - return super.equals(obj); - } - com.google.container.v1.SandboxConfig other = (com.google.container.v1.SandboxConfig) obj; - - if (type_ != other.type_) 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) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.SandboxConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SandboxConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SandboxConfig parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SandboxConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SandboxConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SandboxConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SandboxConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SandboxConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SandboxConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.SandboxConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SandboxConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SandboxConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.SandboxConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * SandboxConfig contains configurations of the sandbox to use for the node.
-   * 
- * - * Protobuf type {@code google.container.v1.SandboxConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SandboxConfig) - com.google.container.v1.SandboxConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SandboxConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SandboxConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SandboxConfig.class, - com.google.container.v1.SandboxConfig.Builder.class); - } - - // Construct using com.google.container.v1.SandboxConfig.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(); - type_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SandboxConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SandboxConfig getDefaultInstanceForType() { - return com.google.container.v1.SandboxConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SandboxConfig build() { - com.google.container.v1.SandboxConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SandboxConfig buildPartial() { - com.google.container.v1.SandboxConfig result = - new com.google.container.v1.SandboxConfig(this); - result.type_ = type_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.SandboxConfig) { - return mergeFrom((com.google.container.v1.SandboxConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SandboxConfig other) { - if (other == com.google.container.v1.SandboxConfig.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - 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.container.v1.SandboxConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.SandboxConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int type_ = 0; - /** - * - * - *
-     * Type of the sandbox to use for the node.
-     * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-     * Type of the sandbox to use for the node.
-     * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Type of the sandbox to use for the node.
-     * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * - * @return The type. - */ - @java.lang.Override - public com.google.container.v1.SandboxConfig.Type getType() { - @SuppressWarnings("deprecation") - com.google.container.v1.SandboxConfig.Type result = - com.google.container.v1.SandboxConfig.Type.valueOf(type_); - return result == null ? com.google.container.v1.SandboxConfig.Type.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Type of the sandbox to use for the node.
-     * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.container.v1.SandboxConfig.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Type of the sandbox to use for the node.
-     * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 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.container.v1.SandboxConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SandboxConfig) - private static final com.google.container.v1.SandboxConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SandboxConfig(); - } - - public static com.google.container.v1.SandboxConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SandboxConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SandboxConfig(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.container.v1.SandboxConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfigOrBuilder.java deleted file mode 100644 index 14fa5bc2..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfigOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface SandboxConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SandboxConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Type of the sandbox to use for the node.
-   * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - * - * - *
-   * Type of the sandbox to use for the node.
-   * 
- * - * .google.container.v1.SandboxConfig.Type type = 2; - * - * @return The type. - */ - com.google.container.v1.SandboxConfig.Type getType(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java deleted file mode 100644 index cd48a830..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java +++ /dev/null @@ -1,3313 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Kubernetes Engine service configuration.
- * 
- * - * Protobuf type {@code google.container.v1.ServerConfig} - */ -public final class ServerConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ServerConfig) - ServerConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ServerConfig.newBuilder() to construct. - private ServerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ServerConfig() { - defaultClusterVersion_ = ""; - validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - defaultImageType_ = ""; - validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - channels_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ServerConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ServerConfig( - 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(); - - defaultClusterVersion_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - validNodeVersions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - validNodeVersions_.add(s); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - defaultImageType_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - validImageTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - validImageTypes_.add(s); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - validMasterVersions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - validMasterVersions_.add(s); - break; - } - case 74: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - channels_ = - new java.util.ArrayList< - com.google.container.v1.ServerConfig.ReleaseChannelConfig>(); - mutable_bitField0_ |= 0x00000008; - } - channels_.add( - input.readMessage( - com.google.container.v1.ServerConfig.ReleaseChannelConfig.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)) { - validNodeVersions_ = validNodeVersions_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - validImageTypes_ = validImageTypes_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - validMasterVersions_ = validMasterVersions_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - channels_ = java.util.Collections.unmodifiableList(channels_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServerConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServerConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ServerConfig.class, - com.google.container.v1.ServerConfig.Builder.class); - } - - public interface ReleaseChannelConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ServerConfig.ReleaseChannelConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The release channel this configuration applies to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The enum numeric value on the wire for channel. - */ - int getChannelValue(); - /** - * - * - *
-     * The release channel this configuration applies to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The channel. - */ - com.google.container.v1.ReleaseChannel.Channel getChannel(); - - /** - * - * - *
-     * The default version for newly created clusters on the channel.
-     * 
- * - * string default_version = 2; - * - * @return The defaultVersion. - */ - java.lang.String getDefaultVersion(); - /** - * - * - *
-     * The default version for newly created clusters on the channel.
-     * 
- * - * string default_version = 2; - * - * @return The bytes for defaultVersion. - */ - com.google.protobuf.ByteString getDefaultVersionBytes(); - - /** - * - * - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * - * @return A list containing the validVersions. - */ - java.util.List getValidVersionsList(); - /** - * - * - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * - * @return The count of validVersions. - */ - int getValidVersionsCount(); - /** - * - * - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * - * @param index The index of the element to return. - * @return The validVersions at the given index. - */ - java.lang.String getValidVersions(int index); - /** - * - * - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * - * @param index The index of the value to return. - * @return The bytes of the validVersions at the given index. - */ - com.google.protobuf.ByteString getValidVersionsBytes(int index); - } - /** - * - * - *
-   * ReleaseChannelConfig exposes configuration for a release channel.
-   * 
- * - * Protobuf type {@code google.container.v1.ServerConfig.ReleaseChannelConfig} - */ - public static final class ReleaseChannelConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ServerConfig.ReleaseChannelConfig) - ReleaseChannelConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReleaseChannelConfig.newBuilder() to construct. - private ReleaseChannelConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ReleaseChannelConfig() { - channel_ = 0; - defaultVersion_ = ""; - validVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ReleaseChannelConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ReleaseChannelConfig( - 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(); - - channel_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - defaultVersion_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - validVersions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - validVersions_.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)) { - validVersions_ = validVersions_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ServerConfig.ReleaseChannelConfig.class, - com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder.class); - } - - public static final int CHANNEL_FIELD_NUMBER = 1; - private int channel_; - /** - * - * - *
-     * The release channel this configuration applies to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The enum numeric value on the wire for channel. - */ - @java.lang.Override - public int getChannelValue() { - return channel_; - } - /** - * - * - *
-     * The release channel this configuration applies to.
-     * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The channel. - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannel.Channel getChannel() { - @SuppressWarnings("deprecation") - com.google.container.v1.ReleaseChannel.Channel result = - com.google.container.v1.ReleaseChannel.Channel.valueOf(channel_); - return result == null ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED : result; - } - - public static final int DEFAULT_VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object defaultVersion_; - /** - * - * - *
-     * The default version for newly created clusters on the channel.
-     * 
- * - * string default_version = 2; - * - * @return The defaultVersion. - */ - @java.lang.Override - public java.lang.String getDefaultVersion() { - java.lang.Object ref = defaultVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultVersion_ = s; - return s; - } - } - /** - * - * - *
-     * The default version for newly created clusters on the channel.
-     * 
- * - * string default_version = 2; - * - * @return The bytes for defaultVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDefaultVersionBytes() { - java.lang.Object ref = defaultVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALID_VERSIONS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList validVersions_; - /** - * - * - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * - * @return A list containing the validVersions. - */ - public com.google.protobuf.ProtocolStringList getValidVersionsList() { - return validVersions_; - } - /** - * - * - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * - * @return The count of validVersions. - */ - public int getValidVersionsCount() { - return validVersions_.size(); - } - /** - * - * - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * - * @param index The index of the element to return. - * @return The validVersions at the given index. - */ - public java.lang.String getValidVersions(int index) { - return validVersions_.get(index); - } - /** - * - * - *
-     * List of valid versions for the channel.
-     * 
- * - * repeated string valid_versions = 4; - * - * @param index The index of the value to return. - * @return The bytes of the validVersions at the given index. - */ - public com.google.protobuf.ByteString getValidVersionsBytes(int index) { - return validVersions_.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 (channel_ != com.google.container.v1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { - output.writeEnum(1, channel_); - } - if (!getDefaultVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultVersion_); - } - for (int i = 0; i < validVersions_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, validVersions_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (channel_ != com.google.container.v1.ReleaseChannel.Channel.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, channel_); - } - if (!getDefaultVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultVersion_); - } - { - int dataSize = 0; - for (int i = 0; i < validVersions_.size(); i++) { - dataSize += computeStringSizeNoTag(validVersions_.getRaw(i)); - } - size += dataSize; - size += 1 * getValidVersionsList().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.container.v1.ServerConfig.ReleaseChannelConfig)) { - return super.equals(obj); - } - com.google.container.v1.ServerConfig.ReleaseChannelConfig other = - (com.google.container.v1.ServerConfig.ReleaseChannelConfig) obj; - - if (channel_ != other.channel_) return false; - if (!getDefaultVersion().equals(other.getDefaultVersion())) return false; - if (!getValidVersionsList().equals(other.getValidVersionsList())) 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) + CHANNEL_FIELD_NUMBER; - hash = (53 * hash) + channel_; - hash = (37 * hash) + DEFAULT_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getDefaultVersion().hashCode(); - if (getValidVersionsCount() > 0) { - hash = (37 * hash) + VALID_VERSIONS_FIELD_NUMBER; - hash = (53 * hash) + getValidVersionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.ServerConfig.ReleaseChannelConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * ReleaseChannelConfig exposes configuration for a release channel.
-     * 
- * - * Protobuf type {@code google.container.v1.ServerConfig.ReleaseChannelConfig} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ServerConfig.ReleaseChannelConfig) - com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ServerConfig.ReleaseChannelConfig.class, - com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder.class); - } - - // Construct using com.google.container.v1.ServerConfig.ReleaseChannelConfig.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(); - channel_ = 0; - - defaultVersion_ = ""; - - validVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServerConfig_ReleaseChannelConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ServerConfig.ReleaseChannelConfig getDefaultInstanceForType() { - return com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ServerConfig.ReleaseChannelConfig build() { - com.google.container.v1.ServerConfig.ReleaseChannelConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ServerConfig.ReleaseChannelConfig buildPartial() { - com.google.container.v1.ServerConfig.ReleaseChannelConfig result = - new com.google.container.v1.ServerConfig.ReleaseChannelConfig(this); - int from_bitField0_ = bitField0_; - result.channel_ = channel_; - result.defaultVersion_ = defaultVersion_; - if (((bitField0_ & 0x00000001) != 0)) { - validVersions_ = validVersions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.validVersions_ = validVersions_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ServerConfig.ReleaseChannelConfig) { - return mergeFrom((com.google.container.v1.ServerConfig.ReleaseChannelConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ServerConfig.ReleaseChannelConfig other) { - if (other == com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()) - return this; - if (other.channel_ != 0) { - setChannelValue(other.getChannelValue()); - } - if (!other.getDefaultVersion().isEmpty()) { - defaultVersion_ = other.defaultVersion_; - onChanged(); - } - if (!other.validVersions_.isEmpty()) { - if (validVersions_.isEmpty()) { - validVersions_ = other.validVersions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValidVersionsIsMutable(); - validVersions_.addAll(other.validVersions_); - } - 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.container.v1.ServerConfig.ReleaseChannelConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.container.v1.ServerConfig.ReleaseChannelConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private int channel_ = 0; - /** - * - * - *
-       * The release channel this configuration applies to.
-       * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The enum numeric value on the wire for channel. - */ - @java.lang.Override - public int getChannelValue() { - return channel_; - } - /** - * - * - *
-       * The release channel this configuration applies to.
-       * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @param value The enum numeric value on the wire for channel to set. - * @return This builder for chaining. - */ - public Builder setChannelValue(int value) { - - channel_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The release channel this configuration applies to.
-       * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return The channel. - */ - @java.lang.Override - public com.google.container.v1.ReleaseChannel.Channel getChannel() { - @SuppressWarnings("deprecation") - com.google.container.v1.ReleaseChannel.Channel result = - com.google.container.v1.ReleaseChannel.Channel.valueOf(channel_); - return result == null - ? com.google.container.v1.ReleaseChannel.Channel.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * The release channel this configuration applies to.
-       * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @param value The channel to set. - * @return This builder for chaining. - */ - public Builder setChannel(com.google.container.v1.ReleaseChannel.Channel value) { - if (value == null) { - throw new NullPointerException(); - } - - channel_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-       * The release channel this configuration applies to.
-       * 
- * - * .google.container.v1.ReleaseChannel.Channel channel = 1; - * - * @return This builder for chaining. - */ - public Builder clearChannel() { - - channel_ = 0; - onChanged(); - return this; - } - - private java.lang.Object defaultVersion_ = ""; - /** - * - * - *
-       * The default version for newly created clusters on the channel.
-       * 
- * - * string default_version = 2; - * - * @return The defaultVersion. - */ - public java.lang.String getDefaultVersion() { - java.lang.Object ref = defaultVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * The default version for newly created clusters on the channel.
-       * 
- * - * string default_version = 2; - * - * @return The bytes for defaultVersion. - */ - public com.google.protobuf.ByteString getDefaultVersionBytes() { - java.lang.Object ref = defaultVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * The default version for newly created clusters on the channel.
-       * 
- * - * string default_version = 2; - * - * @param value The defaultVersion to set. - * @return This builder for chaining. - */ - public Builder setDefaultVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - defaultVersion_ = value; - onChanged(); - return this; - } - /** - * - * - *
-       * The default version for newly created clusters on the channel.
-       * 
- * - * string default_version = 2; - * - * @return This builder for chaining. - */ - public Builder clearDefaultVersion() { - - defaultVersion_ = getDefaultInstance().getDefaultVersion(); - onChanged(); - return this; - } - /** - * - * - *
-       * The default version for newly created clusters on the channel.
-       * 
- * - * string default_version = 2; - * - * @param value The bytes for defaultVersion to set. - * @return This builder for chaining. - */ - public Builder setDefaultVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - defaultVersion_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList validVersions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureValidVersionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - validVersions_ = new com.google.protobuf.LazyStringArrayList(validVersions_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * - * @return A list containing the validVersions. - */ - public com.google.protobuf.ProtocolStringList getValidVersionsList() { - return validVersions_.getUnmodifiableView(); - } - /** - * - * - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * - * @return The count of validVersions. - */ - public int getValidVersionsCount() { - return validVersions_.size(); - } - /** - * - * - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * - * @param index The index of the element to return. - * @return The validVersions at the given index. - */ - public java.lang.String getValidVersions(int index) { - return validVersions_.get(index); - } - /** - * - * - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * - * @param index The index of the value to return. - * @return The bytes of the validVersions at the given index. - */ - public com.google.protobuf.ByteString getValidVersionsBytes(int index) { - return validVersions_.getByteString(index); - } - /** - * - * - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * - * @param index The index to set the value at. - * @param value The validVersions to set. - * @return This builder for chaining. - */ - public Builder setValidVersions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidVersionsIsMutable(); - validVersions_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * - * @param value The validVersions to add. - * @return This builder for chaining. - */ - public Builder addValidVersions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidVersionsIsMutable(); - validVersions_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * - * @param values The validVersions to add. - * @return This builder for chaining. - */ - public Builder addAllValidVersions(java.lang.Iterable values) { - ensureValidVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validVersions_); - onChanged(); - return this; - } - /** - * - * - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * - * @return This builder for chaining. - */ - public Builder clearValidVersions() { - validVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * List of valid versions for the channel.
-       * 
- * - * repeated string valid_versions = 4; - * - * @param value The bytes of the validVersions to add. - * @return This builder for chaining. - */ - public Builder addValidVersionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValidVersionsIsMutable(); - validVersions_.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.container.v1.ServerConfig.ReleaseChannelConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ServerConfig.ReleaseChannelConfig) - private static final com.google.container.v1.ServerConfig.ReleaseChannelConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ServerConfig.ReleaseChannelConfig(); - } - - public static com.google.container.v1.ServerConfig.ReleaseChannelConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReleaseChannelConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReleaseChannelConfig(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.container.v1.ServerConfig.ReleaseChannelConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int DEFAULT_CLUSTER_VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object defaultClusterVersion_; - /** - * - * - *
-   * Version of Kubernetes the service deploys by default.
-   * 
- * - * string default_cluster_version = 1; - * - * @return The defaultClusterVersion. - */ - @java.lang.Override - public java.lang.String getDefaultClusterVersion() { - java.lang.Object ref = defaultClusterVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultClusterVersion_ = s; - return s; - } - } - /** - * - * - *
-   * Version of Kubernetes the service deploys by default.
-   * 
- * - * string default_cluster_version = 1; - * - * @return The bytes for defaultClusterVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDefaultClusterVersionBytes() { - java.lang.Object ref = defaultClusterVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultClusterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALID_NODE_VERSIONS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList validNodeVersions_; - /** - * - * - *
-   * List of valid node upgrade target versions, in descending order.
-   * 
- * - * repeated string valid_node_versions = 3; - * - * @return A list containing the validNodeVersions. - */ - public com.google.protobuf.ProtocolStringList getValidNodeVersionsList() { - return validNodeVersions_; - } - /** - * - * - *
-   * List of valid node upgrade target versions, in descending order.
-   * 
- * - * repeated string valid_node_versions = 3; - * - * @return The count of validNodeVersions. - */ - public int getValidNodeVersionsCount() { - return validNodeVersions_.size(); - } - /** - * - * - *
-   * List of valid node upgrade target versions, in descending order.
-   * 
- * - * repeated string valid_node_versions = 3; - * - * @param index The index of the element to return. - * @return The validNodeVersions at the given index. - */ - public java.lang.String getValidNodeVersions(int index) { - return validNodeVersions_.get(index); - } - /** - * - * - *
-   * List of valid node upgrade target versions, in descending order.
-   * 
- * - * repeated string valid_node_versions = 3; - * - * @param index The index of the value to return. - * @return The bytes of the validNodeVersions at the given index. - */ - public com.google.protobuf.ByteString getValidNodeVersionsBytes(int index) { - return validNodeVersions_.getByteString(index); - } - - public static final int DEFAULT_IMAGE_TYPE_FIELD_NUMBER = 4; - private volatile java.lang.Object defaultImageType_; - /** - * - * - *
-   * Default image type.
-   * 
- * - * string default_image_type = 4; - * - * @return The defaultImageType. - */ - @java.lang.Override - public java.lang.String getDefaultImageType() { - java.lang.Object ref = defaultImageType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultImageType_ = s; - return s; - } - } - /** - * - * - *
-   * Default image type.
-   * 
- * - * string default_image_type = 4; - * - * @return The bytes for defaultImageType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDefaultImageTypeBytes() { - java.lang.Object ref = defaultImageType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultImageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALID_IMAGE_TYPES_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList validImageTypes_; - /** - * - * - *
-   * List of valid image types.
-   * 
- * - * repeated string valid_image_types = 5; - * - * @return A list containing the validImageTypes. - */ - public com.google.protobuf.ProtocolStringList getValidImageTypesList() { - return validImageTypes_; - } - /** - * - * - *
-   * List of valid image types.
-   * 
- * - * repeated string valid_image_types = 5; - * - * @return The count of validImageTypes. - */ - public int getValidImageTypesCount() { - return validImageTypes_.size(); - } - /** - * - * - *
-   * List of valid image types.
-   * 
- * - * repeated string valid_image_types = 5; - * - * @param index The index of the element to return. - * @return The validImageTypes at the given index. - */ - public java.lang.String getValidImageTypes(int index) { - return validImageTypes_.get(index); - } - /** - * - * - *
-   * List of valid image types.
-   * 
- * - * repeated string valid_image_types = 5; - * - * @param index The index of the value to return. - * @return The bytes of the validImageTypes at the given index. - */ - public com.google.protobuf.ByteString getValidImageTypesBytes(int index) { - return validImageTypes_.getByteString(index); - } - - public static final int VALID_MASTER_VERSIONS_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList validMasterVersions_; - /** - * - * - *
-   * List of valid master versions, in descending order.
-   * 
- * - * repeated string valid_master_versions = 6; - * - * @return A list containing the validMasterVersions. - */ - public com.google.protobuf.ProtocolStringList getValidMasterVersionsList() { - return validMasterVersions_; - } - /** - * - * - *
-   * List of valid master versions, in descending order.
-   * 
- * - * repeated string valid_master_versions = 6; - * - * @return The count of validMasterVersions. - */ - public int getValidMasterVersionsCount() { - return validMasterVersions_.size(); - } - /** - * - * - *
-   * List of valid master versions, in descending order.
-   * 
- * - * repeated string valid_master_versions = 6; - * - * @param index The index of the element to return. - * @return The validMasterVersions at the given index. - */ - public java.lang.String getValidMasterVersions(int index) { - return validMasterVersions_.get(index); - } - /** - * - * - *
-   * List of valid master versions, in descending order.
-   * 
- * - * repeated string valid_master_versions = 6; - * - * @param index The index of the value to return. - * @return The bytes of the validMasterVersions at the given index. - */ - public com.google.protobuf.ByteString getValidMasterVersionsBytes(int index) { - return validMasterVersions_.getByteString(index); - } - - public static final int CHANNELS_FIELD_NUMBER = 9; - private java.util.List channels_; - /** - * - * - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - @java.lang.Override - public java.util.List - getChannelsList() { - return channels_; - } - /** - * - * - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - @java.lang.Override - public java.util.List< - ? extends com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder> - getChannelsOrBuilderList() { - return channels_; - } - /** - * - * - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - @java.lang.Override - public int getChannelsCount() { - return channels_.size(); - } - /** - * - * - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - @java.lang.Override - public com.google.container.v1.ServerConfig.ReleaseChannelConfig getChannels(int index) { - return channels_.get(index); - } - /** - * - * - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - @java.lang.Override - public com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder getChannelsOrBuilder( - int index) { - return channels_.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 (!getDefaultClusterVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, defaultClusterVersion_); - } - for (int i = 0; i < validNodeVersions_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, validNodeVersions_.getRaw(i)); - } - if (!getDefaultImageTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, defaultImageType_); - } - for (int i = 0; i < validImageTypes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, validImageTypes_.getRaw(i)); - } - for (int i = 0; i < validMasterVersions_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, validMasterVersions_.getRaw(i)); - } - for (int i = 0; i < channels_.size(); i++) { - output.writeMessage(9, channels_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDefaultClusterVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, defaultClusterVersion_); - } - { - int dataSize = 0; - for (int i = 0; i < validNodeVersions_.size(); i++) { - dataSize += computeStringSizeNoTag(validNodeVersions_.getRaw(i)); - } - size += dataSize; - size += 1 * getValidNodeVersionsList().size(); - } - if (!getDefaultImageTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, defaultImageType_); - } - { - int dataSize = 0; - for (int i = 0; i < validImageTypes_.size(); i++) { - dataSize += computeStringSizeNoTag(validImageTypes_.getRaw(i)); - } - size += dataSize; - size += 1 * getValidImageTypesList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < validMasterVersions_.size(); i++) { - dataSize += computeStringSizeNoTag(validMasterVersions_.getRaw(i)); - } - size += dataSize; - size += 1 * getValidMasterVersionsList().size(); - } - for (int i = 0; i < channels_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, channels_.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.container.v1.ServerConfig)) { - return super.equals(obj); - } - com.google.container.v1.ServerConfig other = (com.google.container.v1.ServerConfig) obj; - - if (!getDefaultClusterVersion().equals(other.getDefaultClusterVersion())) return false; - if (!getValidNodeVersionsList().equals(other.getValidNodeVersionsList())) return false; - if (!getDefaultImageType().equals(other.getDefaultImageType())) return false; - if (!getValidImageTypesList().equals(other.getValidImageTypesList())) return false; - if (!getValidMasterVersionsList().equals(other.getValidMasterVersionsList())) return false; - if (!getChannelsList().equals(other.getChannelsList())) 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) + DEFAULT_CLUSTER_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getDefaultClusterVersion().hashCode(); - if (getValidNodeVersionsCount() > 0) { - hash = (37 * hash) + VALID_NODE_VERSIONS_FIELD_NUMBER; - hash = (53 * hash) + getValidNodeVersionsList().hashCode(); - } - hash = (37 * hash) + DEFAULT_IMAGE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getDefaultImageType().hashCode(); - if (getValidImageTypesCount() > 0) { - hash = (37 * hash) + VALID_IMAGE_TYPES_FIELD_NUMBER; - hash = (53 * hash) + getValidImageTypesList().hashCode(); - } - if (getValidMasterVersionsCount() > 0) { - hash = (37 * hash) + VALID_MASTER_VERSIONS_FIELD_NUMBER; - hash = (53 * hash) + getValidMasterVersionsList().hashCode(); - } - if (getChannelsCount() > 0) { - hash = (37 * hash) + CHANNELS_FIELD_NUMBER; - hash = (53 * hash) + getChannelsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ServerConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ServerConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ServerConfig parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ServerConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ServerConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ServerConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ServerConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ServerConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ServerConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ServerConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ServerConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ServerConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ServerConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Kubernetes Engine service configuration.
-   * 
- * - * Protobuf type {@code google.container.v1.ServerConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ServerConfig) - com.google.container.v1.ServerConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServerConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServerConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ServerConfig.class, - com.google.container.v1.ServerConfig.Builder.class); - } - - // Construct using com.google.container.v1.ServerConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getChannelsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - defaultClusterVersion_ = ""; - - validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - defaultImageType_ = ""; - - validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (channelsBuilder_ == null) { - channels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - channelsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ServerConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ServerConfig getDefaultInstanceForType() { - return com.google.container.v1.ServerConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ServerConfig build() { - com.google.container.v1.ServerConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ServerConfig buildPartial() { - com.google.container.v1.ServerConfig result = new com.google.container.v1.ServerConfig(this); - int from_bitField0_ = bitField0_; - result.defaultClusterVersion_ = defaultClusterVersion_; - if (((bitField0_ & 0x00000001) != 0)) { - validNodeVersions_ = validNodeVersions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.validNodeVersions_ = validNodeVersions_; - result.defaultImageType_ = defaultImageType_; - if (((bitField0_ & 0x00000002) != 0)) { - validImageTypes_ = validImageTypes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.validImageTypes_ = validImageTypes_; - if (((bitField0_ & 0x00000004) != 0)) { - validMasterVersions_ = validMasterVersions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.validMasterVersions_ = validMasterVersions_; - if (channelsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - channels_ = java.util.Collections.unmodifiableList(channels_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.channels_ = channels_; - } else { - result.channels_ = channelsBuilder_.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.container.v1.ServerConfig) { - return mergeFrom((com.google.container.v1.ServerConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ServerConfig other) { - if (other == com.google.container.v1.ServerConfig.getDefaultInstance()) return this; - if (!other.getDefaultClusterVersion().isEmpty()) { - defaultClusterVersion_ = other.defaultClusterVersion_; - onChanged(); - } - if (!other.validNodeVersions_.isEmpty()) { - if (validNodeVersions_.isEmpty()) { - validNodeVersions_ = other.validNodeVersions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValidNodeVersionsIsMutable(); - validNodeVersions_.addAll(other.validNodeVersions_); - } - onChanged(); - } - if (!other.getDefaultImageType().isEmpty()) { - defaultImageType_ = other.defaultImageType_; - onChanged(); - } - if (!other.validImageTypes_.isEmpty()) { - if (validImageTypes_.isEmpty()) { - validImageTypes_ = other.validImageTypes_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureValidImageTypesIsMutable(); - validImageTypes_.addAll(other.validImageTypes_); - } - onChanged(); - } - if (!other.validMasterVersions_.isEmpty()) { - if (validMasterVersions_.isEmpty()) { - validMasterVersions_ = other.validMasterVersions_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureValidMasterVersionsIsMutable(); - validMasterVersions_.addAll(other.validMasterVersions_); - } - onChanged(); - } - if (channelsBuilder_ == null) { - if (!other.channels_.isEmpty()) { - if (channels_.isEmpty()) { - channels_ = other.channels_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureChannelsIsMutable(); - channels_.addAll(other.channels_); - } - onChanged(); - } - } else { - if (!other.channels_.isEmpty()) { - if (channelsBuilder_.isEmpty()) { - channelsBuilder_.dispose(); - channelsBuilder_ = null; - channels_ = other.channels_; - bitField0_ = (bitField0_ & ~0x00000008); - channelsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getChannelsFieldBuilder() - : null; - } else { - channelsBuilder_.addAllMessages(other.channels_); - } - } - } - 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.container.v1.ServerConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.ServerConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object defaultClusterVersion_ = ""; - /** - * - * - *
-     * Version of Kubernetes the service deploys by default.
-     * 
- * - * string default_cluster_version = 1; - * - * @return The defaultClusterVersion. - */ - public java.lang.String getDefaultClusterVersion() { - java.lang.Object ref = defaultClusterVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultClusterVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Version of Kubernetes the service deploys by default.
-     * 
- * - * string default_cluster_version = 1; - * - * @return The bytes for defaultClusterVersion. - */ - public com.google.protobuf.ByteString getDefaultClusterVersionBytes() { - java.lang.Object ref = defaultClusterVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultClusterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Version of Kubernetes the service deploys by default.
-     * 
- * - * string default_cluster_version = 1; - * - * @param value The defaultClusterVersion to set. - * @return This builder for chaining. - */ - public Builder setDefaultClusterVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - defaultClusterVersion_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Version of Kubernetes the service deploys by default.
-     * 
- * - * string default_cluster_version = 1; - * - * @return This builder for chaining. - */ - public Builder clearDefaultClusterVersion() { - - defaultClusterVersion_ = getDefaultInstance().getDefaultClusterVersion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Version of Kubernetes the service deploys by default.
-     * 
- * - * string default_cluster_version = 1; - * - * @param value The bytes for defaultClusterVersion to set. - * @return This builder for chaining. - */ - public Builder setDefaultClusterVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - defaultClusterVersion_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList validNodeVersions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureValidNodeVersionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - validNodeVersions_ = new com.google.protobuf.LazyStringArrayList(validNodeVersions_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * - * @return A list containing the validNodeVersions. - */ - public com.google.protobuf.ProtocolStringList getValidNodeVersionsList() { - return validNodeVersions_.getUnmodifiableView(); - } - /** - * - * - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * - * @return The count of validNodeVersions. - */ - public int getValidNodeVersionsCount() { - return validNodeVersions_.size(); - } - /** - * - * - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * - * @param index The index of the element to return. - * @return The validNodeVersions at the given index. - */ - public java.lang.String getValidNodeVersions(int index) { - return validNodeVersions_.get(index); - } - /** - * - * - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * - * @param index The index of the value to return. - * @return The bytes of the validNodeVersions at the given index. - */ - public com.google.protobuf.ByteString getValidNodeVersionsBytes(int index) { - return validNodeVersions_.getByteString(index); - } - /** - * - * - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * - * @param index The index to set the value at. - * @param value The validNodeVersions to set. - * @return This builder for chaining. - */ - public Builder setValidNodeVersions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidNodeVersionsIsMutable(); - validNodeVersions_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * - * @param value The validNodeVersions to add. - * @return This builder for chaining. - */ - public Builder addValidNodeVersions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidNodeVersionsIsMutable(); - validNodeVersions_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * - * @param values The validNodeVersions to add. - * @return This builder for chaining. - */ - public Builder addAllValidNodeVersions(java.lang.Iterable values) { - ensureValidNodeVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validNodeVersions_); - onChanged(); - return this; - } - /** - * - * - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * - * @return This builder for chaining. - */ - public Builder clearValidNodeVersions() { - validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * List of valid node upgrade target versions, in descending order.
-     * 
- * - * repeated string valid_node_versions = 3; - * - * @param value The bytes of the validNodeVersions to add. - * @return This builder for chaining. - */ - public Builder addValidNodeVersionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValidNodeVersionsIsMutable(); - validNodeVersions_.add(value); - onChanged(); - return this; - } - - private java.lang.Object defaultImageType_ = ""; - /** - * - * - *
-     * Default image type.
-     * 
- * - * string default_image_type = 4; - * - * @return The defaultImageType. - */ - public java.lang.String getDefaultImageType() { - java.lang.Object ref = defaultImageType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultImageType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Default image type.
-     * 
- * - * string default_image_type = 4; - * - * @return The bytes for defaultImageType. - */ - public com.google.protobuf.ByteString getDefaultImageTypeBytes() { - java.lang.Object ref = defaultImageType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultImageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Default image type.
-     * 
- * - * string default_image_type = 4; - * - * @param value The defaultImageType to set. - * @return This builder for chaining. - */ - public Builder setDefaultImageType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - defaultImageType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Default image type.
-     * 
- * - * string default_image_type = 4; - * - * @return This builder for chaining. - */ - public Builder clearDefaultImageType() { - - defaultImageType_ = getDefaultInstance().getDefaultImageType(); - onChanged(); - return this; - } - /** - * - * - *
-     * Default image type.
-     * 
- * - * string default_image_type = 4; - * - * @param value The bytes for defaultImageType to set. - * @return This builder for chaining. - */ - public Builder setDefaultImageTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - defaultImageType_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList validImageTypes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureValidImageTypesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - validImageTypes_ = new com.google.protobuf.LazyStringArrayList(validImageTypes_); - bitField0_ |= 0x00000002; - } - } - /** - * - * - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * - * @return A list containing the validImageTypes. - */ - public com.google.protobuf.ProtocolStringList getValidImageTypesList() { - return validImageTypes_.getUnmodifiableView(); - } - /** - * - * - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * - * @return The count of validImageTypes. - */ - public int getValidImageTypesCount() { - return validImageTypes_.size(); - } - /** - * - * - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * - * @param index The index of the element to return. - * @return The validImageTypes at the given index. - */ - public java.lang.String getValidImageTypes(int index) { - return validImageTypes_.get(index); - } - /** - * - * - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * - * @param index The index of the value to return. - * @return The bytes of the validImageTypes at the given index. - */ - public com.google.protobuf.ByteString getValidImageTypesBytes(int index) { - return validImageTypes_.getByteString(index); - } - /** - * - * - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * - * @param index The index to set the value at. - * @param value The validImageTypes to set. - * @return This builder for chaining. - */ - public Builder setValidImageTypes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidImageTypesIsMutable(); - validImageTypes_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * - * @param value The validImageTypes to add. - * @return This builder for chaining. - */ - public Builder addValidImageTypes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidImageTypesIsMutable(); - validImageTypes_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * - * @param values The validImageTypes to add. - * @return This builder for chaining. - */ - public Builder addAllValidImageTypes(java.lang.Iterable values) { - ensureValidImageTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validImageTypes_); - onChanged(); - return this; - } - /** - * - * - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * - * @return This builder for chaining. - */ - public Builder clearValidImageTypes() { - validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * List of valid image types.
-     * 
- * - * repeated string valid_image_types = 5; - * - * @param value The bytes of the validImageTypes to add. - * @return This builder for chaining. - */ - public Builder addValidImageTypesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValidImageTypesIsMutable(); - validImageTypes_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList validMasterVersions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureValidMasterVersionsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - validMasterVersions_ = new com.google.protobuf.LazyStringArrayList(validMasterVersions_); - bitField0_ |= 0x00000004; - } - } - /** - * - * - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * - * @return A list containing the validMasterVersions. - */ - public com.google.protobuf.ProtocolStringList getValidMasterVersionsList() { - return validMasterVersions_.getUnmodifiableView(); - } - /** - * - * - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * - * @return The count of validMasterVersions. - */ - public int getValidMasterVersionsCount() { - return validMasterVersions_.size(); - } - /** - * - * - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * - * @param index The index of the element to return. - * @return The validMasterVersions at the given index. - */ - public java.lang.String getValidMasterVersions(int index) { - return validMasterVersions_.get(index); - } - /** - * - * - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * - * @param index The index of the value to return. - * @return The bytes of the validMasterVersions at the given index. - */ - public com.google.protobuf.ByteString getValidMasterVersionsBytes(int index) { - return validMasterVersions_.getByteString(index); - } - /** - * - * - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * - * @param index The index to set the value at. - * @param value The validMasterVersions to set. - * @return This builder for chaining. - */ - public Builder setValidMasterVersions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidMasterVersionsIsMutable(); - validMasterVersions_.set(index, value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * - * @param value The validMasterVersions to add. - * @return This builder for chaining. - */ - public Builder addValidMasterVersions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValidMasterVersionsIsMutable(); - validMasterVersions_.add(value); - onChanged(); - return this; - } - /** - * - * - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * - * @param values The validMasterVersions to add. - * @return This builder for chaining. - */ - public Builder addAllValidMasterVersions(java.lang.Iterable values) { - ensureValidMasterVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validMasterVersions_); - onChanged(); - return this; - } - /** - * - * - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * - * @return This builder for chaining. - */ - public Builder clearValidMasterVersions() { - validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * List of valid master versions, in descending order.
-     * 
- * - * repeated string valid_master_versions = 6; - * - * @param value The bytes of the validMasterVersions to add. - * @return This builder for chaining. - */ - public Builder addValidMasterVersionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValidMasterVersionsIsMutable(); - validMasterVersions_.add(value); - onChanged(); - return this; - } - - private java.util.List channels_ = - java.util.Collections.emptyList(); - - private void ensureChannelsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - channels_ = - new java.util.ArrayList( - channels_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.ServerConfig.ReleaseChannelConfig, - com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder, - com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder> - channelsBuilder_; - - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public java.util.List - getChannelsList() { - if (channelsBuilder_ == null) { - return java.util.Collections.unmodifiableList(channels_); - } else { - return channelsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public int getChannelsCount() { - if (channelsBuilder_ == null) { - return channels_.size(); - } else { - return channelsBuilder_.getCount(); - } - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public com.google.container.v1.ServerConfig.ReleaseChannelConfig getChannels(int index) { - if (channelsBuilder_ == null) { - return channels_.get(index); - } else { - return channelsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder setChannels( - int index, com.google.container.v1.ServerConfig.ReleaseChannelConfig value) { - if (channelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelsIsMutable(); - channels_.set(index, value); - onChanged(); - } else { - channelsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder setChannels( - int index, - com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.set(index, builderForValue.build()); - onChanged(); - } else { - channelsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder addChannels(com.google.container.v1.ServerConfig.ReleaseChannelConfig value) { - if (channelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelsIsMutable(); - channels_.add(value); - onChanged(); - } else { - channelsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder addChannels( - int index, com.google.container.v1.ServerConfig.ReleaseChannelConfig value) { - if (channelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelsIsMutable(); - channels_.add(index, value); - onChanged(); - } else { - channelsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder addChannels( - com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.add(builderForValue.build()); - onChanged(); - } else { - channelsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder addChannels( - int index, - com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder builderForValue) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.add(index, builderForValue.build()); - onChanged(); - } else { - channelsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder addAllChannels( - java.lang.Iterable - values) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, channels_); - onChanged(); - } else { - channelsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder clearChannels() { - if (channelsBuilder_ == null) { - channels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - channelsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public Builder removeChannels(int index) { - if (channelsBuilder_ == null) { - ensureChannelsIsMutable(); - channels_.remove(index); - onChanged(); - } else { - channelsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder getChannelsBuilder( - int index) { - return getChannelsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder getChannelsOrBuilder( - int index) { - if (channelsBuilder_ == null) { - return channels_.get(index); - } else { - return channelsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public java.util.List< - ? extends com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder> - getChannelsOrBuilderList() { - if (channelsBuilder_ != null) { - return channelsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(channels_); - } - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder addChannelsBuilder() { - return getChannelsFieldBuilder() - .addBuilder( - com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()); - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder addChannelsBuilder( - int index) { - return getChannelsFieldBuilder() - .addBuilder( - index, - com.google.container.v1.ServerConfig.ReleaseChannelConfig.getDefaultInstance()); - } - /** - * - * - *
-     * List of release channel configurations.
-     * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - public java.util.List - getChannelsBuilderList() { - return getChannelsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.ServerConfig.ReleaseChannelConfig, - com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder, - com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder> - getChannelsFieldBuilder() { - if (channelsBuilder_ == null) { - channelsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.ServerConfig.ReleaseChannelConfig, - com.google.container.v1.ServerConfig.ReleaseChannelConfig.Builder, - com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder>( - channels_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); - channels_ = null; - } - return channelsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.ServerConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ServerConfig) - private static final com.google.container.v1.ServerConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ServerConfig(); - } - - public static com.google.container.v1.ServerConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServerConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ServerConfig(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.container.v1.ServerConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfigOrBuilder.java deleted file mode 100644 index e9170ae7..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfigOrBuilder.java +++ /dev/null @@ -1,281 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ServerConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ServerConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Version of Kubernetes the service deploys by default.
-   * 
- * - * string default_cluster_version = 1; - * - * @return The defaultClusterVersion. - */ - java.lang.String getDefaultClusterVersion(); - /** - * - * - *
-   * Version of Kubernetes the service deploys by default.
-   * 
- * - * string default_cluster_version = 1; - * - * @return The bytes for defaultClusterVersion. - */ - com.google.protobuf.ByteString getDefaultClusterVersionBytes(); - - /** - * - * - *
-   * List of valid node upgrade target versions, in descending order.
-   * 
- * - * repeated string valid_node_versions = 3; - * - * @return A list containing the validNodeVersions. - */ - java.util.List getValidNodeVersionsList(); - /** - * - * - *
-   * List of valid node upgrade target versions, in descending order.
-   * 
- * - * repeated string valid_node_versions = 3; - * - * @return The count of validNodeVersions. - */ - int getValidNodeVersionsCount(); - /** - * - * - *
-   * List of valid node upgrade target versions, in descending order.
-   * 
- * - * repeated string valid_node_versions = 3; - * - * @param index The index of the element to return. - * @return The validNodeVersions at the given index. - */ - java.lang.String getValidNodeVersions(int index); - /** - * - * - *
-   * List of valid node upgrade target versions, in descending order.
-   * 
- * - * repeated string valid_node_versions = 3; - * - * @param index The index of the value to return. - * @return The bytes of the validNodeVersions at the given index. - */ - com.google.protobuf.ByteString getValidNodeVersionsBytes(int index); - - /** - * - * - *
-   * Default image type.
-   * 
- * - * string default_image_type = 4; - * - * @return The defaultImageType. - */ - java.lang.String getDefaultImageType(); - /** - * - * - *
-   * Default image type.
-   * 
- * - * string default_image_type = 4; - * - * @return The bytes for defaultImageType. - */ - com.google.protobuf.ByteString getDefaultImageTypeBytes(); - - /** - * - * - *
-   * List of valid image types.
-   * 
- * - * repeated string valid_image_types = 5; - * - * @return A list containing the validImageTypes. - */ - java.util.List getValidImageTypesList(); - /** - * - * - *
-   * List of valid image types.
-   * 
- * - * repeated string valid_image_types = 5; - * - * @return The count of validImageTypes. - */ - int getValidImageTypesCount(); - /** - * - * - *
-   * List of valid image types.
-   * 
- * - * repeated string valid_image_types = 5; - * - * @param index The index of the element to return. - * @return The validImageTypes at the given index. - */ - java.lang.String getValidImageTypes(int index); - /** - * - * - *
-   * List of valid image types.
-   * 
- * - * repeated string valid_image_types = 5; - * - * @param index The index of the value to return. - * @return The bytes of the validImageTypes at the given index. - */ - com.google.protobuf.ByteString getValidImageTypesBytes(int index); - - /** - * - * - *
-   * List of valid master versions, in descending order.
-   * 
- * - * repeated string valid_master_versions = 6; - * - * @return A list containing the validMasterVersions. - */ - java.util.List getValidMasterVersionsList(); - /** - * - * - *
-   * List of valid master versions, in descending order.
-   * 
- * - * repeated string valid_master_versions = 6; - * - * @return The count of validMasterVersions. - */ - int getValidMasterVersionsCount(); - /** - * - * - *
-   * List of valid master versions, in descending order.
-   * 
- * - * repeated string valid_master_versions = 6; - * - * @param index The index of the element to return. - * @return The validMasterVersions at the given index. - */ - java.lang.String getValidMasterVersions(int index); - /** - * - * - *
-   * List of valid master versions, in descending order.
-   * 
- * - * repeated string valid_master_versions = 6; - * - * @param index The index of the value to return. - * @return The bytes of the validMasterVersions at the given index. - */ - com.google.protobuf.ByteString getValidMasterVersionsBytes(int index); - - /** - * - * - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - java.util.List getChannelsList(); - /** - * - * - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - com.google.container.v1.ServerConfig.ReleaseChannelConfig getChannels(int index); - /** - * - * - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - int getChannelsCount(); - /** - * - * - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - java.util.List - getChannelsOrBuilderList(); - /** - * - * - *
-   * List of release channel configurations.
-   * 
- * - * repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - com.google.container.v1.ServerConfig.ReleaseChannelConfigOrBuilder getChannelsOrBuilder( - int index); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java deleted file mode 100644 index 8b999199..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java +++ /dev/null @@ -1,1554 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * SetAddonsConfigRequest sets the addons associated with the cluster.
- * 
- * - * Protobuf type {@code google.container.v1.SetAddonsConfigRequest} - */ -public final class SetAddonsConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.SetAddonsConfigRequest) - SetAddonsConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetAddonsConfigRequest.newBuilder() to construct. - private SetAddonsConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SetAddonsConfigRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SetAddonsConfigRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SetAddonsConfigRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 34: - { - com.google.container.v1.AddonsConfig.Builder subBuilder = null; - if (addonsConfig_ != null) { - subBuilder = addonsConfig_.toBuilder(); - } - addonsConfig_ = - input.readMessage( - com.google.container.v1.AddonsConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(addonsConfig_); - addonsConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetAddonsConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetAddonsConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetAddonsConfigRequest.class, - com.google.container.v1.SetAddonsConfigRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ADDONS_CONFIG_FIELD_NUMBER = 4; - private com.google.container.v1.AddonsConfig addonsConfig_; - /** - * - * - *
-   * Required. The desired configurations for the various addons available to run in the
-   * cluster.
-   * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the addonsConfig field is set. - */ - @java.lang.Override - public boolean hasAddonsConfig() { - return addonsConfig_ != null; - } - /** - * - * - *
-   * Required. The desired configurations for the various addons available to run in the
-   * cluster.
-   * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The addonsConfig. - */ - @java.lang.Override - public com.google.container.v1.AddonsConfig getAddonsConfig() { - return addonsConfig_ == null - ? com.google.container.v1.AddonsConfig.getDefaultInstance() - : addonsConfig_; - } - /** - * - * - *
-   * Required. The desired configurations for the various addons available to run in the
-   * cluster.
-   * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { - return getAddonsConfig(); - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set addons.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set addons.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (addonsConfig_ != null) { - output.writeMessage(4, getAddonsConfig()); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (addonsConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAddonsConfig()); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1.SetAddonsConfigRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetAddonsConfigRequest other = - (com.google.container.v1.SetAddonsConfigRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - if (hasAddonsConfig() != other.hasAddonsConfig()) return false; - if (hasAddonsConfig()) { - if (!getAddonsConfig().equals(other.getAddonsConfig())) return false; - } - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - if (hasAddonsConfig()) { - hash = (37 * hash) + ADDONS_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getAddonsConfig().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.container.v1.SetAddonsConfigRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetAddonsConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetAddonsConfigRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetAddonsConfigRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetAddonsConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetAddonsConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetAddonsConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetAddonsConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetAddonsConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetAddonsConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetAddonsConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetAddonsConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.SetAddonsConfigRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * SetAddonsConfigRequest sets the addons associated with the cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.SetAddonsConfigRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetAddonsConfigRequest) - com.google.container.v1.SetAddonsConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetAddonsConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetAddonsConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetAddonsConfigRequest.class, - com.google.container.v1.SetAddonsConfigRequest.Builder.class); - } - - // Construct using com.google.container.v1.SetAddonsConfigRequest.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - if (addonsConfigBuilder_ == null) { - addonsConfig_ = null; - } else { - addonsConfig_ = null; - addonsConfigBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetAddonsConfigRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetAddonsConfigRequest getDefaultInstanceForType() { - return com.google.container.v1.SetAddonsConfigRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetAddonsConfigRequest build() { - com.google.container.v1.SetAddonsConfigRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetAddonsConfigRequest buildPartial() { - com.google.container.v1.SetAddonsConfigRequest result = - new com.google.container.v1.SetAddonsConfigRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - if (addonsConfigBuilder_ == null) { - result.addonsConfig_ = addonsConfig_; - } else { - result.addonsConfig_ = addonsConfigBuilder_.build(); - } - 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.container.v1.SetAddonsConfigRequest) { - return mergeFrom((com.google.container.v1.SetAddonsConfigRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetAddonsConfigRequest other) { - if (other == com.google.container.v1.SetAddonsConfigRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (other.hasAddonsConfig()) { - mergeAddonsConfig(other.getAddonsConfig()); - } - 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.container.v1.SetAddonsConfigRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.SetAddonsConfigRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.AddonsConfig addonsConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AddonsConfig, - com.google.container.v1.AddonsConfig.Builder, - com.google.container.v1.AddonsConfigOrBuilder> - addonsConfigBuilder_; - /** - * - * - *
-     * Required. The desired configurations for the various addons available to run in the
-     * cluster.
-     * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the addonsConfig field is set. - */ - public boolean hasAddonsConfig() { - return addonsConfigBuilder_ != null || addonsConfig_ != null; - } - /** - * - * - *
-     * Required. The desired configurations for the various addons available to run in the
-     * cluster.
-     * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The addonsConfig. - */ - public com.google.container.v1.AddonsConfig getAddonsConfig() { - if (addonsConfigBuilder_ == null) { - return addonsConfig_ == null - ? com.google.container.v1.AddonsConfig.getDefaultInstance() - : addonsConfig_; - } else { - return addonsConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The desired configurations for the various addons available to run in the
-     * cluster.
-     * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAddonsConfig(com.google.container.v1.AddonsConfig value) { - if (addonsConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - addonsConfig_ = value; - onChanged(); - } else { - addonsConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The desired configurations for the various addons available to run in the
-     * cluster.
-     * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAddonsConfig(com.google.container.v1.AddonsConfig.Builder builderForValue) { - if (addonsConfigBuilder_ == null) { - addonsConfig_ = builderForValue.build(); - onChanged(); - } else { - addonsConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The desired configurations for the various addons available to run in the
-     * cluster.
-     * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeAddonsConfig(com.google.container.v1.AddonsConfig value) { - if (addonsConfigBuilder_ == null) { - if (addonsConfig_ != null) { - addonsConfig_ = - com.google.container.v1.AddonsConfig.newBuilder(addonsConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - addonsConfig_ = value; - } - onChanged(); - } else { - addonsConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The desired configurations for the various addons available to run in the
-     * cluster.
-     * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearAddonsConfig() { - if (addonsConfigBuilder_ == null) { - addonsConfig_ = null; - onChanged(); - } else { - addonsConfig_ = null; - addonsConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The desired configurations for the various addons available to run in the
-     * cluster.
-     * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.AddonsConfig.Builder getAddonsConfigBuilder() { - - onChanged(); - return getAddonsConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The desired configurations for the various addons available to run in the
-     * cluster.
-     * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { - if (addonsConfigBuilder_ != null) { - return addonsConfigBuilder_.getMessageOrBuilder(); - } else { - return addonsConfig_ == null - ? com.google.container.v1.AddonsConfig.getDefaultInstance() - : addonsConfig_; - } - } - /** - * - * - *
-     * Required. The desired configurations for the various addons available to run in the
-     * cluster.
-     * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AddonsConfig, - com.google.container.v1.AddonsConfig.Builder, - com.google.container.v1.AddonsConfigOrBuilder> - getAddonsConfigFieldBuilder() { - if (addonsConfigBuilder_ == null) { - addonsConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.AddonsConfig, - com.google.container.v1.AddonsConfig.Builder, - com.google.container.v1.AddonsConfigOrBuilder>( - getAddonsConfig(), getParentForChildren(), isClean()); - addonsConfig_ = null; - } - return addonsConfigBuilder_; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set addons.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set addons.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set addons.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set addons.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set addons.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @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.container.v1.SetAddonsConfigRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetAddonsConfigRequest) - private static final com.google.container.v1.SetAddonsConfigRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetAddonsConfigRequest(); - } - - public static com.google.container.v1.SetAddonsConfigRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetAddonsConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetAddonsConfigRequest(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.container.v1.SetAddonsConfigRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java deleted file mode 100644 index 1a57973f..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface SetAddonsConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetAddonsConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Required. The desired configurations for the various addons available to run in the
-   * cluster.
-   * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the addonsConfig field is set. - */ - boolean hasAddonsConfig(); - /** - * - * - *
-   * Required. The desired configurations for the various addons available to run in the
-   * cluster.
-   * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The addonsConfig. - */ - com.google.container.v1.AddonsConfig getAddonsConfig(); - /** - * - * - *
-   * Required. The desired configurations for the various addons available to run in the
-   * cluster.
-   * 
- * - * - * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder(); - - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set addons.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set addons.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java deleted file mode 100644 index c7368778..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java +++ /dev/null @@ -1,1810 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
- * Engine cluster, which will in turn set them for Google Compute Engine
- * resources used by that cluster
- * 
- * - * Protobuf type {@code google.container.v1.SetLabelsRequest} - */ -public final class SetLabelsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.SetLabelsRequest) - SetLabelsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetLabelsRequest.newBuilder() to construct. - private SetLabelsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SetLabelsRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - labelFingerprint_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SetLabelsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SetLabelsRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resourceLabels_ = - com.google.protobuf.MapField.newMapField( - ResourceLabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry resourceLabels__ = - input.readMessage( - ResourceLabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - resourceLabels_ - .getMutableMap() - .put(resourceLabels__.getKey(), resourceLabels__.getValue()); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - labelFingerprint_ = s; - break; - } - case 58: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLabelsRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetResourceLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLabelsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetLabelsRequest.class, - com.google.container.v1.SetLabelsRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_LABELS_FIELD_NUMBER = 4; - - private static final class ResourceLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLabelsRequest_ResourceLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField resourceLabels_; - - private com.google.protobuf.MapField - internalGetResourceLabels() { - if (resourceLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ResourceLabelsDefaultEntryHolder.defaultEntry); - } - return resourceLabels_; - } - - public int getResourceLabelsCount() { - return internalGetResourceLabels().getMap().size(); - } - /** - * - * - *
-   * Required. The labels to set for that cluster.
-   * 
- * - * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public boolean containsResourceLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetResourceLabels().getMap().containsKey(key); - } - /** Use {@link #getResourceLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getResourceLabels() { - return getResourceLabelsMap(); - } - /** - * - * - *
-   * Required. The labels to set for that cluster.
-   * 
- * - * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.Map getResourceLabelsMap() { - return internalGetResourceLabels().getMap(); - } - /** - * - * - *
-   * Required. The labels to set for that cluster.
-   * 
- * - * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.lang.String getResourceLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetResourceLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Required. The labels to set for that cluster.
-   * 
- * - * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.lang.String getResourceLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetResourceLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LABEL_FINGERPRINT_FIELD_NUMBER = 5; - private volatile java.lang.Object labelFingerprint_; - /** - * - * - *
-   * Required. The fingerprint of the previous set of labels for this resource,
-   * used to detect conflicts. The fingerprint is initially generated by
-   * Kubernetes Engine and changes after every request to modify or update
-   * labels. You must always provide an up-to-date fingerprint hash when
-   * updating or changing labels. Make a `get()` request to the
-   * resource to get the latest fingerprint.
-   * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The labelFingerprint. - */ - @java.lang.Override - public java.lang.String getLabelFingerprint() { - java.lang.Object ref = labelFingerprint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - labelFingerprint_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The fingerprint of the previous set of labels for this resource,
-   * used to detect conflicts. The fingerprint is initially generated by
-   * Kubernetes Engine and changes after every request to modify or update
-   * labels. You must always provide an up-to-date fingerprint hash when
-   * updating or changing labels. Make a `get()` request to the
-   * resource to get the latest fingerprint.
-   * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for labelFingerprint. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLabelFingerprintBytes() { - java.lang.Object ref = labelFingerprint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - labelFingerprint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to set labels.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to set labels.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetResourceLabels(), ResourceLabelsDefaultEntryHolder.defaultEntry, 4); - if (!getLabelFingerprintBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, labelFingerprint_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - for (java.util.Map.Entry entry : - internalGetResourceLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry resourceLabels__ = - ResourceLabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, resourceLabels__); - } - if (!getLabelFingerprintBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, labelFingerprint_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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.container.v1.SetLabelsRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetLabelsRequest other = (com.google.container.v1.SetLabelsRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - if (!internalGetResourceLabels().equals(other.internalGetResourceLabels())) return false; - if (!getLabelFingerprint().equals(other.getLabelFingerprint())) return false; - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - if (!internalGetResourceLabels().getMap().isEmpty()) { - hash = (37 * hash) + RESOURCE_LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetResourceLabels().hashCode(); - } - hash = (37 * hash) + LABEL_FINGERPRINT_FIELD_NUMBER; - hash = (53 * hash) + getLabelFingerprint().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.container.v1.SetLabelsRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetLabelsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetLabelsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetLabelsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetLabelsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetLabelsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetLabelsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetLabelsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetLabelsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetLabelsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetLabelsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetLabelsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.SetLabelsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
-   * Engine cluster, which will in turn set them for Google Compute Engine
-   * resources used by that cluster
-   * 
- * - * Protobuf type {@code google.container.v1.SetLabelsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetLabelsRequest) - com.google.container.v1.SetLabelsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLabelsRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetResourceLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - return internalGetMutableResourceLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLabelsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetLabelsRequest.class, - com.google.container.v1.SetLabelsRequest.Builder.class); - } - - // Construct using com.google.container.v1.SetLabelsRequest.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - internalGetMutableResourceLabels().clear(); - labelFingerprint_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLabelsRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetLabelsRequest getDefaultInstanceForType() { - return com.google.container.v1.SetLabelsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetLabelsRequest build() { - com.google.container.v1.SetLabelsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetLabelsRequest buildPartial() { - com.google.container.v1.SetLabelsRequest result = - new com.google.container.v1.SetLabelsRequest(this); - int from_bitField0_ = bitField0_; - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.resourceLabels_ = internalGetResourceLabels(); - result.resourceLabels_.makeImmutable(); - result.labelFingerprint_ = labelFingerprint_; - 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.container.v1.SetLabelsRequest) { - return mergeFrom((com.google.container.v1.SetLabelsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetLabelsRequest other) { - if (other == com.google.container.v1.SetLabelsRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - internalGetMutableResourceLabels().mergeFrom(other.internalGetResourceLabels()); - if (!other.getLabelFingerprint().isEmpty()) { - labelFingerprint_ = other.labelFingerprint_; - onChanged(); - } - 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.container.v1.SetLabelsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.SetLabelsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField resourceLabels_; - - private com.google.protobuf.MapField - internalGetResourceLabels() { - if (resourceLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ResourceLabelsDefaultEntryHolder.defaultEntry); - } - return resourceLabels_; - } - - private com.google.protobuf.MapField - internalGetMutableResourceLabels() { - onChanged(); - ; - if (resourceLabels_ == null) { - resourceLabels_ = - com.google.protobuf.MapField.newMapField(ResourceLabelsDefaultEntryHolder.defaultEntry); - } - if (!resourceLabels_.isMutable()) { - resourceLabels_ = resourceLabels_.copy(); - } - return resourceLabels_; - } - - public int getResourceLabelsCount() { - return internalGetResourceLabels().getMap().size(); - } - /** - * - * - *
-     * Required. The labels to set for that cluster.
-     * 
- * - * - * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public boolean containsResourceLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetResourceLabels().getMap().containsKey(key); - } - /** Use {@link #getResourceLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getResourceLabels() { - return getResourceLabelsMap(); - } - /** - * - * - *
-     * Required. The labels to set for that cluster.
-     * 
- * - * - * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.Map getResourceLabelsMap() { - return internalGetResourceLabels().getMap(); - } - /** - * - * - *
-     * Required. The labels to set for that cluster.
-     * 
- * - * - * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.lang.String getResourceLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetResourceLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Required. The labels to set for that cluster.
-     * 
- * - * - * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.lang.String getResourceLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetResourceLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearResourceLabels() { - internalGetMutableResourceLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Required. The labels to set for that cluster.
-     * 
- * - * - * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder removeResourceLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableResourceLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableResourceLabels() { - return internalGetMutableResourceLabels().getMutableMap(); - } - /** - * - * - *
-     * Required. The labels to set for that cluster.
-     * 
- * - * - * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder putResourceLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableResourceLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Required. The labels to set for that cluster.
-     * 
- * - * - * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder putAllResourceLabels(java.util.Map values) { - internalGetMutableResourceLabels().getMutableMap().putAll(values); - return this; - } - - private java.lang.Object labelFingerprint_ = ""; - /** - * - * - *
-     * Required. The fingerprint of the previous set of labels for this resource,
-     * used to detect conflicts. The fingerprint is initially generated by
-     * Kubernetes Engine and changes after every request to modify or update
-     * labels. You must always provide an up-to-date fingerprint hash when
-     * updating or changing labels. Make a `get()` request to the
-     * resource to get the latest fingerprint.
-     * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The labelFingerprint. - */ - public java.lang.String getLabelFingerprint() { - java.lang.Object ref = labelFingerprint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - labelFingerprint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The fingerprint of the previous set of labels for this resource,
-     * used to detect conflicts. The fingerprint is initially generated by
-     * Kubernetes Engine and changes after every request to modify or update
-     * labels. You must always provide an up-to-date fingerprint hash when
-     * updating or changing labels. Make a `get()` request to the
-     * resource to get the latest fingerprint.
-     * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for labelFingerprint. - */ - public com.google.protobuf.ByteString getLabelFingerprintBytes() { - java.lang.Object ref = labelFingerprint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - labelFingerprint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The fingerprint of the previous set of labels for this resource,
-     * used to detect conflicts. The fingerprint is initially generated by
-     * Kubernetes Engine and changes after every request to modify or update
-     * labels. You must always provide an up-to-date fingerprint hash when
-     * updating or changing labels. Make a `get()` request to the
-     * resource to get the latest fingerprint.
-     * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The labelFingerprint to set. - * @return This builder for chaining. - */ - public Builder setLabelFingerprint(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - labelFingerprint_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The fingerprint of the previous set of labels for this resource,
-     * used to detect conflicts. The fingerprint is initially generated by
-     * Kubernetes Engine and changes after every request to modify or update
-     * labels. You must always provide an up-to-date fingerprint hash when
-     * updating or changing labels. Make a `get()` request to the
-     * resource to get the latest fingerprint.
-     * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearLabelFingerprint() { - - labelFingerprint_ = getDefaultInstance().getLabelFingerprint(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The fingerprint of the previous set of labels for this resource,
-     * used to detect conflicts. The fingerprint is initially generated by
-     * Kubernetes Engine and changes after every request to modify or update
-     * labels. You must always provide an up-to-date fingerprint hash when
-     * updating or changing labels. Make a `get()` request to the
-     * resource to get the latest fingerprint.
-     * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for labelFingerprint to set. - * @return This builder for chaining. - */ - public Builder setLabelFingerprintBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - labelFingerprint_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to set labels.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to set labels.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to set labels.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to set labels.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to set labels.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * - * @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.container.v1.SetLabelsRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetLabelsRequest) - private static final com.google.container.v1.SetLabelsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetLabelsRequest(); - } - - public static com.google.container.v1.SetLabelsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetLabelsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetLabelsRequest(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.container.v1.SetLabelsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java deleted file mode 100644 index aee07533..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java +++ /dev/null @@ -1,239 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface SetLabelsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetLabelsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Required. The labels to set for that cluster.
-   * 
- * - * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getResourceLabelsCount(); - /** - * - * - *
-   * Required. The labels to set for that cluster.
-   * 
- * - * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - boolean containsResourceLabels(java.lang.String key); - /** Use {@link #getResourceLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getResourceLabels(); - /** - * - * - *
-   * Required. The labels to set for that cluster.
-   * 
- * - * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.Map getResourceLabelsMap(); - /** - * - * - *
-   * Required. The labels to set for that cluster.
-   * 
- * - * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.lang.String getResourceLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Required. The labels to set for that cluster.
-   * 
- * - * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.lang.String getResourceLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Required. The fingerprint of the previous set of labels for this resource,
-   * used to detect conflicts. The fingerprint is initially generated by
-   * Kubernetes Engine and changes after every request to modify or update
-   * labels. You must always provide an up-to-date fingerprint hash when
-   * updating or changing labels. Make a `get()` request to the
-   * resource to get the latest fingerprint.
-   * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The labelFingerprint. - */ - java.lang.String getLabelFingerprint(); - /** - * - * - *
-   * Required. The fingerprint of the previous set of labels for this resource,
-   * used to detect conflicts. The fingerprint is initially generated by
-   * Kubernetes Engine and changes after every request to modify or update
-   * labels. You must always provide an up-to-date fingerprint hash when
-   * updating or changing labels. Make a `get()` request to the
-   * resource to get the latest fingerprint.
-   * 
- * - * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for labelFingerprint. - */ - com.google.protobuf.ByteString getLabelFingerprintBytes(); - - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to set labels.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to set labels.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java deleted file mode 100644 index 55566986..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
- * a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.SetLegacyAbacRequest} - */ -public final class SetLegacyAbacRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.SetLegacyAbacRequest) - SetLegacyAbacRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetLegacyAbacRequest.newBuilder() to construct. - private SetLegacyAbacRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SetLegacyAbacRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SetLegacyAbacRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SetLegacyAbacRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 32: - { - enabled_ = input.readBool(); - break; - } - case 50: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLegacyAbacRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLegacyAbacRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetLegacyAbacRequest.class, - com.google.container.v1.SetLegacyAbacRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENABLED_FIELD_NUMBER = 4; - private boolean enabled_; - /** - * - * - *
-   * Required. Whether ABAC authorization will be enabled in the cluster.
-   * 
- * - * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to set legacy abac.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to set legacy abac.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (enabled_ != false) { - output.writeBool(4, enabled_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, enabled_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1.SetLegacyAbacRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetLegacyAbacRequest other = - (com.google.container.v1.SetLegacyAbacRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - if (getEnabled() != other.getEnabled()) return false; - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.SetLegacyAbacRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetLegacyAbacRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetLegacyAbacRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetLegacyAbacRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetLegacyAbacRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetLegacyAbacRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetLegacyAbacRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetLegacyAbacRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetLegacyAbacRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetLegacyAbacRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetLegacyAbacRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetLegacyAbacRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.SetLegacyAbacRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
-   * a cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.SetLegacyAbacRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetLegacyAbacRequest) - com.google.container.v1.SetLegacyAbacRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLegacyAbacRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLegacyAbacRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetLegacyAbacRequest.class, - com.google.container.v1.SetLegacyAbacRequest.Builder.class); - } - - // Construct using com.google.container.v1.SetLegacyAbacRequest.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - enabled_ = false; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLegacyAbacRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetLegacyAbacRequest getDefaultInstanceForType() { - return com.google.container.v1.SetLegacyAbacRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetLegacyAbacRequest build() { - com.google.container.v1.SetLegacyAbacRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetLegacyAbacRequest buildPartial() { - com.google.container.v1.SetLegacyAbacRequest result = - new com.google.container.v1.SetLegacyAbacRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.enabled_ = enabled_; - 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.container.v1.SetLegacyAbacRequest) { - return mergeFrom((com.google.container.v1.SetLegacyAbacRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetLegacyAbacRequest other) { - if (other == com.google.container.v1.SetLegacyAbacRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - 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.container.v1.SetLegacyAbacRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.SetLegacyAbacRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private boolean enabled_; - /** - * - * - *
-     * Required. Whether ABAC authorization will be enabled in the cluster.
-     * 
- * - * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Required. Whether ABAC authorization will be enabled in the cluster.
-     * 
- * - * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. Whether ABAC authorization will be enabled in the cluster.
-     * 
- * - * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to set legacy abac.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to set legacy abac.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to set legacy abac.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to set legacy abac.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to set legacy abac.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @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.container.v1.SetLegacyAbacRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetLegacyAbacRequest) - private static final com.google.container.v1.SetLegacyAbacRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetLegacyAbacRequest(); - } - - public static com.google.container.v1.SetLegacyAbacRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetLegacyAbacRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetLegacyAbacRequest(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.container.v1.SetLegacyAbacRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java deleted file mode 100644 index 9c8fe9d0..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface SetLegacyAbacRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetLegacyAbacRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Required. Whether ABAC authorization will be enabled in the cluster.
-   * 
- * - * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The enabled. - */ - boolean getEnabled(); - - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to set legacy abac.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to set legacy abac.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java deleted file mode 100644 index 4f7add0b..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java +++ /dev/null @@ -1,1586 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * SetLocationsRequest sets the locations of the cluster.
- * 
- * - * Protobuf type {@code google.container.v1.SetLocationsRequest} - */ -public final class SetLocationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.SetLocationsRequest) - SetLocationsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetLocationsRequest.newBuilder() to construct. - private SetLocationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SetLocationsRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SetLocationsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SetLocationsRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - locations_.add(s); - break; - } - case 50: - { - 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 { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLocationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLocationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetLocationsRequest.class, - com.google.container.v1.SetLocationsRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATIONS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList locations_; - /** - * - * - *
-   * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located. Changing the locations a cluster is in
-   * will result in nodes being either created or removed from the cluster,
-   * depending on whether locations are being added or removed.
-   * This list must always include the cluster's primary zone.
-   * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList getLocationsList() { - return locations_; - } - /** - * - * - *
-   * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located. Changing the locations a cluster is in
-   * will result in nodes being either created or removed from the cluster,
-   * depending on whether locations are being added or removed.
-   * This list must always include the cluster's primary zone.
-   * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - * - * - *
-   * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located. Changing the locations a cluster is in
-   * will result in nodes being either created or removed from the cluster,
-   * depending on whether locations are being added or removed.
-   * This list must always include the cluster's primary zone.
-   * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @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); - } - /** - * - * - *
-   * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located. Changing the locations a cluster is in
-   * will result in nodes being either created or removed from the cluster,
-   * depending on whether locations are being added or removed.
-   * This list must always include the cluster's primary zone.
-   * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set locations.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set locations.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - for (int i = 0; i < locations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locations_.getRaw(i)); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - { - int dataSize = 0; - for (int i = 0; i < locations_.size(); i++) { - dataSize += computeStringSizeNoTag(locations_.getRaw(i)); - } - size += dataSize; - size += 1 * getLocationsList().size(); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1.SetLocationsRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetLocationsRequest other = - (com.google.container.v1.SetLocationsRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - if (!getLocationsList().equals(other.getLocationsList())) return false; - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - if (getLocationsCount() > 0) { - hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; - hash = (53 * hash) + getLocationsList().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.container.v1.SetLocationsRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetLocationsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetLocationsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetLocationsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetLocationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetLocationsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetLocationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetLocationsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetLocationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetLocationsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetLocationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetLocationsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.SetLocationsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * SetLocationsRequest sets the locations of the cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.SetLocationsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetLocationsRequest) - com.google.container.v1.SetLocationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLocationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLocationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetLocationsRequest.class, - com.google.container.v1.SetLocationsRequest.Builder.class); - } - - // Construct using com.google.container.v1.SetLocationsRequest.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLocationsRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetLocationsRequest getDefaultInstanceForType() { - return com.google.container.v1.SetLocationsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetLocationsRequest build() { - com.google.container.v1.SetLocationsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetLocationsRequest buildPartial() { - com.google.container.v1.SetLocationsRequest result = - new com.google.container.v1.SetLocationsRequest(this); - int from_bitField0_ = bitField0_; - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - if (((bitField0_ & 0x00000001) != 0)) { - locations_ = locations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.locations_ = locations_; - 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.container.v1.SetLocationsRequest) { - return mergeFrom((com.google.container.v1.SetLocationsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetLocationsRequest other) { - if (other == com.google.container.v1.SetLocationsRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - 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.container.v1.SetLocationsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.SetLocationsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - 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; - } - } - /** - * - * - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList getLocationsList() { - return locations_.getUnmodifiableView(); - } - /** - * - * - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - * - * - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @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); - } - /** - * - * - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @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); - } - /** - * - * - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - /** - * - * - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - /** - * - * - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - /** - * - * - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearLocations() { - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster's nodes should be located. Changing the locations a cluster is in
-     * will result in nodes being either created or removed from the cluster,
-     * depending on whether locations are being added or removed.
-     * This list must always include the cluster's primary zone.
-     * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set locations.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set locations.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set locations.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set locations.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set locations.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @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.container.v1.SetLocationsRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetLocationsRequest) - private static final com.google.container.v1.SetLocationsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetLocationsRequest(); - } - - public static com.google.container.v1.SetLocationsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetLocationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetLocationsRequest(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.container.v1.SetLocationsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java deleted file mode 100644 index bb07979e..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java +++ /dev/null @@ -1,216 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface SetLocationsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetLocationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located. Changing the locations a cluster is in
-   * will result in nodes being either created or removed from the cluster,
-   * depending on whether locations are being added or removed.
-   * This list must always include the cluster's primary zone.
-   * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the locations. - */ - java.util.List getLocationsList(); - /** - * - * - *
-   * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located. Changing the locations a cluster is in
-   * will result in nodes being either created or removed from the cluster,
-   * depending on whether locations are being added or removed.
-   * This list must always include the cluster's primary zone.
-   * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of locations. - */ - int getLocationsCount(); - /** - * - * - *
-   * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located. Changing the locations a cluster is in
-   * will result in nodes being either created or removed from the cluster,
-   * depending on whether locations are being added or removed.
-   * This list must always include the cluster's primary zone.
-   * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The locations at the given index. - */ - java.lang.String getLocations(int index); - /** - * - * - *
-   * Required. The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster's nodes should be located. Changing the locations a cluster is in
-   * will result in nodes being either created or removed from the cluster,
-   * depending on whether locations are being added or removed.
-   * This list must always include the cluster's primary zone.
-   * 
- * - * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @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); - - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set locations.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set locations.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java deleted file mode 100644 index 51b7adc9..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java +++ /dev/null @@ -1,1477 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * SetLoggingServiceRequest sets the logging service of a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.SetLoggingServiceRequest} - */ -public final class SetLoggingServiceRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.SetLoggingServiceRequest) - SetLoggingServiceRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetLoggingServiceRequest.newBuilder() to construct. - private SetLoggingServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SetLoggingServiceRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - loggingService_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SetLoggingServiceRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SetLoggingServiceRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - loggingService_ = s; - break; - } - case 42: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLoggingServiceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLoggingServiceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetLoggingServiceRequest.class, - com.google.container.v1.SetLoggingServiceRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOGGING_SERVICE_FIELD_NUMBER = 4; - private volatile java.lang.Object loggingService_; - /** - * - * - *
-   * Required. The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The loggingService. - */ - @java.lang.Override - public java.lang.String getLoggingService() { - java.lang.Object ref = loggingService_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - loggingService_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for loggingService. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLoggingServiceBytes() { - java.lang.Object ref = loggingService_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - loggingService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set logging.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set logging.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!getLoggingServiceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, loggingService_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!getLoggingServiceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, loggingService_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.container.v1.SetLoggingServiceRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetLoggingServiceRequest other = - (com.google.container.v1.SetLoggingServiceRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - if (!getLoggingService().equals(other.getLoggingService())) return false; - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - hash = (37 * hash) + LOGGING_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getLoggingService().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.container.v1.SetLoggingServiceRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetLoggingServiceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetLoggingServiceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetLoggingServiceRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetLoggingServiceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetLoggingServiceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetLoggingServiceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetLoggingServiceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetLoggingServiceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetLoggingServiceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetLoggingServiceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetLoggingServiceRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.SetLoggingServiceRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * SetLoggingServiceRequest sets the logging service of a cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.SetLoggingServiceRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetLoggingServiceRequest) - com.google.container.v1.SetLoggingServiceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLoggingServiceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLoggingServiceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetLoggingServiceRequest.class, - com.google.container.v1.SetLoggingServiceRequest.Builder.class); - } - - // Construct using com.google.container.v1.SetLoggingServiceRequest.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - loggingService_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetLoggingServiceRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetLoggingServiceRequest getDefaultInstanceForType() { - return com.google.container.v1.SetLoggingServiceRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetLoggingServiceRequest build() { - com.google.container.v1.SetLoggingServiceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetLoggingServiceRequest buildPartial() { - com.google.container.v1.SetLoggingServiceRequest result = - new com.google.container.v1.SetLoggingServiceRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.loggingService_ = loggingService_; - 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.container.v1.SetLoggingServiceRequest) { - return mergeFrom((com.google.container.v1.SetLoggingServiceRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetLoggingServiceRequest other) { - if (other == com.google.container.v1.SetLoggingServiceRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getLoggingService().isEmpty()) { - loggingService_ = other.loggingService_; - onChanged(); - } - 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.container.v1.SetLoggingServiceRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.SetLoggingServiceRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object loggingService_ = ""; - /** - * - * - *
-     * Required. The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The loggingService. - */ - public java.lang.String getLoggingService() { - java.lang.Object ref = loggingService_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - loggingService_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for loggingService. - */ - public com.google.protobuf.ByteString getLoggingServiceBytes() { - java.lang.Object ref = loggingService_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - loggingService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The loggingService to set. - * @return This builder for chaining. - */ - public Builder setLoggingService(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - loggingService_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearLoggingService() { - - loggingService_ = getDefaultInstance().getLoggingService(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The logging service the cluster should use to write logs.
-     * Currently available options:
-     * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-     * service with a Kubernetes-native resource model
-     * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-     *   available as of GKE 1.15).
-     * * `none` - no logs will be exported from the cluster.
-     * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-     * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for loggingService to set. - * @return This builder for chaining. - */ - public Builder setLoggingServiceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - loggingService_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set logging.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set logging.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set logging.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set logging.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set logging.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * - * @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.container.v1.SetLoggingServiceRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetLoggingServiceRequest) - private static final com.google.container.v1.SetLoggingServiceRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetLoggingServiceRequest(); - } - - public static com.google.container.v1.SetLoggingServiceRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetLoggingServiceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetLoggingServiceRequest(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.container.v1.SetLoggingServiceRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java deleted file mode 100644 index 073417d6..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface SetLoggingServiceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetLoggingServiceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Required. The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The loggingService. - */ - java.lang.String getLoggingService(); - /** - * - * - *
-   * Required. The logging service the cluster should use to write logs.
-   * Currently available options:
-   * * `logging.googleapis.com/kubernetes` - The Cloud Logging
-   * service with a Kubernetes-native resource model
-   * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
-   *   available as of GKE 1.15).
-   * * `none` - no logs will be exported from the cluster.
-   * If left as an empty string,`logging.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
-   * 
- * - * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for loggingService. - */ - com.google.protobuf.ByteString getLoggingServiceBytes(); - - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set logging.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set logging.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java deleted file mode 100644 index b19d76d1..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java +++ /dev/null @@ -1,1522 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.SetMaintenancePolicyRequest} - */ -public final class SetMaintenancePolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.SetMaintenancePolicyRequest) - SetMaintenancePolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetMaintenancePolicyRequest.newBuilder() to construct. - private SetMaintenancePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SetMaintenancePolicyRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SetMaintenancePolicyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SetMaintenancePolicyRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 34: - { - com.google.container.v1.MaintenancePolicy.Builder subBuilder = null; - if (maintenancePolicy_ != null) { - subBuilder = maintenancePolicy_.toBuilder(); - } - maintenancePolicy_ = - input.readMessage( - com.google.container.v1.MaintenancePolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maintenancePolicy_); - maintenancePolicy_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMaintenancePolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMaintenancePolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetMaintenancePolicyRequest.class, - com.google.container.v1.SetMaintenancePolicyRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Required. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * 
- * - * 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 Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * 
- * - * 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Required. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides.
-   * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - /** - * - * - *
-   * Required. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides.
-   * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Required. The name of the cluster to update.
-   * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterId. - */ - @java.lang.Override - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The name of the cluster to update.
-   * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 4; - private com.google.container.v1.MaintenancePolicy maintenancePolicy_; - /** - * - * - *
-   * Required. The maintenance policy to be set for the cluster. An empty field
-   * clears the existing maintenance policy.
-   * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the maintenancePolicy field is set. - */ - @java.lang.Override - public boolean hasMaintenancePolicy() { - return maintenancePolicy_ != null; - } - /** - * - * - *
-   * Required. The maintenance policy to be set for the cluster. An empty field
-   * clears the existing maintenance policy.
-   * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The maintenancePolicy. - */ - @java.lang.Override - public com.google.container.v1.MaintenancePolicy getMaintenancePolicy() { - return maintenancePolicy_ == null - ? com.google.container.v1.MaintenancePolicy.getDefaultInstance() - : maintenancePolicy_; - } - /** - * - * - *
-   * Required. The maintenance policy to be set for the cluster. An empty field
-   * clears the existing maintenance policy.
-   * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { - return getMaintenancePolicy(); - } - - public static final int NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to set maintenance
-   * policy.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to set maintenance
-   * policy.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (maintenancePolicy_ != null) { - output.writeMessage(4, getMaintenancePolicy()); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (maintenancePolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMaintenancePolicy()); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.container.v1.SetMaintenancePolicyRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetMaintenancePolicyRequest other = - (com.google.container.v1.SetMaintenancePolicyRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - if (hasMaintenancePolicy() != other.hasMaintenancePolicy()) return false; - if (hasMaintenancePolicy()) { - if (!getMaintenancePolicy().equals(other.getMaintenancePolicy())) return false; - } - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - if (hasMaintenancePolicy()) { - hash = (37 * hash) + MAINTENANCE_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getMaintenancePolicy().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.container.v1.SetMaintenancePolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetMaintenancePolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetMaintenancePolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetMaintenancePolicyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetMaintenancePolicyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetMaintenancePolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetMaintenancePolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetMaintenancePolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetMaintenancePolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetMaintenancePolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetMaintenancePolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetMaintenancePolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.SetMaintenancePolicyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.SetMaintenancePolicyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetMaintenancePolicyRequest) - com.google.container.v1.SetMaintenancePolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMaintenancePolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMaintenancePolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetMaintenancePolicyRequest.class, - com.google.container.v1.SetMaintenancePolicyRequest.Builder.class); - } - - // Construct using com.google.container.v1.SetMaintenancePolicyRequest.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - if (maintenancePolicyBuilder_ == null) { - maintenancePolicy_ = null; - } else { - maintenancePolicy_ = null; - maintenancePolicyBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMaintenancePolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetMaintenancePolicyRequest getDefaultInstanceForType() { - return com.google.container.v1.SetMaintenancePolicyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetMaintenancePolicyRequest build() { - com.google.container.v1.SetMaintenancePolicyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetMaintenancePolicyRequest buildPartial() { - com.google.container.v1.SetMaintenancePolicyRequest result = - new com.google.container.v1.SetMaintenancePolicyRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - if (maintenancePolicyBuilder_ == null) { - result.maintenancePolicy_ = maintenancePolicy_; - } else { - result.maintenancePolicy_ = maintenancePolicyBuilder_.build(); - } - 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.container.v1.SetMaintenancePolicyRequest) { - return mergeFrom((com.google.container.v1.SetMaintenancePolicyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetMaintenancePolicyRequest other) { - if (other == com.google.container.v1.SetMaintenancePolicyRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (other.hasMaintenancePolicy()) { - mergeMaintenancePolicy(other.getMaintenancePolicy()); - } - 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.container.v1.SetMaintenancePolicyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.container.v1.SetMaintenancePolicyRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Required. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * 
- * - * 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 Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * 
- * - * 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 Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * 
- * - * 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 Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * 
- * - * 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 Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * 
- * - * 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 zone_ = ""; - /** - * - * - *
-     * Required. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides.
-     * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - /** - * - * - *
-     * Required. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides.
-     * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - /** - * - * - *
-     * Required. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides.
-     * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - /** - * - * - *
-     * Required. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides.
-     * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides.
-     * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Required. The name of the cluster to update.
-     * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterId. - */ - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The name of the cluster to update.
-     * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterId. - */ - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The name of the cluster to update.
-     * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the cluster to update.
-     * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The name of the cluster to update.
-     * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.MaintenancePolicy maintenancePolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaintenancePolicy, - com.google.container.v1.MaintenancePolicy.Builder, - com.google.container.v1.MaintenancePolicyOrBuilder> - maintenancePolicyBuilder_; - /** - * - * - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the maintenancePolicy field is set. - */ - public boolean hasMaintenancePolicy() { - return maintenancePolicyBuilder_ != null || maintenancePolicy_ != null; - } - /** - * - * - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The maintenancePolicy. - */ - public com.google.container.v1.MaintenancePolicy getMaintenancePolicy() { - if (maintenancePolicyBuilder_ == null) { - return maintenancePolicy_ == null - ? com.google.container.v1.MaintenancePolicy.getDefaultInstance() - : maintenancePolicy_; - } else { - return maintenancePolicyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setMaintenancePolicy(com.google.container.v1.MaintenancePolicy value) { - if (maintenancePolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maintenancePolicy_ = value; - onChanged(); - } else { - maintenancePolicyBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setMaintenancePolicy( - com.google.container.v1.MaintenancePolicy.Builder builderForValue) { - if (maintenancePolicyBuilder_ == null) { - maintenancePolicy_ = builderForValue.build(); - onChanged(); - } else { - maintenancePolicyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeMaintenancePolicy(com.google.container.v1.MaintenancePolicy value) { - if (maintenancePolicyBuilder_ == null) { - if (maintenancePolicy_ != null) { - maintenancePolicy_ = - com.google.container.v1.MaintenancePolicy.newBuilder(maintenancePolicy_) - .mergeFrom(value) - .buildPartial(); - } else { - maintenancePolicy_ = value; - } - onChanged(); - } else { - maintenancePolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearMaintenancePolicy() { - if (maintenancePolicyBuilder_ == null) { - maintenancePolicy_ = null; - onChanged(); - } else { - maintenancePolicy_ = null; - maintenancePolicyBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { - - onChanged(); - return getMaintenancePolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { - if (maintenancePolicyBuilder_ != null) { - return maintenancePolicyBuilder_.getMessageOrBuilder(); - } else { - return maintenancePolicy_ == null - ? com.google.container.v1.MaintenancePolicy.getDefaultInstance() - : maintenancePolicy_; - } - } - /** - * - * - *
-     * Required. The maintenance policy to be set for the cluster. An empty field
-     * clears the existing maintenance policy.
-     * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaintenancePolicy, - com.google.container.v1.MaintenancePolicy.Builder, - com.google.container.v1.MaintenancePolicyOrBuilder> - getMaintenancePolicyFieldBuilder() { - if (maintenancePolicyBuilder_ == null) { - maintenancePolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MaintenancePolicy, - com.google.container.v1.MaintenancePolicy.Builder, - com.google.container.v1.MaintenancePolicyOrBuilder>( - getMaintenancePolicy(), getParentForChildren(), isClean()); - maintenancePolicy_ = null; - } - return maintenancePolicyBuilder_; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to set maintenance
-     * policy.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to set maintenance
-     * policy.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to set maintenance
-     * policy.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to set maintenance
-     * policy.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to set maintenance
-     * policy.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * - * @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.container.v1.SetMaintenancePolicyRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetMaintenancePolicyRequest) - private static final com.google.container.v1.SetMaintenancePolicyRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetMaintenancePolicyRequest(); - } - - public static com.google.container.v1.SetMaintenancePolicyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetMaintenancePolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetMaintenancePolicyRequest(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.container.v1.SetMaintenancePolicyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java deleted file mode 100644 index 15237d34..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java +++ /dev/null @@ -1,179 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface SetMaintenancePolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetMaintenancePolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Required. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * 
- * - * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Required. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides.
-   * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The zone. - */ - java.lang.String getZone(); - /** - * - * - *
-   * Required. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides.
-   * 
- * - * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for zone. - */ - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Required. The name of the cluster to update.
-   * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The clusterId. - */ - java.lang.String getClusterId(); - /** - * - * - *
-   * Required. The name of the cluster to update.
-   * 
- * - * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for clusterId. - */ - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Required. The maintenance policy to be set for the cluster. An empty field
-   * clears the existing maintenance policy.
-   * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the maintenancePolicy field is set. - */ - boolean hasMaintenancePolicy(); - /** - * - * - *
-   * Required. The maintenance policy to be set for the cluster. An empty field
-   * clears the existing maintenance policy.
-   * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The maintenancePolicy. - */ - com.google.container.v1.MaintenancePolicy getMaintenancePolicy(); - /** - * - * - *
-   * Required. The maintenance policy to be set for the cluster. An empty field
-   * clears the existing maintenance policy.
-   * 
- * - * - * .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder(); - - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to set maintenance
-   * policy.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to set maintenance
-   * policy.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java deleted file mode 100644 index a66d5a73..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java +++ /dev/null @@ -1,1876 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * SetMasterAuthRequest updates the admin password of a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.SetMasterAuthRequest} - */ -public final class SetMasterAuthRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.SetMasterAuthRequest) - SetMasterAuthRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetMasterAuthRequest.newBuilder() to construct. - private SetMasterAuthRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SetMasterAuthRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - action_ = 0; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SetMasterAuthRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SetMasterAuthRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 32: - { - int rawValue = input.readEnum(); - - action_ = rawValue; - break; - } - case 42: - { - com.google.container.v1.MasterAuth.Builder subBuilder = null; - if (update_ != null) { - subBuilder = update_.toBuilder(); - } - update_ = - input.readMessage(com.google.container.v1.MasterAuth.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(update_); - update_ = subBuilder.buildPartial(); - } - - break; - } - case 58: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMasterAuthRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMasterAuthRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetMasterAuthRequest.class, - com.google.container.v1.SetMasterAuthRequest.Builder.class); - } - - /** - * - * - *
-   * Operation type: what type update to perform.
-   * 
- * - * Protobuf enum {@code google.container.v1.SetMasterAuthRequest.Action} - */ - public enum Action implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Operation is unknown and will error out.
-     * 
- * - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * - * - *
-     * Set the password to a user generated value.
-     * 
- * - * SET_PASSWORD = 1; - */ - SET_PASSWORD(1), - /** - * - * - *
-     * Generate a new password and set it to that.
-     * 
- * - * GENERATE_PASSWORD = 2; - */ - GENERATE_PASSWORD(2), - /** - * - * - *
-     * Set the username.  If an empty username is provided, basic authentication
-     * is disabled for the cluster.  If a non-empty username is provided, basic
-     * authentication is enabled, with either a provided password or a generated
-     * one.
-     * 
- * - * SET_USERNAME = 3; - */ - SET_USERNAME(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Operation is unknown and will error out.
-     * 
- * - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * - * - *
-     * Set the password to a user generated value.
-     * 
- * - * SET_PASSWORD = 1; - */ - public static final int SET_PASSWORD_VALUE = 1; - /** - * - * - *
-     * Generate a new password and set it to that.
-     * 
- * - * GENERATE_PASSWORD = 2; - */ - public static final int GENERATE_PASSWORD_VALUE = 2; - /** - * - * - *
-     * Set the username.  If an empty username is provided, basic authentication
-     * is disabled for the cluster.  If a non-empty username is provided, basic
-     * authentication is enabled, with either a provided password or a generated
-     * one.
-     * 
- * - * SET_USERNAME = 3; - */ - public static final int SET_USERNAME_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 Action 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 Action forNumber(int value) { - switch (value) { - case 0: - return UNKNOWN; - case 1: - return SET_PASSWORD; - case 2: - return GENERATE_PASSWORD; - case 3: - return SET_USERNAME; - 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 Action findValueByNumber(int number) { - return Action.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.SetMasterAuthRequest.getDescriptor().getEnumTypes().get(0); - } - - private static final Action[] VALUES = values(); - - public static Action valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Action(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.SetMasterAuthRequest.Action) - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACTION_FIELD_NUMBER = 4; - private int action_; - /** - * - * - *
-   * Required. The exact form of action to be taken on the master auth.
-   * 
- * - * - * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for action. - */ - @java.lang.Override - public int getActionValue() { - return action_; - } - /** - * - * - *
-   * Required. The exact form of action to be taken on the master auth.
-   * 
- * - * - * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The action. - */ - @java.lang.Override - public com.google.container.v1.SetMasterAuthRequest.Action getAction() { - @SuppressWarnings("deprecation") - com.google.container.v1.SetMasterAuthRequest.Action result = - com.google.container.v1.SetMasterAuthRequest.Action.valueOf(action_); - return result == null - ? com.google.container.v1.SetMasterAuthRequest.Action.UNRECOGNIZED - : result; - } - - public static final int UPDATE_FIELD_NUMBER = 5; - private com.google.container.v1.MasterAuth update_; - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the update field is set. - */ - @java.lang.Override - public boolean hasUpdate() { - return update_ != null; - } - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The update. - */ - @java.lang.Override - public com.google.container.v1.MasterAuth getUpdate() { - return update_ == null ? com.google.container.v1.MasterAuth.getDefaultInstance() : update_; - } - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.container.v1.MasterAuthOrBuilder getUpdateOrBuilder() { - return getUpdate(); - } - - public static final int NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set auth.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set auth.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (action_ != com.google.container.v1.SetMasterAuthRequest.Action.UNKNOWN.getNumber()) { - output.writeEnum(4, action_); - } - if (update_ != null) { - output.writeMessage(5, getUpdate()); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (action_ != com.google.container.v1.SetMasterAuthRequest.Action.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, action_); - } - if (update_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdate()); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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.container.v1.SetMasterAuthRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetMasterAuthRequest other = - (com.google.container.v1.SetMasterAuthRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - if (action_ != other.action_) return false; - if (hasUpdate() != other.hasUpdate()) return false; - if (hasUpdate()) { - if (!getUpdate().equals(other.getUpdate())) return false; - } - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - hash = (37 * hash) + ACTION_FIELD_NUMBER; - hash = (53 * hash) + action_; - if (hasUpdate()) { - hash = (37 * hash) + UPDATE_FIELD_NUMBER; - hash = (53 * hash) + getUpdate().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.container.v1.SetMasterAuthRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetMasterAuthRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetMasterAuthRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetMasterAuthRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetMasterAuthRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetMasterAuthRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetMasterAuthRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetMasterAuthRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetMasterAuthRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetMasterAuthRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetMasterAuthRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetMasterAuthRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.SetMasterAuthRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * SetMasterAuthRequest updates the admin password of a cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.SetMasterAuthRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetMasterAuthRequest) - com.google.container.v1.SetMasterAuthRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMasterAuthRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMasterAuthRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetMasterAuthRequest.class, - com.google.container.v1.SetMasterAuthRequest.Builder.class); - } - - // Construct using com.google.container.v1.SetMasterAuthRequest.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - action_ = 0; - - if (updateBuilder_ == null) { - update_ = null; - } else { - update_ = null; - updateBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMasterAuthRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetMasterAuthRequest getDefaultInstanceForType() { - return com.google.container.v1.SetMasterAuthRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetMasterAuthRequest build() { - com.google.container.v1.SetMasterAuthRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetMasterAuthRequest buildPartial() { - com.google.container.v1.SetMasterAuthRequest result = - new com.google.container.v1.SetMasterAuthRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.action_ = action_; - if (updateBuilder_ == null) { - result.update_ = update_; - } else { - result.update_ = updateBuilder_.build(); - } - 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.container.v1.SetMasterAuthRequest) { - return mergeFrom((com.google.container.v1.SetMasterAuthRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetMasterAuthRequest other) { - if (other == com.google.container.v1.SetMasterAuthRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (other.action_ != 0) { - setActionValue(other.getActionValue()); - } - if (other.hasUpdate()) { - mergeUpdate(other.getUpdate()); - } - 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.container.v1.SetMasterAuthRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.SetMasterAuthRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private int action_ = 0; - /** - * - * - *
-     * Required. The exact form of action to be taken on the master auth.
-     * 
- * - * - * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for action. - */ - @java.lang.Override - public int getActionValue() { - return action_; - } - /** - * - * - *
-     * Required. The exact form of action to be taken on the master auth.
-     * 
- * - * - * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The enum numeric value on the wire for action to set. - * @return This builder for chaining. - */ - public Builder setActionValue(int value) { - - action_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The exact form of action to be taken on the master auth.
-     * 
- * - * - * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The action. - */ - @java.lang.Override - public com.google.container.v1.SetMasterAuthRequest.Action getAction() { - @SuppressWarnings("deprecation") - com.google.container.v1.SetMasterAuthRequest.Action result = - com.google.container.v1.SetMasterAuthRequest.Action.valueOf(action_); - return result == null - ? com.google.container.v1.SetMasterAuthRequest.Action.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Required. The exact form of action to be taken on the master auth.
-     * 
- * - * - * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The action to set. - * @return This builder for chaining. - */ - public Builder setAction(com.google.container.v1.SetMasterAuthRequest.Action value) { - if (value == null) { - throw new NullPointerException(); - } - - action_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The exact form of action to be taken on the master auth.
-     * 
- * - * - * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearAction() { - - action_ = 0; - onChanged(); - return this; - } - - private com.google.container.v1.MasterAuth update_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuth, - com.google.container.v1.MasterAuth.Builder, - com.google.container.v1.MasterAuthOrBuilder> - updateBuilder_; - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the update field is set. - */ - public boolean hasUpdate() { - return updateBuilder_ != null || update_ != null; - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The update. - */ - public com.google.container.v1.MasterAuth getUpdate() { - if (updateBuilder_ == null) { - return update_ == null ? com.google.container.v1.MasterAuth.getDefaultInstance() : update_; - } else { - return updateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdate(com.google.container.v1.MasterAuth value) { - if (updateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - update_ = value; - onChanged(); - } else { - updateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdate(com.google.container.v1.MasterAuth.Builder builderForValue) { - if (updateBuilder_ == null) { - update_ = builderForValue.build(); - onChanged(); - } else { - updateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdate(com.google.container.v1.MasterAuth value) { - if (updateBuilder_ == null) { - if (update_ != null) { - update_ = - com.google.container.v1.MasterAuth.newBuilder(update_) - .mergeFrom(value) - .buildPartial(); - } else { - update_ = value; - } - onChanged(); - } else { - updateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdate() { - if (updateBuilder_ == null) { - update_ = null; - onChanged(); - } else { - update_ = null; - updateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.MasterAuth.Builder getUpdateBuilder() { - - onChanged(); - return getUpdateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.MasterAuthOrBuilder getUpdateOrBuilder() { - if (updateBuilder_ != null) { - return updateBuilder_.getMessageOrBuilder(); - } else { - return update_ == null ? com.google.container.v1.MasterAuth.getDefaultInstance() : update_; - } - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuth, - com.google.container.v1.MasterAuth.Builder, - com.google.container.v1.MasterAuthOrBuilder> - getUpdateFieldBuilder() { - if (updateBuilder_ == null) { - updateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.MasterAuth, - com.google.container.v1.MasterAuth.Builder, - com.google.container.v1.MasterAuthOrBuilder>( - getUpdate(), getParentForChildren(), isClean()); - update_ = null; - } - return updateBuilder_; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set auth.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set auth.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set auth.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set auth.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set auth.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * - * @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.container.v1.SetMasterAuthRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetMasterAuthRequest) - private static final com.google.container.v1.SetMasterAuthRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetMasterAuthRequest(); - } - - public static com.google.container.v1.SetMasterAuthRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetMasterAuthRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetMasterAuthRequest(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.container.v1.SetMasterAuthRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java deleted file mode 100644 index 8ef7013b..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java +++ /dev/null @@ -1,212 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface SetMasterAuthRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetMasterAuthRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Required. The exact form of action to be taken on the master auth.
-   * 
- * - * - * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for action. - */ - int getActionValue(); - /** - * - * - *
-   * Required. The exact form of action to be taken on the master auth.
-   * 
- * - * - * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The action. - */ - com.google.container.v1.SetMasterAuthRequest.Action getAction(); - - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the update field is set. - */ - boolean hasUpdate(); - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The update. - */ - com.google.container.v1.MasterAuth getUpdate(); - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.container.v1.MasterAuthOrBuilder getUpdateOrBuilder(); - - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set auth.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set auth.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java deleted file mode 100644 index 690c478d..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java +++ /dev/null @@ -1,1478 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * SetMonitoringServiceRequest sets the monitoring service of a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.SetMonitoringServiceRequest} - */ -public final class SetMonitoringServiceRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.SetMonitoringServiceRequest) - SetMonitoringServiceRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetMonitoringServiceRequest.newBuilder() to construct. - private SetMonitoringServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SetMonitoringServiceRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - monitoringService_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SetMonitoringServiceRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SetMonitoringServiceRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - monitoringService_ = s; - break; - } - case 50: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMonitoringServiceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMonitoringServiceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetMonitoringServiceRequest.class, - com.google.container.v1.SetMonitoringServiceRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MONITORING_SERVICE_FIELD_NUMBER = 4; - private volatile java.lang.Object monitoringService_; - /** - * - * - *
-   * Required. The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The monitoringService. - */ - @java.lang.Override - public java.lang.String getMonitoringService() { - java.lang.Object ref = monitoringService_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - monitoringService_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for monitoringService. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMonitoringServiceBytes() { - java.lang.Object ref = monitoringService_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - monitoringService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set monitoring.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set monitoring.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!getMonitoringServiceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, monitoringService_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!getMonitoringServiceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, monitoringService_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1.SetMonitoringServiceRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetMonitoringServiceRequest other = - (com.google.container.v1.SetMonitoringServiceRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - if (!getMonitoringService().equals(other.getMonitoringService())) return false; - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - hash = (37 * hash) + MONITORING_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getMonitoringService().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.container.v1.SetMonitoringServiceRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetMonitoringServiceRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetMonitoringServiceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetMonitoringServiceRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetMonitoringServiceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetMonitoringServiceRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetMonitoringServiceRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetMonitoringServiceRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetMonitoringServiceRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetMonitoringServiceRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetMonitoringServiceRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetMonitoringServiceRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.SetMonitoringServiceRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * SetMonitoringServiceRequest sets the monitoring service of a cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.SetMonitoringServiceRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetMonitoringServiceRequest) - com.google.container.v1.SetMonitoringServiceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMonitoringServiceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMonitoringServiceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetMonitoringServiceRequest.class, - com.google.container.v1.SetMonitoringServiceRequest.Builder.class); - } - - // Construct using com.google.container.v1.SetMonitoringServiceRequest.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - monitoringService_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetMonitoringServiceRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetMonitoringServiceRequest getDefaultInstanceForType() { - return com.google.container.v1.SetMonitoringServiceRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetMonitoringServiceRequest build() { - com.google.container.v1.SetMonitoringServiceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetMonitoringServiceRequest buildPartial() { - com.google.container.v1.SetMonitoringServiceRequest result = - new com.google.container.v1.SetMonitoringServiceRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.monitoringService_ = monitoringService_; - 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.container.v1.SetMonitoringServiceRequest) { - return mergeFrom((com.google.container.v1.SetMonitoringServiceRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetMonitoringServiceRequest other) { - if (other == com.google.container.v1.SetMonitoringServiceRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getMonitoringService().isEmpty()) { - monitoringService_ = other.monitoringService_; - onChanged(); - } - 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.container.v1.SetMonitoringServiceRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.container.v1.SetMonitoringServiceRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object monitoringService_ = ""; - /** - * - * - *
-     * Required. The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The monitoringService. - */ - public java.lang.String getMonitoringService() { - java.lang.Object ref = monitoringService_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - monitoringService_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for monitoringService. - */ - public com.google.protobuf.ByteString getMonitoringServiceBytes() { - java.lang.Object ref = monitoringService_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - monitoringService_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The monitoringService to set. - * @return This builder for chaining. - */ - public Builder setMonitoringService(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - monitoringService_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearMonitoringService() { - - monitoringService_ = getDefaultInstance().getMonitoringService(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The monitoring service the cluster should use to write metrics.
-     * Currently available options:
-     * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-     * service with a Kubernetes-native resource model
-     * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-     *   longer available as of GKE 1.15).
-     * * `none` - No metrics will be exported from the cluster.
-     * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-     * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-     * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for monitoringService to set. - * @return This builder for chaining. - */ - public Builder setMonitoringServiceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - monitoringService_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set monitoring.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set monitoring.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set monitoring.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set monitoring.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to set monitoring.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @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.container.v1.SetMonitoringServiceRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetMonitoringServiceRequest) - private static final com.google.container.v1.SetMonitoringServiceRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetMonitoringServiceRequest(); - } - - public static com.google.container.v1.SetMonitoringServiceRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetMonitoringServiceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetMonitoringServiceRequest(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.container.v1.SetMonitoringServiceRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java deleted file mode 100644 index b9c41c7a..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface SetMonitoringServiceRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetMonitoringServiceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Required. The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The monitoringService. - */ - java.lang.String getMonitoringService(); - /** - * - * - *
-   * Required. The monitoring service the cluster should use to write metrics.
-   * Currently available options:
-   * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
-   * service with a Kubernetes-native resource model
-   * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
-   *   longer available as of GKE 1.15).
-   * * `none` - No metrics will be exported from the cluster.
-   * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
-   * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
-   * 
- * - * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for monitoringService. - */ - com.google.protobuf.ByteString getMonitoringServiceBytes(); - - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set monitoring.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to set monitoring.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java deleted file mode 100644 index 754e4006..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java +++ /dev/null @@ -1,1543 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * SetNetworkPolicyRequest enables/disables network policy for a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.SetNetworkPolicyRequest} - */ -public final class SetNetworkPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.SetNetworkPolicyRequest) - SetNetworkPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetNetworkPolicyRequest.newBuilder() to construct. - private SetNetworkPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SetNetworkPolicyRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SetNetworkPolicyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SetNetworkPolicyRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 34: - { - com.google.container.v1.NetworkPolicy.Builder subBuilder = null; - if (networkPolicy_ != null) { - subBuilder = networkPolicy_.toBuilder(); - } - networkPolicy_ = - input.readMessage( - com.google.container.v1.NetworkPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(networkPolicy_); - networkPolicy_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNetworkPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNetworkPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetNetworkPolicyRequest.class, - com.google.container.v1.SetNetworkPolicyRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NETWORK_POLICY_FIELD_NUMBER = 4; - private com.google.container.v1.NetworkPolicy networkPolicy_; - /** - * - * - *
-   * Required. Configuration options for the NetworkPolicy feature.
-   * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the networkPolicy field is set. - */ - @java.lang.Override - public boolean hasNetworkPolicy() { - return networkPolicy_ != null; - } - /** - * - * - *
-   * Required. Configuration options for the NetworkPolicy feature.
-   * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The networkPolicy. - */ - @java.lang.Override - public com.google.container.v1.NetworkPolicy getNetworkPolicy() { - return networkPolicy_ == null - ? com.google.container.v1.NetworkPolicy.getDefaultInstance() - : networkPolicy_; - } - /** - * - * - *
-   * Required. Configuration options for the NetworkPolicy feature.
-   * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { - return getNetworkPolicy(); - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to set networking
-   * policy. Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to set networking
-   * policy. Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (networkPolicy_ != null) { - output.writeMessage(4, getNetworkPolicy()); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (networkPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNetworkPolicy()); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1.SetNetworkPolicyRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetNetworkPolicyRequest other = - (com.google.container.v1.SetNetworkPolicyRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - if (hasNetworkPolicy() != other.hasNetworkPolicy()) return false; - if (hasNetworkPolicy()) { - if (!getNetworkPolicy().equals(other.getNetworkPolicy())) return false; - } - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - if (hasNetworkPolicy()) { - hash = (37 * hash) + NETWORK_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getNetworkPolicy().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.container.v1.SetNetworkPolicyRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetNetworkPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetNetworkPolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetNetworkPolicyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetNetworkPolicyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetNetworkPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetNetworkPolicyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetNetworkPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetNetworkPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetNetworkPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetNetworkPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetNetworkPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.SetNetworkPolicyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * SetNetworkPolicyRequest enables/disables network policy for a cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.SetNetworkPolicyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetNetworkPolicyRequest) - com.google.container.v1.SetNetworkPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNetworkPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNetworkPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetNetworkPolicyRequest.class, - com.google.container.v1.SetNetworkPolicyRequest.Builder.class); - } - - // Construct using com.google.container.v1.SetNetworkPolicyRequest.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - if (networkPolicyBuilder_ == null) { - networkPolicy_ = null; - } else { - networkPolicy_ = null; - networkPolicyBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNetworkPolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetNetworkPolicyRequest getDefaultInstanceForType() { - return com.google.container.v1.SetNetworkPolicyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetNetworkPolicyRequest build() { - com.google.container.v1.SetNetworkPolicyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetNetworkPolicyRequest buildPartial() { - com.google.container.v1.SetNetworkPolicyRequest result = - new com.google.container.v1.SetNetworkPolicyRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - if (networkPolicyBuilder_ == null) { - result.networkPolicy_ = networkPolicy_; - } else { - result.networkPolicy_ = networkPolicyBuilder_.build(); - } - 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.container.v1.SetNetworkPolicyRequest) { - return mergeFrom((com.google.container.v1.SetNetworkPolicyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetNetworkPolicyRequest other) { - if (other == com.google.container.v1.SetNetworkPolicyRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (other.hasNetworkPolicy()) { - mergeNetworkPolicy(other.getNetworkPolicy()); - } - 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.container.v1.SetNetworkPolicyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.SetNetworkPolicyRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.NetworkPolicy networkPolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkPolicy, - com.google.container.v1.NetworkPolicy.Builder, - com.google.container.v1.NetworkPolicyOrBuilder> - networkPolicyBuilder_; - /** - * - * - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the networkPolicy field is set. - */ - public boolean hasNetworkPolicy() { - return networkPolicyBuilder_ != null || networkPolicy_ != null; - } - /** - * - * - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The networkPolicy. - */ - public com.google.container.v1.NetworkPolicy getNetworkPolicy() { - if (networkPolicyBuilder_ == null) { - return networkPolicy_ == null - ? com.google.container.v1.NetworkPolicy.getDefaultInstance() - : networkPolicy_; - } else { - return networkPolicyBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setNetworkPolicy(com.google.container.v1.NetworkPolicy value) { - if (networkPolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - networkPolicy_ = value; - onChanged(); - } else { - networkPolicyBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setNetworkPolicy(com.google.container.v1.NetworkPolicy.Builder builderForValue) { - if (networkPolicyBuilder_ == null) { - networkPolicy_ = builderForValue.build(); - onChanged(); - } else { - networkPolicyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeNetworkPolicy(com.google.container.v1.NetworkPolicy value) { - if (networkPolicyBuilder_ == null) { - if (networkPolicy_ != null) { - networkPolicy_ = - com.google.container.v1.NetworkPolicy.newBuilder(networkPolicy_) - .mergeFrom(value) - .buildPartial(); - } else { - networkPolicy_ = value; - } - onChanged(); - } else { - networkPolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearNetworkPolicy() { - if (networkPolicyBuilder_ == null) { - networkPolicy_ = null; - onChanged(); - } else { - networkPolicy_ = null; - networkPolicyBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.NetworkPolicy.Builder getNetworkPolicyBuilder() { - - onChanged(); - return getNetworkPolicyFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { - if (networkPolicyBuilder_ != null) { - return networkPolicyBuilder_.getMessageOrBuilder(); - } else { - return networkPolicy_ == null - ? com.google.container.v1.NetworkPolicy.getDefaultInstance() - : networkPolicy_; - } - } - /** - * - * - *
-     * Required. Configuration options for the NetworkPolicy feature.
-     * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkPolicy, - com.google.container.v1.NetworkPolicy.Builder, - com.google.container.v1.NetworkPolicyOrBuilder> - getNetworkPolicyFieldBuilder() { - if (networkPolicyBuilder_ == null) { - networkPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkPolicy, - com.google.container.v1.NetworkPolicy.Builder, - com.google.container.v1.NetworkPolicyOrBuilder>( - getNetworkPolicy(), getParentForChildren(), isClean()); - networkPolicy_ = null; - } - return networkPolicyBuilder_; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to set networking
-     * policy. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to set networking
-     * policy. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to set networking
-     * policy. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to set networking
-     * policy. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to set networking
-     * policy. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @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.container.v1.SetNetworkPolicyRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetNetworkPolicyRequest) - private static final com.google.container.v1.SetNetworkPolicyRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetNetworkPolicyRequest(); - } - - public static com.google.container.v1.SetNetworkPolicyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetNetworkPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetNetworkPolicyRequest(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.container.v1.SetNetworkPolicyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java deleted file mode 100644 index a90459fa..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface SetNetworkPolicyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetNetworkPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Required. Configuration options for the NetworkPolicy feature.
-   * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the networkPolicy field is set. - */ - boolean hasNetworkPolicy(); - /** - * - * - *
-   * Required. Configuration options for the NetworkPolicy feature.
-   * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The networkPolicy. - */ - com.google.container.v1.NetworkPolicy getNetworkPolicy(); - /** - * - * - *
-   * Required. Configuration options for the NetworkPolicy feature.
-   * 
- * - * - * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder(); - - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to set networking
-   * policy. Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to set networking
-   * policy. Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java deleted file mode 100644 index d8a57ed8..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java +++ /dev/null @@ -1,1746 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
- * 
- * - * Protobuf type {@code google.container.v1.SetNodePoolAutoscalingRequest} - */ -public final class SetNodePoolAutoscalingRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.SetNodePoolAutoscalingRequest) - SetNodePoolAutoscalingRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetNodePoolAutoscalingRequest.newBuilder() to construct. - private SetNodePoolAutoscalingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SetNodePoolAutoscalingRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SetNodePoolAutoscalingRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SetNodePoolAutoscalingRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - nodePoolId_ = s; - break; - } - case 42: - { - com.google.container.v1.NodePoolAutoscaling.Builder subBuilder = null; - if (autoscaling_ != null) { - subBuilder = autoscaling_.toBuilder(); - } - autoscaling_ = - input.readMessage( - com.google.container.v1.NodePoolAutoscaling.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(autoscaling_); - autoscaling_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolAutoscalingRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolAutoscalingRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetNodePoolAutoscalingRequest.class, - com.google.container.v1.SetNodePoolAutoscalingRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object nodePoolId_; - /** - * - * - *
-   * Deprecated. The name of the node pool to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getNodePoolId() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodePoolId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the node pool to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The bytes for nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AUTOSCALING_FIELD_NUMBER = 5; - private com.google.container.v1.NodePoolAutoscaling autoscaling_; - /** - * - * - *
-   * Required. Autoscaling configuration for the node pool.
-   * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the autoscaling field is set. - */ - @java.lang.Override - public boolean hasAutoscaling() { - return autoscaling_ != null; - } - /** - * - * - *
-   * Required. Autoscaling configuration for the node pool.
-   * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The autoscaling. - */ - @java.lang.Override - public com.google.container.v1.NodePoolAutoscaling getAutoscaling() { - return autoscaling_ == null - ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() - : autoscaling_; - } - /** - * - * - *
-   * Required. Autoscaling configuration for the node pool.
-   * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { - return getAutoscaling(); - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster, node pool) of the node pool to set
-   * autoscaler settings. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster, node pool) of the node pool to set
-   * autoscaler settings. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!getNodePoolIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); - } - if (autoscaling_ != null) { - output.writeMessage(5, getAutoscaling()); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!getNodePoolIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); - } - if (autoscaling_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAutoscaling()); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, 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.container.v1.SetNodePoolAutoscalingRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetNodePoolAutoscalingRequest other = - (com.google.container.v1.SetNodePoolAutoscalingRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - if (!getNodePoolId().equals(other.getNodePoolId())) return false; - if (hasAutoscaling() != other.hasAutoscaling()) return false; - if (hasAutoscaling()) { - if (!getAutoscaling().equals(other.getAutoscaling())) return false; - } - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodePoolId().hashCode(); - if (hasAutoscaling()) { - hash = (37 * hash) + AUTOSCALING_FIELD_NUMBER; - hash = (53 * hash) + getAutoscaling().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.container.v1.SetNodePoolAutoscalingRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetNodePoolAutoscalingRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetNodePoolAutoscalingRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetNodePoolAutoscalingRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetNodePoolAutoscalingRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetNodePoolAutoscalingRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetNodePoolAutoscalingRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetNodePoolAutoscalingRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetNodePoolAutoscalingRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetNodePoolAutoscalingRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetNodePoolAutoscalingRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetNodePoolAutoscalingRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.SetNodePoolAutoscalingRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
-   * 
- * - * Protobuf type {@code google.container.v1.SetNodePoolAutoscalingRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetNodePoolAutoscalingRequest) - com.google.container.v1.SetNodePoolAutoscalingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolAutoscalingRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolAutoscalingRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetNodePoolAutoscalingRequest.class, - com.google.container.v1.SetNodePoolAutoscalingRequest.Builder.class); - } - - // Construct using com.google.container.v1.SetNodePoolAutoscalingRequest.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - nodePoolId_ = ""; - - if (autoscalingBuilder_ == null) { - autoscaling_ = null; - } else { - autoscaling_ = null; - autoscalingBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolAutoscalingRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetNodePoolAutoscalingRequest getDefaultInstanceForType() { - return com.google.container.v1.SetNodePoolAutoscalingRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetNodePoolAutoscalingRequest build() { - com.google.container.v1.SetNodePoolAutoscalingRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetNodePoolAutoscalingRequest buildPartial() { - com.google.container.v1.SetNodePoolAutoscalingRequest result = - new com.google.container.v1.SetNodePoolAutoscalingRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.nodePoolId_ = nodePoolId_; - if (autoscalingBuilder_ == null) { - result.autoscaling_ = autoscaling_; - } else { - result.autoscaling_ = autoscalingBuilder_.build(); - } - 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.container.v1.SetNodePoolAutoscalingRequest) { - return mergeFrom((com.google.container.v1.SetNodePoolAutoscalingRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetNodePoolAutoscalingRequest other) { - if (other == com.google.container.v1.SetNodePoolAutoscalingRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - onChanged(); - } - if (other.hasAutoscaling()) { - mergeAutoscaling(other.getAutoscaling()); - } - 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.container.v1.SetNodePoolAutoscalingRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.container.v1.SetNodePoolAutoscalingRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The nodePoolId. - */ - @java.lang.Deprecated - public java.lang.String getNodePoolId() { - java.lang.Object ref = nodePoolId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodePoolId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The bytes for nodePoolId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @param value The nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setNodePoolId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePoolId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodePoolId() { - - nodePoolId_ = getDefaultInstance().getNodePoolId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @param value The bytes for nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePoolId_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.NodePoolAutoscaling autoscaling_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoscaling, - com.google.container.v1.NodePoolAutoscaling.Builder, - com.google.container.v1.NodePoolAutoscalingOrBuilder> - autoscalingBuilder_; - /** - * - * - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the autoscaling field is set. - */ - public boolean hasAutoscaling() { - return autoscalingBuilder_ != null || autoscaling_ != null; - } - /** - * - * - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The autoscaling. - */ - public com.google.container.v1.NodePoolAutoscaling getAutoscaling() { - if (autoscalingBuilder_ == null) { - return autoscaling_ == null - ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() - : autoscaling_; - } else { - return autoscalingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAutoscaling(com.google.container.v1.NodePoolAutoscaling value) { - if (autoscalingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoscaling_ = value; - onChanged(); - } else { - autoscalingBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAutoscaling( - com.google.container.v1.NodePoolAutoscaling.Builder builderForValue) { - if (autoscalingBuilder_ == null) { - autoscaling_ = builderForValue.build(); - onChanged(); - } else { - autoscalingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeAutoscaling(com.google.container.v1.NodePoolAutoscaling value) { - if (autoscalingBuilder_ == null) { - if (autoscaling_ != null) { - autoscaling_ = - com.google.container.v1.NodePoolAutoscaling.newBuilder(autoscaling_) - .mergeFrom(value) - .buildPartial(); - } else { - autoscaling_ = value; - } - onChanged(); - } else { - autoscalingBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearAutoscaling() { - if (autoscalingBuilder_ == null) { - autoscaling_ = null; - onChanged(); - } else { - autoscaling_ = null; - autoscalingBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { - - onChanged(); - return getAutoscalingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { - if (autoscalingBuilder_ != null) { - return autoscalingBuilder_.getMessageOrBuilder(); - } else { - return autoscaling_ == null - ? com.google.container.v1.NodePoolAutoscaling.getDefaultInstance() - : autoscaling_; - } - } - /** - * - * - *
-     * Required. Autoscaling configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoscaling, - com.google.container.v1.NodePoolAutoscaling.Builder, - com.google.container.v1.NodePoolAutoscalingOrBuilder> - getAutoscalingFieldBuilder() { - if (autoscalingBuilder_ == null) { - autoscalingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePoolAutoscaling, - com.google.container.v1.NodePoolAutoscaling.Builder, - com.google.container.v1.NodePoolAutoscalingOrBuilder>( - getAutoscaling(), getParentForChildren(), isClean()); - autoscaling_ = null; - } - return autoscalingBuilder_; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster, node pool) of the node pool to set
-     * autoscaler settings. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster, node pool) of the node pool to set
-     * autoscaler settings. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster, node pool) of the node pool to set
-     * autoscaler settings. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster, node pool) of the node pool to set
-     * autoscaler settings. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster, node pool) of the node pool to set
-     * autoscaler settings. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 6; - * - * @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.container.v1.SetNodePoolAutoscalingRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetNodePoolAutoscalingRequest) - private static final com.google.container.v1.SetNodePoolAutoscalingRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetNodePoolAutoscalingRequest(); - } - - public static com.google.container.v1.SetNodePoolAutoscalingRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetNodePoolAutoscalingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetNodePoolAutoscalingRequest(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.container.v1.SetNodePoolAutoscalingRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java deleted file mode 100644 index 92f28035..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java +++ /dev/null @@ -1,217 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface SetNodePoolAutoscalingRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetNodePoolAutoscalingRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the node pool to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The nodePoolId. - */ - @java.lang.Deprecated - java.lang.String getNodePoolId(); - /** - * - * - *
-   * Deprecated. The name of the node pool to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The bytes for nodePoolId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getNodePoolIdBytes(); - - /** - * - * - *
-   * Required. Autoscaling configuration for the node pool.
-   * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the autoscaling field is set. - */ - boolean hasAutoscaling(); - /** - * - * - *
-   * Required. Autoscaling configuration for the node pool.
-   * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The autoscaling. - */ - com.google.container.v1.NodePoolAutoscaling getAutoscaling(); - /** - * - * - *
-   * Required. Autoscaling configuration for the node pool.
-   * 
- * - * - * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder(); - - /** - * - * - *
-   * The name (project, location, cluster, node pool) of the node pool to set
-   * autoscaler settings. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster, node pool) of the node pool to set
-   * autoscaler settings. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 6; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java deleted file mode 100644 index 019ecf37..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java +++ /dev/null @@ -1,1746 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * SetNodePoolManagementRequest sets the node management properties of a node
- * pool.
- * 
- * - * Protobuf type {@code google.container.v1.SetNodePoolManagementRequest} - */ -public final class SetNodePoolManagementRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.SetNodePoolManagementRequest) - SetNodePoolManagementRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetNodePoolManagementRequest.newBuilder() to construct. - private SetNodePoolManagementRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SetNodePoolManagementRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SetNodePoolManagementRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SetNodePoolManagementRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - nodePoolId_ = s; - break; - } - case 42: - { - com.google.container.v1.NodeManagement.Builder subBuilder = null; - if (management_ != null) { - subBuilder = management_.toBuilder(); - } - management_ = - input.readMessage( - com.google.container.v1.NodeManagement.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(management_); - management_ = subBuilder.buildPartial(); - } - - break; - } - case 58: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolManagementRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolManagementRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetNodePoolManagementRequest.class, - com.google.container.v1.SetNodePoolManagementRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object nodePoolId_; - /** - * - * - *
-   * Deprecated. The name of the node pool to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getNodePoolId() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodePoolId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the node pool to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The bytes for nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MANAGEMENT_FIELD_NUMBER = 5; - private com.google.container.v1.NodeManagement management_; - /** - * - * - *
-   * Required. NodeManagement configuration for the node pool.
-   * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the management field is set. - */ - @java.lang.Override - public boolean hasManagement() { - return management_ != null; - } - /** - * - * - *
-   * Required. NodeManagement configuration for the node pool.
-   * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The management. - */ - @java.lang.Override - public com.google.container.v1.NodeManagement getManagement() { - return management_ == null - ? com.google.container.v1.NodeManagement.getDefaultInstance() - : management_; - } - /** - * - * - *
-   * Required. NodeManagement configuration for the node pool.
-   * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { - return getManagement(); - } - - public static final int NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to set
-   * management properties. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 7; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to set
-   * management properties. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 7; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!getNodePoolIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); - } - if (management_ != null) { - output.writeMessage(5, getManagement()); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!getNodePoolIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); - } - if (management_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getManagement()); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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.container.v1.SetNodePoolManagementRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetNodePoolManagementRequest other = - (com.google.container.v1.SetNodePoolManagementRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - if (!getNodePoolId().equals(other.getNodePoolId())) return false; - if (hasManagement() != other.hasManagement()) return false; - if (hasManagement()) { - if (!getManagement().equals(other.getManagement())) return false; - } - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodePoolId().hashCode(); - if (hasManagement()) { - hash = (37 * hash) + MANAGEMENT_FIELD_NUMBER; - hash = (53 * hash) + getManagement().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.container.v1.SetNodePoolManagementRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetNodePoolManagementRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetNodePoolManagementRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetNodePoolManagementRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetNodePoolManagementRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetNodePoolManagementRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetNodePoolManagementRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetNodePoolManagementRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetNodePoolManagementRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetNodePoolManagementRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetNodePoolManagementRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetNodePoolManagementRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.SetNodePoolManagementRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * SetNodePoolManagementRequest sets the node management properties of a node
-   * pool.
-   * 
- * - * Protobuf type {@code google.container.v1.SetNodePoolManagementRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetNodePoolManagementRequest) - com.google.container.v1.SetNodePoolManagementRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolManagementRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolManagementRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetNodePoolManagementRequest.class, - com.google.container.v1.SetNodePoolManagementRequest.Builder.class); - } - - // Construct using com.google.container.v1.SetNodePoolManagementRequest.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - nodePoolId_ = ""; - - if (managementBuilder_ == null) { - management_ = null; - } else { - management_ = null; - managementBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolManagementRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetNodePoolManagementRequest getDefaultInstanceForType() { - return com.google.container.v1.SetNodePoolManagementRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetNodePoolManagementRequest build() { - com.google.container.v1.SetNodePoolManagementRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetNodePoolManagementRequest buildPartial() { - com.google.container.v1.SetNodePoolManagementRequest result = - new com.google.container.v1.SetNodePoolManagementRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.nodePoolId_ = nodePoolId_; - if (managementBuilder_ == null) { - result.management_ = management_; - } else { - result.management_ = managementBuilder_.build(); - } - 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.container.v1.SetNodePoolManagementRequest) { - return mergeFrom((com.google.container.v1.SetNodePoolManagementRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetNodePoolManagementRequest other) { - if (other == com.google.container.v1.SetNodePoolManagementRequest.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - onChanged(); - } - if (other.hasManagement()) { - mergeManagement(other.getManagement()); - } - 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.container.v1.SetNodePoolManagementRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.container.v1.SetNodePoolManagementRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The nodePoolId. - */ - @java.lang.Deprecated - public java.lang.String getNodePoolId() { - java.lang.Object ref = nodePoolId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodePoolId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The bytes for nodePoolId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @param value The nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setNodePoolId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePoolId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodePoolId() { - - nodePoolId_ = getDefaultInstance().getNodePoolId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @param value The bytes for nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePoolId_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.NodeManagement management_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeManagement, - com.google.container.v1.NodeManagement.Builder, - com.google.container.v1.NodeManagementOrBuilder> - managementBuilder_; - /** - * - * - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the management field is set. - */ - public boolean hasManagement() { - return managementBuilder_ != null || management_ != null; - } - /** - * - * - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The management. - */ - public com.google.container.v1.NodeManagement getManagement() { - if (managementBuilder_ == null) { - return management_ == null - ? com.google.container.v1.NodeManagement.getDefaultInstance() - : management_; - } else { - return managementBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setManagement(com.google.container.v1.NodeManagement value) { - if (managementBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - management_ = value; - onChanged(); - } else { - managementBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setManagement(com.google.container.v1.NodeManagement.Builder builderForValue) { - if (managementBuilder_ == null) { - management_ = builderForValue.build(); - onChanged(); - } else { - managementBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeManagement(com.google.container.v1.NodeManagement value) { - if (managementBuilder_ == null) { - if (management_ != null) { - management_ = - com.google.container.v1.NodeManagement.newBuilder(management_) - .mergeFrom(value) - .buildPartial(); - } else { - management_ = value; - } - onChanged(); - } else { - managementBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearManagement() { - if (managementBuilder_ == null) { - management_ = null; - onChanged(); - } else { - management_ = null; - managementBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.NodeManagement.Builder getManagementBuilder() { - - onChanged(); - return getManagementFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { - if (managementBuilder_ != null) { - return managementBuilder_.getMessageOrBuilder(); - } else { - return management_ == null - ? com.google.container.v1.NodeManagement.getDefaultInstance() - : management_; - } - } - /** - * - * - *
-     * Required. NodeManagement configuration for the node pool.
-     * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeManagement, - com.google.container.v1.NodeManagement.Builder, - com.google.container.v1.NodeManagementOrBuilder> - getManagementFieldBuilder() { - if (managementBuilder_ == null) { - managementBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodeManagement, - com.google.container.v1.NodeManagement.Builder, - com.google.container.v1.NodeManagementOrBuilder>( - getManagement(), getParentForChildren(), isClean()); - management_ = null; - } - return managementBuilder_; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * management properties. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * management properties. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * management properties. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * management properties. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * management properties. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * - * @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.container.v1.SetNodePoolManagementRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetNodePoolManagementRequest) - private static final com.google.container.v1.SetNodePoolManagementRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetNodePoolManagementRequest(); - } - - public static com.google.container.v1.SetNodePoolManagementRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetNodePoolManagementRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetNodePoolManagementRequest(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.container.v1.SetNodePoolManagementRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java deleted file mode 100644 index 06669a73..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java +++ /dev/null @@ -1,217 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface SetNodePoolManagementRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetNodePoolManagementRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the node pool to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The nodePoolId. - */ - @java.lang.Deprecated - java.lang.String getNodePoolId(); - /** - * - * - *
-   * Deprecated. The name of the node pool to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The bytes for nodePoolId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getNodePoolIdBytes(); - - /** - * - * - *
-   * Required. NodeManagement configuration for the node pool.
-   * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the management field is set. - */ - boolean hasManagement(); - /** - * - * - *
-   * Required. NodeManagement configuration for the node pool.
-   * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The management. - */ - com.google.container.v1.NodeManagement getManagement(); - /** - * - * - *
-   * Required. NodeManagement configuration for the node pool.
-   * 
- * - * - * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder(); - - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to set
-   * management properties. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 7; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to set
-   * management properties. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 7; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java deleted file mode 100644 index 47f8d3cb..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java +++ /dev/null @@ -1,1533 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * SetNodePoolSizeRequest sets the size a node
- * pool.
- * 
- * - * Protobuf type {@code google.container.v1.SetNodePoolSizeRequest} - */ -public final class SetNodePoolSizeRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.SetNodePoolSizeRequest) - SetNodePoolSizeRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SetNodePoolSizeRequest.newBuilder() to construct. - private SetNodePoolSizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SetNodePoolSizeRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SetNodePoolSizeRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private SetNodePoolSizeRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - nodePoolId_ = s; - break; - } - case 40: - { - nodeCount_ = input.readInt32(); - break; - } - case 58: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolSizeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolSizeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetNodePoolSizeRequest.class, - com.google.container.v1.SetNodePoolSizeRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object nodePoolId_; - /** - * - * - *
-   * Deprecated. The name of the node pool to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getNodePoolId() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodePoolId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the node pool to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The bytes for nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_COUNT_FIELD_NUMBER = 5; - private int nodeCount_; - /** - * - * - *
-   * Required. The desired node count for the pool.
-   * 
- * - * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The nodeCount. - */ - @java.lang.Override - public int getNodeCount() { - return nodeCount_; - } - - public static final int NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to set
-   * size.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 7; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to set
-   * size.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 7; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!getNodePoolIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); - } - if (nodeCount_ != 0) { - output.writeInt32(5, nodeCount_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!getNodePoolIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); - } - if (nodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, nodeCount_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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.container.v1.SetNodePoolSizeRequest)) { - return super.equals(obj); - } - com.google.container.v1.SetNodePoolSizeRequest other = - (com.google.container.v1.SetNodePoolSizeRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - if (!getNodePoolId().equals(other.getNodePoolId())) return false; - if (getNodeCount() != other.getNodeCount()) return false; - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodePoolId().hashCode(); - hash = (37 * hash) + NODE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getNodeCount(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.SetNodePoolSizeRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetNodePoolSizeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetNodePoolSizeRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetNodePoolSizeRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetNodePoolSizeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.SetNodePoolSizeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.SetNodePoolSizeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetNodePoolSizeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetNodePoolSizeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetNodePoolSizeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.SetNodePoolSizeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.SetNodePoolSizeRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.SetNodePoolSizeRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * SetNodePoolSizeRequest sets the size a node
-   * pool.
-   * 
- * - * Protobuf type {@code google.container.v1.SetNodePoolSizeRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.SetNodePoolSizeRequest) - com.google.container.v1.SetNodePoolSizeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolSizeRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolSizeRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.SetNodePoolSizeRequest.class, - com.google.container.v1.SetNodePoolSizeRequest.Builder.class); - } - - // Construct using com.google.container.v1.SetNodePoolSizeRequest.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - nodePoolId_ = ""; - - nodeCount_ = 0; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_SetNodePoolSizeRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.SetNodePoolSizeRequest getDefaultInstanceForType() { - return com.google.container.v1.SetNodePoolSizeRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.SetNodePoolSizeRequest build() { - com.google.container.v1.SetNodePoolSizeRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.SetNodePoolSizeRequest buildPartial() { - com.google.container.v1.SetNodePoolSizeRequest result = - new com.google.container.v1.SetNodePoolSizeRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.nodePoolId_ = nodePoolId_; - result.nodeCount_ = nodeCount_; - 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.container.v1.SetNodePoolSizeRequest) { - return mergeFrom((com.google.container.v1.SetNodePoolSizeRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.SetNodePoolSizeRequest other) { - if (other == com.google.container.v1.SetNodePoolSizeRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - onChanged(); - } - if (other.getNodeCount() != 0) { - setNodeCount(other.getNodeCount()); - } - 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.container.v1.SetNodePoolSizeRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.SetNodePoolSizeRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The nodePoolId. - */ - @java.lang.Deprecated - public java.lang.String getNodePoolId() { - java.lang.Object ref = nodePoolId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodePoolId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The bytes for nodePoolId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @param value The nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setNodePoolId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePoolId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodePoolId() { - - nodePoolId_ = getDefaultInstance().getNodePoolId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to update.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @param value The bytes for nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePoolId_ = value; - onChanged(); - return this; - } - - private int nodeCount_; - /** - * - * - *
-     * Required. The desired node count for the pool.
-     * 
- * - * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The nodeCount. - */ - @java.lang.Override - public int getNodeCount() { - return nodeCount_; - } - /** - * - * - *
-     * Required. The desired node count for the pool.
-     * 
- * - * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The nodeCount to set. - * @return This builder for chaining. - */ - public Builder setNodeCount(int value) { - - nodeCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The desired node count for the pool.
-     * 
- * - * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearNodeCount() { - - nodeCount_ = 0; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * size.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * size.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * size.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * size.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster, node pool id) of the node pool to set
-     * size.
-     * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 7; - * - * @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.container.v1.SetNodePoolSizeRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.SetNodePoolSizeRequest) - private static final com.google.container.v1.SetNodePoolSizeRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.SetNodePoolSizeRequest(); - } - - public static com.google.container.v1.SetNodePoolSizeRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetNodePoolSizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SetNodePoolSizeRequest(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.container.v1.SetNodePoolSizeRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java deleted file mode 100644 index c107d3a0..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface SetNodePoolSizeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.SetNodePoolSizeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the node pool to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The nodePoolId. - */ - @java.lang.Deprecated - java.lang.String getNodePoolId(); - /** - * - * - *
-   * Deprecated. The name of the node pool to update.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The bytes for nodePoolId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getNodePoolIdBytes(); - - /** - * - * - *
-   * Required. The desired node count for the pool.
-   * 
- * - * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The nodeCount. - */ - int getNodeCount(); - - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to set
-   * size.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 7; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster, node pool id) of the node pool to set
-   * size.
-   * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 7; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfig.java deleted file mode 100644 index ac5d2dc9..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfig.java +++ /dev/null @@ -1,662 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * A set of Shielded Instance options.
- * 
- * - * Protobuf type {@code google.container.v1.ShieldedInstanceConfig} - */ -public final class ShieldedInstanceConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.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: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ShieldedInstanceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ShieldedInstanceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ShieldedInstanceConfig.class, - com.google.container.v1.ShieldedInstanceConfig.Builder.class); - } - - public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1; - private boolean enableSecureBoot_; - /** - * - * - *
-   * Defines whether the instance has Secure Boot enabled.
-   * Secure Boot helps ensure that the system only runs authentic software by
-   * verifying the digital signature of all boot components, and halting the
-   * boot process if signature verification fails.
-   * 
- * - * bool enable_secure_boot = 1; - * - * @return The enableSecureBoot. - */ - @java.lang.Override - public boolean getEnableSecureBoot() { - return enableSecureBoot_; - } - - public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 2; - private boolean enableIntegrityMonitoring_; - /** - * - * - *
-   * Defines whether the instance has integrity monitoring enabled.
-   * Enables monitoring and attestation of the boot integrity of the instance.
-   * The attestation is performed against the integrity policy baseline. This
-   * baseline is initially derived from the implicitly trusted boot image when
-   * the instance is created.
-   * 
- * - * bool enable_integrity_monitoring = 2; - * - * @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 (enableIntegrityMonitoring_ != false) { - output.writeBool(2, 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 (enableIntegrityMonitoring_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, 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.container.v1.ShieldedInstanceConfig)) { - return super.equals(obj); - } - com.google.container.v1.ShieldedInstanceConfig other = - (com.google.container.v1.ShieldedInstanceConfig) obj; - - if (getEnableSecureBoot() != other.getEnableSecureBoot()) 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_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.container.v1.ShieldedInstanceConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.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.container.v1.ShieldedInstanceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.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.container.v1.ShieldedInstanceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ShieldedInstanceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ShieldedInstanceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.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.container.v1.ShieldedInstanceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.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.container.v1.ShieldedInstanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.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.container.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; - } - /** - * - * - *
-   * A set of Shielded Instance options.
-   * 
- * - * Protobuf type {@code google.container.v1.ShieldedInstanceConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ShieldedInstanceConfig) - com.google.container.v1.ShieldedInstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ShieldedInstanceConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ShieldedInstanceConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ShieldedInstanceConfig.class, - com.google.container.v1.ShieldedInstanceConfig.Builder.class); - } - - // Construct using com.google.container.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; - - enableIntegrityMonitoring_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ShieldedInstanceConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ShieldedInstanceConfig getDefaultInstanceForType() { - return com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ShieldedInstanceConfig build() { - com.google.container.v1.ShieldedInstanceConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ShieldedInstanceConfig buildPartial() { - com.google.container.v1.ShieldedInstanceConfig result = - new com.google.container.v1.ShieldedInstanceConfig(this); - result.enableSecureBoot_ = enableSecureBoot_; - 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.container.v1.ShieldedInstanceConfig) { - return mergeFrom((com.google.container.v1.ShieldedInstanceConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ShieldedInstanceConfig other) { - if (other == com.google.container.v1.ShieldedInstanceConfig.getDefaultInstance()) return this; - if (other.getEnableSecureBoot() != false) { - setEnableSecureBoot(other.getEnableSecureBoot()); - } - 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.container.v1.ShieldedInstanceConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.ShieldedInstanceConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean enableSecureBoot_; - /** - * - * - *
-     * Defines whether the instance has Secure Boot enabled.
-     * Secure Boot helps ensure that the system only runs authentic software by
-     * verifying the digital signature of all boot components, and halting the
-     * boot process if signature verification fails.
-     * 
- * - * bool enable_secure_boot = 1; - * - * @return The enableSecureBoot. - */ - @java.lang.Override - public boolean getEnableSecureBoot() { - return enableSecureBoot_; - } - /** - * - * - *
-     * Defines whether the instance has Secure Boot enabled.
-     * Secure Boot helps ensure that the system only runs authentic software by
-     * verifying the digital signature of all boot components, and halting the
-     * boot process if signature verification fails.
-     * 
- * - * bool enable_secure_boot = 1; - * - * @param value The enableSecureBoot to set. - * @return This builder for chaining. - */ - public Builder setEnableSecureBoot(boolean value) { - - enableSecureBoot_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Defines whether the instance has Secure Boot enabled.
-     * Secure Boot helps ensure that the system only runs authentic software by
-     * verifying the digital signature of all boot components, and halting the
-     * boot process if signature verification fails.
-     * 
- * - * bool enable_secure_boot = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnableSecureBoot() { - - enableSecureBoot_ = false; - onChanged(); - return this; - } - - private boolean enableIntegrityMonitoring_; - /** - * - * - *
-     * Defines whether the instance has integrity monitoring enabled.
-     * Enables monitoring and attestation of the boot integrity of the instance.
-     * The attestation is performed against the integrity policy baseline. This
-     * baseline is initially derived from the implicitly trusted boot image when
-     * the instance is created.
-     * 
- * - * bool enable_integrity_monitoring = 2; - * - * @return The enableIntegrityMonitoring. - */ - @java.lang.Override - public boolean getEnableIntegrityMonitoring() { - return enableIntegrityMonitoring_; - } - /** - * - * - *
-     * Defines whether the instance has integrity monitoring enabled.
-     * Enables monitoring and attestation of the boot integrity of the instance.
-     * The attestation is performed against the integrity policy baseline. This
-     * baseline is initially derived from the implicitly trusted boot image when
-     * the instance is created.
-     * 
- * - * bool enable_integrity_monitoring = 2; - * - * @param value The enableIntegrityMonitoring to set. - * @return This builder for chaining. - */ - public Builder setEnableIntegrityMonitoring(boolean value) { - - enableIntegrityMonitoring_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Defines whether the instance has integrity monitoring enabled.
-     * Enables monitoring and attestation of the boot integrity of the instance.
-     * The attestation is performed against the integrity policy baseline. This
-     * baseline is initially derived from the implicitly trusted boot image when
-     * the instance is created.
-     * 
- * - * bool enable_integrity_monitoring = 2; - * - * @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.container.v1.ShieldedInstanceConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ShieldedInstanceConfig) - private static final com.google.container.v1.ShieldedInstanceConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ShieldedInstanceConfig(); - } - - public static com.google.container.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.container.v1.ShieldedInstanceConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfigOrBuilder.java deleted file mode 100644 index 82f09724..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfigOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ShieldedInstanceConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ShieldedInstanceConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Defines whether the instance has Secure Boot enabled.
-   * Secure Boot helps ensure that the system only runs authentic software by
-   * verifying the digital signature of all boot components, and halting the
-   * boot process if signature verification fails.
-   * 
- * - * bool enable_secure_boot = 1; - * - * @return The enableSecureBoot. - */ - boolean getEnableSecureBoot(); - - /** - * - * - *
-   * Defines whether the instance has integrity monitoring enabled.
-   * Enables monitoring and attestation of the boot integrity of the instance.
-   * The attestation is performed against the integrity policy baseline. This
-   * baseline is initially derived from the implicitly trusted boot image when
-   * the instance is created.
-   * 
- * - * bool enable_integrity_monitoring = 2; - * - * @return The enableIntegrityMonitoring. - */ - boolean getEnableIntegrityMonitoring(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodes.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodes.java deleted file mode 100644 index dcda1198..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodes.java +++ /dev/null @@ -1,542 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Configuration of Shielded Nodes feature.
- * 
- * - * Protobuf type {@code google.container.v1.ShieldedNodes} - */ -public final class ShieldedNodes extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.ShieldedNodes) - ShieldedNodesOrBuilder { - private static final long serialVersionUID = 0L; - // Use ShieldedNodes.newBuilder() to construct. - private ShieldedNodes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ShieldedNodes() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ShieldedNodes(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ShieldedNodes( - 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: - { - enabled_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ShieldedNodes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ShieldedNodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ShieldedNodes.class, - com.google.container.v1.ShieldedNodes.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - * - * - *
-   * Whether Shielded Nodes features are enabled on all nodes in this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); - } - 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.container.v1.ShieldedNodes)) { - return super.equals(obj); - } - com.google.container.v1.ShieldedNodes other = (com.google.container.v1.ShieldedNodes) obj; - - if (getEnabled() != other.getEnabled()) 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) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.ShieldedNodes parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ShieldedNodes parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ShieldedNodes parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ShieldedNodes parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ShieldedNodes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.ShieldedNodes parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.ShieldedNodes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ShieldedNodes parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ShieldedNodes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.ShieldedNodes parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.ShieldedNodes parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.ShieldedNodes parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.ShieldedNodes prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 of Shielded Nodes feature.
-   * 
- * - * Protobuf type {@code google.container.v1.ShieldedNodes} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.ShieldedNodes) - com.google.container.v1.ShieldedNodesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ShieldedNodes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ShieldedNodes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.ShieldedNodes.class, - com.google.container.v1.ShieldedNodes.Builder.class); - } - - // Construct using com.google.container.v1.ShieldedNodes.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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_ShieldedNodes_descriptor; - } - - @java.lang.Override - public com.google.container.v1.ShieldedNodes getDefaultInstanceForType() { - return com.google.container.v1.ShieldedNodes.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.ShieldedNodes build() { - com.google.container.v1.ShieldedNodes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.ShieldedNodes buildPartial() { - com.google.container.v1.ShieldedNodes result = - new com.google.container.v1.ShieldedNodes(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.ShieldedNodes) { - return mergeFrom((com.google.container.v1.ShieldedNodes) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.ShieldedNodes other) { - if (other == com.google.container.v1.ShieldedNodes.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - 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.container.v1.ShieldedNodes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.ShieldedNodes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean enabled_; - /** - * - * - *
-     * Whether Shielded Nodes features are enabled on all nodes in this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Whether Shielded Nodes features are enabled on all nodes in this cluster.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether Shielded Nodes features are enabled on all nodes in this cluster.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = 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.container.v1.ShieldedNodes) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.ShieldedNodes) - private static final com.google.container.v1.ShieldedNodes DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.ShieldedNodes(); - } - - public static com.google.container.v1.ShieldedNodes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ShieldedNodes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ShieldedNodes(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.container.v1.ShieldedNodes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodesOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodesOrBuilder.java deleted file mode 100644 index d933e9bd..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodesOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface ShieldedNodesOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.ShieldedNodes) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether Shielded Nodes features are enabled on all nodes in this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java deleted file mode 100644 index f836ad58..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * StartIPRotationRequest creates a new IP for the cluster and then performs
- * a node upgrade on each node pool to point to the new IP.
- * 
- * - * Protobuf type {@code google.container.v1.StartIPRotationRequest} - */ -public final class StartIPRotationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.StartIPRotationRequest) - StartIPRotationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use StartIPRotationRequest.newBuilder() to construct. - private StartIPRotationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private StartIPRotationRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new StartIPRotationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private StartIPRotationRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 56: - { - rotateCredentials_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_StartIPRotationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_StartIPRotationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.StartIPRotationRequest.class, - com.google.container.v1.StartIPRotationRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to start IP
-   * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to start IP
-   * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @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 ROTATE_CREDENTIALS_FIELD_NUMBER = 7; - private boolean rotateCredentials_; - /** - * - * - *
-   * Whether to rotate credentials during IP rotation.
-   * 
- * - * bool rotate_credentials = 7; - * - * @return The rotateCredentials. - */ - @java.lang.Override - public boolean getRotateCredentials() { - return rotateCredentials_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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 (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_); - } - if (rotateCredentials_ != false) { - output.writeBool(7, rotateCredentials_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_); - } - if (rotateCredentials_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, rotateCredentials_); - } - 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.container.v1.StartIPRotationRequest)) { - return super.equals(obj); - } - com.google.container.v1.StartIPRotationRequest other = - (com.google.container.v1.StartIPRotationRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - if (!getName().equals(other.getName())) return false; - if (getRotateCredentials() != other.getRotateCredentials()) 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) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + ROTATE_CREDENTIALS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRotateCredentials()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.StartIPRotationRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.StartIPRotationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.StartIPRotationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.StartIPRotationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.StartIPRotationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.StartIPRotationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.StartIPRotationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.StartIPRotationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.StartIPRotationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.StartIPRotationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.StartIPRotationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.StartIPRotationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.StartIPRotationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * StartIPRotationRequest creates a new IP for the cluster and then performs
-   * a node upgrade on each node pool to point to the new IP.
-   * 
- * - * Protobuf type {@code google.container.v1.StartIPRotationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.StartIPRotationRequest) - com.google.container.v1.StartIPRotationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_StartIPRotationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_StartIPRotationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.StartIPRotationRequest.class, - com.google.container.v1.StartIPRotationRequest.Builder.class); - } - - // Construct using com.google.container.v1.StartIPRotationRequest.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - name_ = ""; - - rotateCredentials_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_StartIPRotationRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.StartIPRotationRequest getDefaultInstanceForType() { - return com.google.container.v1.StartIPRotationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.StartIPRotationRequest build() { - com.google.container.v1.StartIPRotationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.StartIPRotationRequest buildPartial() { - com.google.container.v1.StartIPRotationRequest result = - new com.google.container.v1.StartIPRotationRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.name_ = name_; - result.rotateCredentials_ = rotateCredentials_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.StartIPRotationRequest) { - return mergeFrom((com.google.container.v1.StartIPRotationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.StartIPRotationRequest other) { - if (other == com.google.container.v1.StartIPRotationRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getRotateCredentials() != false) { - setRotateCredentials(other.getRotateCredentials()); - } - 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.container.v1.StartIPRotationRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.StartIPRotationRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://developers.google.com/console/help/new/#projectnumber).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to start IP
-     * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to start IP
-     * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to start IP
-     * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to start IP
-     * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster id) of the cluster to start IP
-     * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 6; - * - * @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 boolean rotateCredentials_; - /** - * - * - *
-     * Whether to rotate credentials during IP rotation.
-     * 
- * - * bool rotate_credentials = 7; - * - * @return The rotateCredentials. - */ - @java.lang.Override - public boolean getRotateCredentials() { - return rotateCredentials_; - } - /** - * - * - *
-     * Whether to rotate credentials during IP rotation.
-     * 
- * - * bool rotate_credentials = 7; - * - * @param value The rotateCredentials to set. - * @return This builder for chaining. - */ - public Builder setRotateCredentials(boolean value) { - - rotateCredentials_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether to rotate credentials during IP rotation.
-     * 
- * - * bool rotate_credentials = 7; - * - * @return This builder for chaining. - */ - public Builder clearRotateCredentials() { - - rotateCredentials_ = 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.container.v1.StartIPRotationRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.StartIPRotationRequest) - private static final com.google.container.v1.StartIPRotationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.StartIPRotationRequest(); - } - - public static com.google.container.v1.StartIPRotationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartIPRotationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartIPRotationRequest(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.container.v1.StartIPRotationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java deleted file mode 100644 index 9e3d8040..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface StartIPRotationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.StartIPRotationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://developers.google.com/console/help/new/#projectnumber).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to start IP
-   * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster id) of the cluster to start IP
-   * rotation. Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 6; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Whether to rotate credentials during IP rotation.
-   * 
- * - * bool rotate_credentials = 7; - * - * @return The rotateCredentials. - */ - boolean getRotateCredentials(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java deleted file mode 100644 index 337cdc90..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java +++ /dev/null @@ -1,1016 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * StatusCondition describes why a cluster or a node pool has a certain status
- * (e.g., ERROR or DEGRADED).
- * 
- * - * Protobuf type {@code google.container.v1.StatusCondition} - */ -public final class StatusCondition extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.StatusCondition) - StatusConditionOrBuilder { - private static final long serialVersionUID = 0L; - // Use StatusCondition.newBuilder() to construct. - private StatusCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private StatusCondition() { - code_ = 0; - message_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new StatusCondition(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private StatusCondition( - 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(); - - code_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_StatusCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_StatusCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.StatusCondition.class, - com.google.container.v1.StatusCondition.Builder.class); - } - - /** - * - * - *
-   * Code for each condition
-   * 
- * - * Protobuf enum {@code google.container.v1.StatusCondition.Code} - */ - public enum Code implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * UNKNOWN indicates a generic condition.
-     * 
- * - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * - * - *
-     * GCE_STOCKOUT indicates that Google Compute Engine resources are
-     * temporarily unavailable.
-     * 
- * - * GCE_STOCKOUT = 1; - */ - GCE_STOCKOUT(1), - /** - * - * - *
-     * GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot
-     * service account.
-     * 
- * - * GKE_SERVICE_ACCOUNT_DELETED = 2; - */ - GKE_SERVICE_ACCOUNT_DELETED(2), - /** - * - * - *
-     * Google Compute Engine quota was exceeded.
-     * 
- * - * GCE_QUOTA_EXCEEDED = 3; - */ - GCE_QUOTA_EXCEEDED(3), - /** - * - * - *
-     * Cluster state was manually changed by an SRE due to a system logic error.
-     * 
- * - * SET_BY_OPERATOR = 4; - */ - SET_BY_OPERATOR(4), - /** - * - * - *
-     * Unable to perform an encrypt operation against the CloudKMS key used for
-     * etcd level encryption.
-     * More codes TBA
-     * 
- * - * CLOUD_KMS_KEY_ERROR = 7; - */ - CLOUD_KMS_KEY_ERROR(7), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * UNKNOWN indicates a generic condition.
-     * 
- * - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * - * - *
-     * GCE_STOCKOUT indicates that Google Compute Engine resources are
-     * temporarily unavailable.
-     * 
- * - * GCE_STOCKOUT = 1; - */ - public static final int GCE_STOCKOUT_VALUE = 1; - /** - * - * - *
-     * GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot
-     * service account.
-     * 
- * - * GKE_SERVICE_ACCOUNT_DELETED = 2; - */ - public static final int GKE_SERVICE_ACCOUNT_DELETED_VALUE = 2; - /** - * - * - *
-     * Google Compute Engine quota was exceeded.
-     * 
- * - * GCE_QUOTA_EXCEEDED = 3; - */ - public static final int GCE_QUOTA_EXCEEDED_VALUE = 3; - /** - * - * - *
-     * Cluster state was manually changed by an SRE due to a system logic error.
-     * 
- * - * SET_BY_OPERATOR = 4; - */ - public static final int SET_BY_OPERATOR_VALUE = 4; - /** - * - * - *
-     * Unable to perform an encrypt operation against the CloudKMS key used for
-     * etcd level encryption.
-     * More codes TBA
-     * 
- * - * CLOUD_KMS_KEY_ERROR = 7; - */ - public static final int CLOUD_KMS_KEY_ERROR_VALUE = 7; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Code valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Code forNumber(int value) { - switch (value) { - case 0: - return UNKNOWN; - case 1: - return GCE_STOCKOUT; - case 2: - return GKE_SERVICE_ACCOUNT_DELETED; - case 3: - return GCE_QUOTA_EXCEEDED; - case 4: - return SET_BY_OPERATOR; - case 7: - return CLOUD_KMS_KEY_ERROR; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.StatusCondition.getDescriptor().getEnumTypes().get(0); - } - - private static final Code[] VALUES = values(); - - public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Code(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.StatusCondition.Code) - } - - public static final int CODE_FIELD_NUMBER = 1; - private int code_; - /** - * - * - *
-   * Machine-friendly representation of the condition
-   * 
- * - * .google.container.v1.StatusCondition.Code code = 1; - * - * @return The enum numeric value on the wire for code. - */ - @java.lang.Override - public int getCodeValue() { - return code_; - } - /** - * - * - *
-   * Machine-friendly representation of the condition
-   * 
- * - * .google.container.v1.StatusCondition.Code code = 1; - * - * @return The code. - */ - @java.lang.Override - public com.google.container.v1.StatusCondition.Code getCode() { - @SuppressWarnings("deprecation") - com.google.container.v1.StatusCondition.Code result = - com.google.container.v1.StatusCondition.Code.valueOf(code_); - return result == null ? com.google.container.v1.StatusCondition.Code.UNRECOGNIZED : result; - } - - public static final int MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object message_; - /** - * - * - *
-   * Human-friendly representation of the condition
-   * 
- * - * string message = 2; - * - * @return The message. - */ - @java.lang.Override - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } - } - /** - * - * - *
-   * Human-friendly representation of the condition
-   * 
- * - * string message = 2; - * - * @return The bytes for message. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ != com.google.container.v1.StatusCondition.Code.UNKNOWN.getNumber()) { - output.writeEnum(1, code_); - } - if (!getMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (code_ != com.google.container.v1.StatusCondition.Code.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); - } - if (!getMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); - } - 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.container.v1.StatusCondition)) { - return super.equals(obj); - } - com.google.container.v1.StatusCondition other = (com.google.container.v1.StatusCondition) obj; - - if (code_ != other.code_) return false; - if (!getMessage().equals(other.getMessage())) 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) + CODE_FIELD_NUMBER; - hash = (53 * hash) + code_; - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.StatusCondition parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.StatusCondition parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.StatusCondition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.StatusCondition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.StatusCondition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.StatusCondition parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.StatusCondition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.StatusCondition parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.StatusCondition parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.StatusCondition parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.StatusCondition parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.StatusCondition parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.StatusCondition prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * StatusCondition describes why a cluster or a node pool has a certain status
-   * (e.g., ERROR or DEGRADED).
-   * 
- * - * Protobuf type {@code google.container.v1.StatusCondition} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.StatusCondition) - com.google.container.v1.StatusConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_StatusCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_StatusCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.StatusCondition.class, - com.google.container.v1.StatusCondition.Builder.class); - } - - // Construct using com.google.container.v1.StatusCondition.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(); - code_ = 0; - - message_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_StatusCondition_descriptor; - } - - @java.lang.Override - public com.google.container.v1.StatusCondition getDefaultInstanceForType() { - return com.google.container.v1.StatusCondition.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.StatusCondition build() { - com.google.container.v1.StatusCondition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.StatusCondition buildPartial() { - com.google.container.v1.StatusCondition result = - new com.google.container.v1.StatusCondition(this); - result.code_ = code_; - result.message_ = message_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.StatusCondition) { - return mergeFrom((com.google.container.v1.StatusCondition) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.StatusCondition other) { - if (other == com.google.container.v1.StatusCondition.getDefaultInstance()) return this; - if (other.code_ != 0) { - setCodeValue(other.getCodeValue()); - } - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - 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.container.v1.StatusCondition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.StatusCondition) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int code_ = 0; - /** - * - * - *
-     * Machine-friendly representation of the condition
-     * 
- * - * .google.container.v1.StatusCondition.Code code = 1; - * - * @return The enum numeric value on the wire for code. - */ - @java.lang.Override - public int getCodeValue() { - return code_; - } - /** - * - * - *
-     * Machine-friendly representation of the condition
-     * 
- * - * .google.container.v1.StatusCondition.Code code = 1; - * - * @param value The enum numeric value on the wire for code to set. - * @return This builder for chaining. - */ - public Builder setCodeValue(int value) { - - code_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Machine-friendly representation of the condition
-     * 
- * - * .google.container.v1.StatusCondition.Code code = 1; - * - * @return The code. - */ - @java.lang.Override - public com.google.container.v1.StatusCondition.Code getCode() { - @SuppressWarnings("deprecation") - com.google.container.v1.StatusCondition.Code result = - com.google.container.v1.StatusCondition.Code.valueOf(code_); - return result == null ? com.google.container.v1.StatusCondition.Code.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Machine-friendly representation of the condition
-     * 
- * - * .google.container.v1.StatusCondition.Code code = 1; - * - * @param value The code to set. - * @return This builder for chaining. - */ - public Builder setCode(com.google.container.v1.StatusCondition.Code value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Machine-friendly representation of the condition
-     * 
- * - * .google.container.v1.StatusCondition.Code code = 1; - * - * @return This builder for chaining. - */ - public Builder clearCode() { - - code_ = 0; - onChanged(); - return this; - } - - private java.lang.Object message_ = ""; - /** - * - * - *
-     * Human-friendly representation of the condition
-     * 
- * - * string message = 2; - * - * @return The message. - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Human-friendly representation of the condition
-     * 
- * - * string message = 2; - * - * @return The bytes for message. - */ - public com.google.protobuf.ByteString getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Human-friendly representation of the condition
-     * 
- * - * string message = 2; - * - * @param value The message to set. - * @return This builder for chaining. - */ - public Builder setMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Human-friendly representation of the condition
-     * 
- * - * string message = 2; - * - * @return This builder for chaining. - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - * - * - *
-     * Human-friendly representation of the condition
-     * 
- * - * string message = 2; - * - * @param value The bytes for message to set. - * @return This builder for chaining. - */ - public Builder setMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - 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.container.v1.StatusCondition) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.StatusCondition) - private static final com.google.container.v1.StatusCondition DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.StatusCondition(); - } - - public static com.google.container.v1.StatusCondition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StatusCondition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StatusCondition(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.container.v1.StatusCondition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java deleted file mode 100644 index a5ee23d2..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface StatusConditionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.StatusCondition) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Machine-friendly representation of the condition
-   * 
- * - * .google.container.v1.StatusCondition.Code code = 1; - * - * @return The enum numeric value on the wire for code. - */ - int getCodeValue(); - /** - * - * - *
-   * Machine-friendly representation of the condition
-   * 
- * - * .google.container.v1.StatusCondition.Code code = 1; - * - * @return The code. - */ - com.google.container.v1.StatusCondition.Code getCode(); - - /** - * - * - *
-   * Human-friendly representation of the condition
-   * 
- * - * string message = 2; - * - * @return The message. - */ - java.lang.String getMessage(); - /** - * - * - *
-   * Human-friendly representation of the condition
-   * 
- * - * string message = 2; - * - * @return The bytes for message. - */ - com.google.protobuf.ByteString getMessageBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindow.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindow.java deleted file mode 100644 index f3bb4149..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindow.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Represents an arbitrary window of time.
- * 
- * - * Protobuf type {@code google.container.v1.TimeWindow} - */ -public final class TimeWindow extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.TimeWindow) - TimeWindowOrBuilder { - private static final long serialVersionUID = 0L; - // Use TimeWindow.newBuilder() to construct. - private TimeWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private TimeWindow() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TimeWindow(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private TimeWindow( - 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.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 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_TimeWindow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_TimeWindow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.TimeWindow.class, - com.google.container.v1.TimeWindow.Builder.class); - } - - public static final int START_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp startTime_; - /** - * - * - *
-   * The time that the window first starts.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - * - * @return Whether the startTime field is set. - */ - @java.lang.Override - public boolean hasStartTime() { - return startTime_ != null; - } - /** - * - * - *
-   * The time that the window first starts.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - * - * @return The startTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getStartTime() { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - /** - * - * - *
-   * The time that the window first starts.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); - } - - public static final int END_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp endTime_; - /** - * - * - *
-   * The time that the window ends. The end time should take place after the
-   * start time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return Whether the endTime field is set. - */ - @java.lang.Override - public boolean hasEndTime() { - return endTime_ != null; - } - /** - * - * - *
-   * The time that the window ends. The end time should take place after the
-   * start time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return The endTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getEndTime() { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - /** - * - * - *
-   * The time that the window ends. The end time should take place after the
-   * start time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (startTime_ != null) { - output.writeMessage(1, getStartTime()); - } - if (endTime_ != null) { - output.writeMessage(2, getEndTime()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); - } - if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.container.v1.TimeWindow)) { - return super.equals(obj); - } - com.google.container.v1.TimeWindow other = (com.google.container.v1.TimeWindow) obj; - - if (hasStartTime() != other.hasStartTime()) return false; - if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; - } - if (hasEndTime() != other.hasEndTime()) return false; - if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasStartTime()) { - hash = (37 * hash) + START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getStartTime().hashCode(); - } - if (hasEndTime()) { - hash = (37 * hash) + END_TIME_FIELD_NUMBER; - hash = (53 * hash) + getEndTime().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.TimeWindow parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.TimeWindow parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.TimeWindow parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.TimeWindow parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.TimeWindow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.TimeWindow parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.TimeWindow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.TimeWindow parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.TimeWindow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.TimeWindow parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.TimeWindow parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.TimeWindow parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.TimeWindow prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Represents an arbitrary window of time.
-   * 
- * - * Protobuf type {@code google.container.v1.TimeWindow} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.TimeWindow) - com.google.container.v1.TimeWindowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_TimeWindow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_TimeWindow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.TimeWindow.class, - com.google.container.v1.TimeWindow.Builder.class); - } - - // Construct using com.google.container.v1.TimeWindow.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 (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; - startTimeBuilder_ = null; - } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_TimeWindow_descriptor; - } - - @java.lang.Override - public com.google.container.v1.TimeWindow getDefaultInstanceForType() { - return com.google.container.v1.TimeWindow.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.TimeWindow build() { - com.google.container.v1.TimeWindow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.TimeWindow buildPartial() { - com.google.container.v1.TimeWindow result = new com.google.container.v1.TimeWindow(this); - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); - } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.TimeWindow) { - return mergeFrom((com.google.container.v1.TimeWindow) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.TimeWindow other) { - if (other == com.google.container.v1.TimeWindow.getDefaultInstance()) return this; - if (other.hasStartTime()) { - mergeStartTime(other.getStartTime()); - } - if (other.hasEndTime()) { - mergeEndTime(other.getEndTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.container.v1.TimeWindow parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.TimeWindow) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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_; - /** - * - * - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - * - * @return Whether the startTime field is set. - */ - public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; - } - /** - * - * - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - * - * @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(); - } - } - /** - * - * - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - 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; - } - /** - * - * - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (startTimeBuilder_ == null) { - startTime_ = builderForValue.build(); - onChanged(); - } else { - startTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - 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; - } - /** - * - * - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; - startTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - - onChanged(); - return getStartTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - if (startTimeBuilder_ != null) { - return startTimeBuilder_.getMessageOrBuilder(); - } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - } - /** - * - * - *
-     * The time that the window first starts.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - 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_; - /** - * - * - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return Whether the endTime field is set. - */ - public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; - } - /** - * - * - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @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(); - } - } - /** - * - * - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - 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; - } - /** - * - * - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (endTimeBuilder_ == null) { - endTime_ = builderForValue.build(); - onChanged(); - } else { - endTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - 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; - } - /** - * - * - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - - onChanged(); - return getEndTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - if (endTimeBuilder_ != null) { - return endTimeBuilder_.getMessageOrBuilder(); - } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - } - /** - * - * - *
-     * The time that the window ends. The end time should take place after the
-     * start time.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getEndTimeFieldBuilder() { - if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); - endTime_ = null; - } - return endTimeBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.TimeWindow) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.TimeWindow) - private static final com.google.container.v1.TimeWindow DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.TimeWindow(); - } - - public static com.google.container.v1.TimeWindow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TimeWindow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TimeWindow(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.container.v1.TimeWindow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindowOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindowOrBuilder.java deleted file mode 100644 index 7cda2e26..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindowOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface TimeWindowOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.TimeWindow) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The time that the window first starts.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - * - * @return Whether the startTime field is set. - */ - boolean hasStartTime(); - /** - * - * - *
-   * The time that the window first starts.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - * - * @return The startTime. - */ - com.google.protobuf.Timestamp getStartTime(); - /** - * - * - *
-   * The time that the window first starts.
-   * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); - - /** - * - * - *
-   * The time that the window ends. The end time should take place after the
-   * start time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return Whether the endTime field is set. - */ - boolean hasEndTime(); - /** - * - * - *
-   * The time that the window ends. The end time should take place after the
-   * start time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - * - * @return The endTime. - */ - com.google.protobuf.Timestamp getEndTime(); - /** - * - * - *
-   * The time that the window ends. The end time should take place after the
-   * start time.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java deleted file mode 100644 index 11400894..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java +++ /dev/null @@ -1,1537 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * UpdateClusterRequest updates the settings of a cluster.
- * 
- * - * Protobuf type {@code google.container.v1.UpdateClusterRequest} - */ -public final class UpdateClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.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_ = ""; - zone_ = ""; - clusterId_ = ""; - name_ = ""; - } - - @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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 34: - { - com.google.container.v1.ClusterUpdate.Builder subBuilder = null; - if (update_ != null) { - subBuilder = update_.toBuilder(); - } - update_ = - input.readMessage( - com.google.container.v1.ClusterUpdate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(update_); - update_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UpdateClusterRequest.class, - com.google.container.v1.UpdateClusterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UPDATE_FIELD_NUMBER = 4; - private com.google.container.v1.ClusterUpdate update_; - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the update field is set. - */ - @java.lang.Override - public boolean hasUpdate() { - return update_ != null; - } - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The update. - */ - @java.lang.Override - public com.google.container.v1.ClusterUpdate getUpdate() { - return update_ == null ? com.google.container.v1.ClusterUpdate.getDefaultInstance() : update_; - } - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.container.v1.ClusterUpdateOrBuilder getUpdateOrBuilder() { - return getUpdate(); - } - - public static final int NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to update.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to update.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (update_ != null) { - output.writeMessage(4, getUpdate()); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (update_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdate()); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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.container.v1.UpdateClusterRequest)) { - return super.equals(obj); - } - com.google.container.v1.UpdateClusterRequest other = - (com.google.container.v1.UpdateClusterRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - if (hasUpdate() != other.hasUpdate()) return false; - if (hasUpdate()) { - if (!getUpdate().equals(other.getUpdate())) return false; - } - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - if (hasUpdate()) { - hash = (37 * hash) + UPDATE_FIELD_NUMBER; - hash = (53 * hash) + getUpdate().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.container.v1.UpdateClusterRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.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.container.v1.UpdateClusterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.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.container.v1.UpdateClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UpdateClusterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UpdateClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.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.container.v1.UpdateClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.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.container.v1.UpdateClusterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.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.container.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; - } - /** - * - * - *
-   * UpdateClusterRequest updates the settings of a cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.UpdateClusterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.UpdateClusterRequest) - com.google.container.v1.UpdateClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateClusterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateClusterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UpdateClusterRequest.class, - com.google.container.v1.UpdateClusterRequest.Builder.class); - } - - // Construct using com.google.container.v1.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - if (updateBuilder_ == null) { - update_ = null; - } else { - update_ = null; - updateBuilder_ = null; - } - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateClusterRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.UpdateClusterRequest getDefaultInstanceForType() { - return com.google.container.v1.UpdateClusterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.UpdateClusterRequest build() { - com.google.container.v1.UpdateClusterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.UpdateClusterRequest buildPartial() { - com.google.container.v1.UpdateClusterRequest result = - new com.google.container.v1.UpdateClusterRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - if (updateBuilder_ == null) { - result.update_ = update_; - } else { - result.update_ = updateBuilder_.build(); - } - 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.container.v1.UpdateClusterRequest) { - return mergeFrom((com.google.container.v1.UpdateClusterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.UpdateClusterRequest other) { - if (other == com.google.container.v1.UpdateClusterRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (other.hasUpdate()) { - mergeUpdate(other.getUpdate()); - } - 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.container.v1.UpdateClusterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.UpdateClusterRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private com.google.container.v1.ClusterUpdate update_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClusterUpdate, - com.google.container.v1.ClusterUpdate.Builder, - com.google.container.v1.ClusterUpdateOrBuilder> - updateBuilder_; - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the update field is set. - */ - public boolean hasUpdate() { - return updateBuilder_ != null || update_ != null; - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The update. - */ - public com.google.container.v1.ClusterUpdate getUpdate() { - if (updateBuilder_ == null) { - return update_ == null - ? com.google.container.v1.ClusterUpdate.getDefaultInstance() - : update_; - } else { - return updateBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdate(com.google.container.v1.ClusterUpdate value) { - if (updateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - update_ = value; - onChanged(); - } else { - updateBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setUpdate(com.google.container.v1.ClusterUpdate.Builder builderForValue) { - if (updateBuilder_ == null) { - update_ = builderForValue.build(); - onChanged(); - } else { - updateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeUpdate(com.google.container.v1.ClusterUpdate value) { - if (updateBuilder_ == null) { - if (update_ != null) { - update_ = - com.google.container.v1.ClusterUpdate.newBuilder(update_) - .mergeFrom(value) - .buildPartial(); - } else { - update_ = value; - } - onChanged(); - } else { - updateBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearUpdate() { - if (updateBuilder_ == null) { - update_ = null; - onChanged(); - } else { - update_ = null; - updateBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.ClusterUpdate.Builder getUpdateBuilder() { - - onChanged(); - return getUpdateFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.container.v1.ClusterUpdateOrBuilder getUpdateOrBuilder() { - if (updateBuilder_ != null) { - return updateBuilder_.getMessageOrBuilder(); - } else { - return update_ == null - ? com.google.container.v1.ClusterUpdate.getDefaultInstance() - : update_; - } - } - /** - * - * - *
-     * Required. A description of the update.
-     * 
- * - * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClusterUpdate, - com.google.container.v1.ClusterUpdate.Builder, - com.google.container.v1.ClusterUpdateOrBuilder> - getUpdateFieldBuilder() { - if (updateBuilder_ == null) { - updateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ClusterUpdate, - com.google.container.v1.ClusterUpdate.Builder, - com.google.container.v1.ClusterUpdateOrBuilder>( - getUpdate(), getParentForChildren(), isClean()); - update_ = null; - } - return updateBuilder_; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 5; - * - * @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.container.v1.UpdateClusterRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.UpdateClusterRequest) - private static final com.google.container.v1.UpdateClusterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.UpdateClusterRequest(); - } - - public static com.google.container.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 { - 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.container.v1.UpdateClusterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java deleted file mode 100644 index 92695e7f..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface UpdateClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.UpdateClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the update field is set. - */ - boolean hasUpdate(); - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The update. - */ - com.google.container.v1.ClusterUpdate getUpdate(); - /** - * - * - *
-   * Required. A description of the update.
-   * 
- * - * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.container.v1.ClusterUpdateOrBuilder getUpdateOrBuilder(); - - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to update.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to update.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 5; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java deleted file mode 100644 index 06d8349f..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java +++ /dev/null @@ -1,1469 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * UpdateMasterRequest updates the master of the cluster.
- * 
- * - * Protobuf type {@code google.container.v1.UpdateMasterRequest} - */ -public final class UpdateMasterRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.UpdateMasterRequest) - UpdateMasterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateMasterRequest.newBuilder() to construct. - private UpdateMasterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateMasterRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - masterVersion_ = ""; - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateMasterRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpdateMasterRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - masterVersion_ = s; - break; - } - case 58: - { - 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateMasterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateMasterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UpdateMasterRequest.class, - com.google.container.v1.UpdateMasterRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MASTER_VERSION_FIELD_NUMBER = 4; - private volatile java.lang.Object masterVersion_; - /** - * - * - *
-   * Required. The Kubernetes version to change the master to.
-   * Users may specify either explicit versions offered by Kubernetes Engine or
-   * version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the default Kubernetes version
-   * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The masterVersion. - */ - @java.lang.Override - public java.lang.String getMasterVersion() { - java.lang.Object ref = masterVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - masterVersion_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Kubernetes version to change the master to.
-   * Users may specify either explicit versions offered by Kubernetes Engine or
-   * version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the default Kubernetes version
-   * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for masterVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMasterVersionBytes() { - java.lang.Object ref = masterVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - masterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to update.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to update.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * - * @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 (!getProjectIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!getMasterVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, masterVersion_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, name_); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!getMasterVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, masterVersion_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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.container.v1.UpdateMasterRequest)) { - return super.equals(obj); - } - com.google.container.v1.UpdateMasterRequest other = - (com.google.container.v1.UpdateMasterRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - if (!getMasterVersion().equals(other.getMasterVersion())) return false; - 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) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - hash = (37 * hash) + MASTER_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getMasterVersion().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.container.v1.UpdateMasterRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UpdateMasterRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UpdateMasterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UpdateMasterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UpdateMasterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UpdateMasterRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UpdateMasterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.UpdateMasterRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.UpdateMasterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.UpdateMasterRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.UpdateMasterRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.UpdateMasterRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.UpdateMasterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * UpdateMasterRequest updates the master of the cluster.
-   * 
- * - * Protobuf type {@code google.container.v1.UpdateMasterRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.UpdateMasterRequest) - com.google.container.v1.UpdateMasterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateMasterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateMasterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UpdateMasterRequest.class, - com.google.container.v1.UpdateMasterRequest.Builder.class); - } - - // Construct using com.google.container.v1.UpdateMasterRequest.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - masterVersion_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateMasterRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.UpdateMasterRequest getDefaultInstanceForType() { - return com.google.container.v1.UpdateMasterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.UpdateMasterRequest build() { - com.google.container.v1.UpdateMasterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.UpdateMasterRequest buildPartial() { - com.google.container.v1.UpdateMasterRequest result = - new com.google.container.v1.UpdateMasterRequest(this); - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.masterVersion_ = masterVersion_; - 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.container.v1.UpdateMasterRequest) { - return mergeFrom((com.google.container.v1.UpdateMasterRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.UpdateMasterRequest other) { - if (other == com.google.container.v1.UpdateMasterRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getMasterVersion().isEmpty()) { - masterVersion_ = other.masterVersion_; - onChanged(); - } - 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.container.v1.UpdateMasterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.UpdateMasterRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object masterVersion_ = ""; - /** - * - * - *
-     * Required. The Kubernetes version to change the master to.
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The masterVersion. - */ - public java.lang.String getMasterVersion() { - java.lang.Object ref = masterVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - masterVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Kubernetes version to change the master to.
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for masterVersion. - */ - public com.google.protobuf.ByteString getMasterVersionBytes() { - java.lang.Object ref = masterVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - masterVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Kubernetes version to change the master to.
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The masterVersion to set. - * @return This builder for chaining. - */ - public Builder setMasterVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - masterVersion_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Kubernetes version to change the master to.
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearMasterVersion() { - - masterVersion_ = getDefaultInstance().getMasterVersion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Kubernetes version to change the master to.
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the default Kubernetes version
-     * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for masterVersion to set. - * @return This builder for chaining. - */ - public Builder setMasterVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - masterVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster) of the cluster to update.
-     * Specified in the format `projects/*/locations/*/clusters/*`.
-     * 
- * - * string name = 7; - * - * @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.container.v1.UpdateMasterRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.UpdateMasterRequest) - private static final com.google.container.v1.UpdateMasterRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.UpdateMasterRequest(); - } - - public static com.google.container.v1.UpdateMasterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateMasterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateMasterRequest(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.container.v1.UpdateMasterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java deleted file mode 100644 index 09fc4a4b..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface UpdateMasterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.UpdateMasterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Required. The Kubernetes version to change the master to.
-   * Users may specify either explicit versions offered by Kubernetes Engine or
-   * version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the default Kubernetes version
-   * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The masterVersion. - */ - java.lang.String getMasterVersion(); - /** - * - * - *
-   * Required. The Kubernetes version to change the master to.
-   * Users may specify either explicit versions offered by Kubernetes Engine or
-   * version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the default Kubernetes version
-   * 
- * - * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for masterVersion. - */ - com.google.protobuf.ByteString getMasterVersionBytes(); - - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to update.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster) of the cluster to update.
-   * Specified in the format `projects/*/locations/*/clusters/*`.
-   * 
- * - * string name = 7; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java deleted file mode 100644 index 72675743..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java +++ /dev/null @@ -1,2748 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * UpdateNodePoolRequests update a node pool's image and/or version.
- * 
- * - * Protobuf type {@code google.container.v1.UpdateNodePoolRequest} - */ -public final class UpdateNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.UpdateNodePoolRequest) - UpdateNodePoolRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateNodePoolRequest.newBuilder() to construct. - private UpdateNodePoolRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateNodePoolRequest() { - projectId_ = ""; - zone_ = ""; - clusterId_ = ""; - nodePoolId_ = ""; - nodeVersion_ = ""; - imageType_ = ""; - name_ = ""; - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateNodePoolRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UpdateNodePoolRequest( - 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(); - - zone_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - clusterId_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - nodePoolId_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - nodeVersion_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - imageType_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - 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; - } - case 114: - { - com.google.container.v1.WorkloadMetadataConfig.Builder subBuilder = null; - if (workloadMetadataConfig_ != null) { - subBuilder = workloadMetadataConfig_.toBuilder(); - } - workloadMetadataConfig_ = - input.readMessage( - com.google.container.v1.WorkloadMetadataConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workloadMetadataConfig_); - workloadMetadataConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 122: - { - com.google.container.v1.NodePool.UpgradeSettings.Builder subBuilder = null; - if (upgradeSettings_ != null) { - subBuilder = upgradeSettings_.toBuilder(); - } - upgradeSettings_ = - input.readMessage( - com.google.container.v1.NodePool.UpgradeSettings.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(upgradeSettings_); - upgradeSettings_ = 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)) { - locations_ = locations_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateNodePoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateNodePoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UpdateNodePoolRequest.class, - com.google.container.v1.UpdateNodePoolRequest.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Override - @java.lang.Deprecated - 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 ZONE_FIELD_NUMBER = 2; - private volatile java.lang.Object zone_; - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Override - @java.lang.Deprecated - 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_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterId_; - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_POOL_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object nodePoolId_; - /** - * - * - *
-   * Deprecated. The name of the node pool to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated - public java.lang.String getNodePoolId() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodePoolId_ = s; - return s; - } - } - /** - * - * - *
-   * Deprecated. The name of the node pool to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The bytes for nodePoolId. - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_VERSION_FIELD_NUMBER = 5; - private volatile java.lang.Object nodeVersion_; - /** - * - * - *
-   * Required. The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by Kubernetes Engine or
-   * version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The nodeVersion. - */ - @java.lang.Override - public java.lang.String getNodeVersion() { - java.lang.Object ref = nodeVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeVersion_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by Kubernetes Engine or
-   * version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for nodeVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNodeVersionBytes() { - java.lang.Object ref = nodeVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodeVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IMAGE_TYPE_FIELD_NUMBER = 6; - private volatile java.lang.Object imageType_; - /** - * - * - *
-   * Required. The desired image type for the node pool.
-   * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The imageType. - */ - @java.lang.Override - public java.lang.String getImageType() { - java.lang.Object ref = imageType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - imageType_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The desired image type for the node pool.
-   * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for imageType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getImageTypeBytes() { - java.lang.Object ref = imageType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - imageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 8; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name (project, location, cluster, node pool) of the node pool to
-   * update. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 8; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The name (project, location, cluster, node pool) of the node pool to
-   * update. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 8; - * - * @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 LOCATIONS_FIELD_NUMBER = 13; - private com.google.protobuf.LazyStringList locations_; - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList getLocationsList() { - return locations_; - } - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * - * @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); - } - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * - * @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 WORKLOAD_METADATA_CONFIG_FIELD_NUMBER = 14; - private com.google.container.v1.WorkloadMetadataConfig workloadMetadataConfig_; - /** - * - * - *
-   * The desired workload metadata config for the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return Whether the workloadMetadataConfig field is set. - */ - @java.lang.Override - public boolean hasWorkloadMetadataConfig() { - return workloadMetadataConfig_ != null; - } - /** - * - * - *
-   * The desired workload metadata config for the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return The workloadMetadataConfig. - */ - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { - return workloadMetadataConfig_ == null - ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() - : workloadMetadataConfig_; - } - /** - * - * - *
-   * The desired workload metadata config for the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfigOrBuilder - getWorkloadMetadataConfigOrBuilder() { - return getWorkloadMetadataConfig(); - } - - public static final int UPGRADE_SETTINGS_FIELD_NUMBER = 15; - private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * - * @return Whether the upgradeSettings field is set. - */ - @java.lang.Override - public boolean hasUpgradeSettings() { - return upgradeSettings_ != null; - } - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * - * @return The upgradeSettings. - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { - return upgradeSettings_ == null - ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - @java.lang.Override - public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - return getUpgradeSettings(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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 (!getZoneBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); - } - if (!getNodePoolIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodePoolId_); - } - if (!getNodeVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nodeVersion_); - } - if (!getImageTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, imageType_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, name_); - } - for (int i = 0; i < locations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, locations_.getRaw(i)); - } - if (workloadMetadataConfig_ != null) { - output.writeMessage(14, getWorkloadMetadataConfig()); - } - if (upgradeSettings_ != null) { - output.writeMessage(15, getUpgradeSettings()); - } - 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 (!getZoneBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); - } - if (!getClusterIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); - } - if (!getNodePoolIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodePoolId_); - } - if (!getNodeVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nodeVersion_); - } - if (!getImageTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, imageType_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, name_); - } - { - int dataSize = 0; - for (int i = 0; i < locations_.size(); i++) { - dataSize += computeStringSizeNoTag(locations_.getRaw(i)); - } - size += dataSize; - size += 1 * getLocationsList().size(); - } - if (workloadMetadataConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(14, getWorkloadMetadataConfig()); - } - if (upgradeSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getUpgradeSettings()); - } - 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.container.v1.UpdateNodePoolRequest)) { - return super.equals(obj); - } - com.google.container.v1.UpdateNodePoolRequest other = - (com.google.container.v1.UpdateNodePoolRequest) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getZone().equals(other.getZone())) return false; - if (!getClusterId().equals(other.getClusterId())) return false; - if (!getNodePoolId().equals(other.getNodePoolId())) return false; - if (!getNodeVersion().equals(other.getNodeVersion())) return false; - if (!getImageType().equals(other.getImageType())) return false; - if (!getName().equals(other.getName())) return false; - if (!getLocationsList().equals(other.getLocationsList())) return false; - if (hasWorkloadMetadataConfig() != other.hasWorkloadMetadataConfig()) return false; - if (hasWorkloadMetadataConfig()) { - if (!getWorkloadMetadataConfig().equals(other.getWorkloadMetadataConfig())) return false; - } - if (hasUpgradeSettings() != other.hasUpgradeSettings()) return false; - if (hasUpgradeSettings()) { - if (!getUpgradeSettings().equals(other.getUpgradeSettings())) 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) + ZONE_FIELD_NUMBER; - hash = (53 * hash) + getZone().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - hash = (37 * hash) + NODE_POOL_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodePoolId().hashCode(); - hash = (37 * hash) + NODE_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getNodeVersion().hashCode(); - hash = (37 * hash) + IMAGE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getImageType().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (getLocationsCount() > 0) { - hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; - hash = (53 * hash) + getLocationsList().hashCode(); - } - if (hasWorkloadMetadataConfig()) { - hash = (37 * hash) + WORKLOAD_METADATA_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getWorkloadMetadataConfig().hashCode(); - } - if (hasUpgradeSettings()) { - hash = (37 * hash) + UPGRADE_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getUpgradeSettings().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.UpdateNodePoolRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UpdateNodePoolRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UpdateNodePoolRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UpdateNodePoolRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UpdateNodePoolRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UpdateNodePoolRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UpdateNodePoolRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.UpdateNodePoolRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.UpdateNodePoolRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.UpdateNodePoolRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.UpdateNodePoolRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.UpdateNodePoolRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.UpdateNodePoolRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * UpdateNodePoolRequests update a node pool's image and/or version.
-   * 
- * - * Protobuf type {@code google.container.v1.UpdateNodePoolRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.UpdateNodePoolRequest) - com.google.container.v1.UpdateNodePoolRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateNodePoolRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateNodePoolRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UpdateNodePoolRequest.class, - com.google.container.v1.UpdateNodePoolRequest.Builder.class); - } - - // Construct using com.google.container.v1.UpdateNodePoolRequest.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_ = ""; - - zone_ = ""; - - clusterId_ = ""; - - nodePoolId_ = ""; - - nodeVersion_ = ""; - - imageType_ = ""; - - name_ = ""; - - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfig_ = null; - } else { - workloadMetadataConfig_ = null; - workloadMetadataConfigBuilder_ = null; - } - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = null; - } else { - upgradeSettings_ = null; - upgradeSettingsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UpdateNodePoolRequest_descriptor; - } - - @java.lang.Override - public com.google.container.v1.UpdateNodePoolRequest getDefaultInstanceForType() { - return com.google.container.v1.UpdateNodePoolRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.UpdateNodePoolRequest build() { - com.google.container.v1.UpdateNodePoolRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.UpdateNodePoolRequest buildPartial() { - com.google.container.v1.UpdateNodePoolRequest result = - new com.google.container.v1.UpdateNodePoolRequest(this); - int from_bitField0_ = bitField0_; - result.projectId_ = projectId_; - result.zone_ = zone_; - result.clusterId_ = clusterId_; - result.nodePoolId_ = nodePoolId_; - result.nodeVersion_ = nodeVersion_; - result.imageType_ = imageType_; - result.name_ = name_; - if (((bitField0_ & 0x00000001) != 0)) { - locations_ = locations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.locations_ = locations_; - if (workloadMetadataConfigBuilder_ == null) { - result.workloadMetadataConfig_ = workloadMetadataConfig_; - } else { - result.workloadMetadataConfig_ = workloadMetadataConfigBuilder_.build(); - } - if (upgradeSettingsBuilder_ == null) { - result.upgradeSettings_ = upgradeSettings_; - } else { - result.upgradeSettings_ = upgradeSettingsBuilder_.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.container.v1.UpdateNodePoolRequest) { - return mergeFrom((com.google.container.v1.UpdateNodePoolRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.UpdateNodePoolRequest other) { - if (other == com.google.container.v1.UpdateNodePoolRequest.getDefaultInstance()) return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getZone().isEmpty()) { - zone_ = other.zone_; - onChanged(); - } - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; - onChanged(); - } - if (!other.getNodePoolId().isEmpty()) { - nodePoolId_ = other.nodePoolId_; - onChanged(); - } - if (!other.getNodeVersion().isEmpty()) { - nodeVersion_ = other.nodeVersion_; - onChanged(); - } - if (!other.getImageType().isEmpty()) { - imageType_ = other.imageType_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - if (other.hasWorkloadMetadataConfig()) { - mergeWorkloadMetadataConfig(other.getWorkloadMetadataConfig()); - } - if (other.hasUpgradeSettings()) { - mergeUpgradeSettings(other.getUpgradeSettings()); - } - 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.container.v1.UpdateNodePoolRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.UpdateNodePoolRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The Google Developers Console [project ID or project
-     * number](https://support.google.com/cloud/answer/6158840).
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string project_id = 1 [deprecated = true]; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - 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 zone_ = ""; - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - 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; - } - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - zone_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearZone() { - - zone_ = getDefaultInstance().getZone(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the Google Compute Engine
-     * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-     * cluster resides. This field has been deprecated and replaced by the name
-     * field.
-     * 
- * - * string zone = 2 [deprecated = true]; - * - * @param value The bytes for zone to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - zone_ = value; - onChanged(); - return this; - } - - private java.lang.Object clusterId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearClusterId() { - - clusterId_ = getDefaultInstance().getClusterId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the cluster to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @param value The bytes for clusterId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodePoolId_ = ""; - /** - * - * - *
-     * Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The nodePoolId. - */ - @java.lang.Deprecated - public java.lang.String getNodePoolId() { - java.lang.Object ref = nodePoolId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodePoolId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The bytes for nodePoolId. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getNodePoolIdBytes() { - java.lang.Object ref = nodePoolId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodePoolId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @param value The nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setNodePoolId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodePoolId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearNodePoolId() { - - nodePoolId_ = getDefaultInstance().getNodePoolId(); - onChanged(); - return this; - } - /** - * - * - *
-     * Deprecated. The name of the node pool to upgrade.
-     * This field has been deprecated and replaced by the name field.
-     * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @param value The bytes for nodePoolId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodePoolId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodeVersion_ = ""; - /** - * - * - *
-     * Required. The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The nodeVersion. - */ - public java.lang.String getNodeVersion() { - java.lang.Object ref = nodeVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for nodeVersion. - */ - public com.google.protobuf.ByteString getNodeVersionBytes() { - java.lang.Object ref = nodeVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nodeVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The nodeVersion to set. - * @return This builder for chaining. - */ - public Builder setNodeVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeVersion_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearNodeVersion() { - - nodeVersion_ = getDefaultInstance().getNodeVersion(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The Kubernetes version to change the nodes to (typically an
-     * upgrade).
-     * Users may specify either explicit versions offered by Kubernetes Engine or
-     * version aliases, which have the following behavior:
-     * - "latest": picks the highest valid Kubernetes version
-     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-     * - "-": picks the Kubernetes master version
-     * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for nodeVersion to set. - * @return This builder for chaining. - */ - public Builder setNodeVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object imageType_ = ""; - /** - * - * - *
-     * Required. The desired image type for the node pool.
-     * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The imageType. - */ - public java.lang.String getImageType() { - java.lang.Object ref = imageType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - imageType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The desired image type for the node pool.
-     * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for imageType. - */ - public com.google.protobuf.ByteString getImageTypeBytes() { - java.lang.Object ref = imageType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - imageType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The desired image type for the node pool.
-     * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The imageType to set. - * @return This builder for chaining. - */ - public Builder setImageType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - imageType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The desired image type for the node pool.
-     * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearImageType() { - - imageType_ = getDefaultInstance().getImageType(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The desired image type for the node pool.
-     * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for imageType to set. - * @return This builder for chaining. - */ - public Builder setImageTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - imageType_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name (project, location, cluster, node pool) of the node pool to
-     * update. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 8; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster, node pool) of the node pool to
-     * update. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 8; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name (project, location, cluster, node pool) of the node pool to
-     * update. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 8; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster, node pool) of the node pool to
-     * update. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 8; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name (project, location, cluster, node pool) of the node pool to
-     * update. Specified in the format
-     * `projects/*/locations/*/clusters/*/nodePools/*`.
-     * 
- * - * string name = 8; - * - * @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 locations_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureLocationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - locations_ = new com.google.protobuf.LazyStringArrayList(locations_); - bitField0_ |= 0x00000001; - } - } - /** - * - * - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * - * @return A list containing the locations. - */ - public com.google.protobuf.ProtocolStringList getLocationsList() { - return locations_.getUnmodifiableView(); - } - /** - * - * - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * - * @return The count of locations. - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - * - * - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * - * @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); - } - /** - * - * - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * - * @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); - } - /** - * - * - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * - * @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; - } - /** - * - * - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * - * @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; - } - /** - * - * - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * - * @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; - } - /** - * - * - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * - * @return This builder for chaining. - */ - public Builder clearLocations() { - locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * The desired list of Google Compute Engine
-     * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-     * node pool's nodes should be located. Changing the locations for a node pool
-     * will result in nodes being either created or removed from the node pool,
-     * depending on whether locations are being added or removed.
-     * 
- * - * repeated string locations = 13; - * - * @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.container.v1.WorkloadMetadataConfig workloadMetadataConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadMetadataConfig, - com.google.container.v1.WorkloadMetadataConfig.Builder, - com.google.container.v1.WorkloadMetadataConfigOrBuilder> - workloadMetadataConfigBuilder_; - /** - * - * - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return Whether the workloadMetadataConfig field is set. - */ - public boolean hasWorkloadMetadataConfig() { - return workloadMetadataConfigBuilder_ != null || workloadMetadataConfig_ != null; - } - /** - * - * - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return The workloadMetadataConfig. - */ - public com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig() { - if (workloadMetadataConfigBuilder_ == null) { - return workloadMetadataConfig_ == null - ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() - : workloadMetadataConfig_; - } else { - return workloadMetadataConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder setWorkloadMetadataConfig(com.google.container.v1.WorkloadMetadataConfig value) { - if (workloadMetadataConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workloadMetadataConfig_ = value; - onChanged(); - } else { - workloadMetadataConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder setWorkloadMetadataConfig( - com.google.container.v1.WorkloadMetadataConfig.Builder builderForValue) { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfig_ = builderForValue.build(); - onChanged(); - } else { - workloadMetadataConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder mergeWorkloadMetadataConfig( - com.google.container.v1.WorkloadMetadataConfig value) { - if (workloadMetadataConfigBuilder_ == null) { - if (workloadMetadataConfig_ != null) { - workloadMetadataConfig_ = - com.google.container.v1.WorkloadMetadataConfig.newBuilder(workloadMetadataConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - workloadMetadataConfig_ = value; - } - onChanged(); - } else { - workloadMetadataConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public Builder clearWorkloadMetadataConfig() { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfig_ = null; - onChanged(); - } else { - workloadMetadataConfig_ = null; - workloadMetadataConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public com.google.container.v1.WorkloadMetadataConfig.Builder - getWorkloadMetadataConfigBuilder() { - - onChanged(); - return getWorkloadMetadataConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - public com.google.container.v1.WorkloadMetadataConfigOrBuilder - getWorkloadMetadataConfigOrBuilder() { - if (workloadMetadataConfigBuilder_ != null) { - return workloadMetadataConfigBuilder_.getMessageOrBuilder(); - } else { - return workloadMetadataConfig_ == null - ? com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance() - : workloadMetadataConfig_; - } - } - /** - * - * - *
-     * The desired workload metadata config for the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadMetadataConfig, - com.google.container.v1.WorkloadMetadataConfig.Builder, - com.google.container.v1.WorkloadMetadataConfigOrBuilder> - getWorkloadMetadataConfigFieldBuilder() { - if (workloadMetadataConfigBuilder_ == null) { - workloadMetadataConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.WorkloadMetadataConfig, - com.google.container.v1.WorkloadMetadataConfig.Builder, - com.google.container.v1.WorkloadMetadataConfigOrBuilder>( - getWorkloadMetadataConfig(), getParentForChildren(), isClean()); - workloadMetadataConfig_ = null; - } - return workloadMetadataConfigBuilder_; - } - - private com.google.container.v1.NodePool.UpgradeSettings upgradeSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, - com.google.container.v1.NodePool.UpgradeSettings.Builder, - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> - upgradeSettingsBuilder_; - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * - * @return Whether the upgradeSettings field is set. - */ - public boolean hasUpgradeSettings() { - return upgradeSettingsBuilder_ != null || upgradeSettings_ != null; - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * - * @return The upgradeSettings. - */ - public com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings() { - if (upgradeSettingsBuilder_ == null) { - return upgradeSettings_ == null - ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } else { - return upgradeSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public Builder setUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - upgradeSettings_ = value; - onChanged(); - } else { - upgradeSettingsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public Builder setUpgradeSettings( - com.google.container.v1.NodePool.UpgradeSettings.Builder builderForValue) { - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = builderForValue.build(); - onChanged(); - } else { - upgradeSettingsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public Builder mergeUpgradeSettings(com.google.container.v1.NodePool.UpgradeSettings value) { - if (upgradeSettingsBuilder_ == null) { - if (upgradeSettings_ != null) { - upgradeSettings_ = - com.google.container.v1.NodePool.UpgradeSettings.newBuilder(upgradeSettings_) - .mergeFrom(value) - .buildPartial(); - } else { - upgradeSettings_ = value; - } - onChanged(); - } else { - upgradeSettingsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public Builder clearUpgradeSettings() { - if (upgradeSettingsBuilder_ == null) { - upgradeSettings_ = null; - onChanged(); - } else { - upgradeSettings_ = null; - upgradeSettingsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public com.google.container.v1.NodePool.UpgradeSettings.Builder getUpgradeSettingsBuilder() { - - onChanged(); - return getUpgradeSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - public com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder() { - if (upgradeSettingsBuilder_ != null) { - return upgradeSettingsBuilder_.getMessageOrBuilder(); - } else { - return upgradeSettings_ == null - ? com.google.container.v1.NodePool.UpgradeSettings.getDefaultInstance() - : upgradeSettings_; - } - } - /** - * - * - *
-     * Upgrade settings control disruption and speed of the upgrade.
-     * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, - com.google.container.v1.NodePool.UpgradeSettings.Builder, - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder> - getUpgradeSettingsFieldBuilder() { - if (upgradeSettingsBuilder_ == null) { - upgradeSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NodePool.UpgradeSettings, - com.google.container.v1.NodePool.UpgradeSettings.Builder, - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder>( - getUpgradeSettings(), getParentForChildren(), isClean()); - upgradeSettings_ = null; - } - return upgradeSettingsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.container.v1.UpdateNodePoolRequest) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.UpdateNodePoolRequest) - private static final com.google.container.v1.UpdateNodePoolRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.UpdateNodePoolRequest(); - } - - public static com.google.container.v1.UpdateNodePoolRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateNodePoolRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateNodePoolRequest(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.container.v1.UpdateNodePoolRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java deleted file mode 100644 index 957bde6a..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java +++ /dev/null @@ -1,379 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface UpdateNodePoolRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.UpdateNodePoolRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The projectId. - */ - @java.lang.Deprecated - java.lang.String getProjectId(); - /** - * - * - *
-   * Deprecated. The Google Developers Console [project ID or project
-   * number](https://support.google.com/cloud/answer/6158840).
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string project_id = 1 [deprecated = true]; - * - * @return The bytes for projectId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The zone. - */ - @java.lang.Deprecated - java.lang.String getZone(); - /** - * - * - *
-   * Deprecated. The name of the Google Compute Engine
-   * [zone](https://cloud.google.com/compute/docs/zones#available) in which the
-   * cluster resides. This field has been deprecated and replaced by the name
-   * field.
-   * 
- * - * string zone = 2 [deprecated = true]; - * - * @return The bytes for zone. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getZoneBytes(); - - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The clusterId. - */ - @java.lang.Deprecated - java.lang.String getClusterId(); - /** - * - * - *
-   * Deprecated. The name of the cluster to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string cluster_id = 3 [deprecated = true]; - * - * @return The bytes for clusterId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getClusterIdBytes(); - - /** - * - * - *
-   * Deprecated. The name of the node pool to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The nodePoolId. - */ - @java.lang.Deprecated - java.lang.String getNodePoolId(); - /** - * - * - *
-   * Deprecated. The name of the node pool to upgrade.
-   * This field has been deprecated and replaced by the name field.
-   * 
- * - * string node_pool_id = 4 [deprecated = true]; - * - * @return The bytes for nodePoolId. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getNodePoolIdBytes(); - - /** - * - * - *
-   * Required. The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by Kubernetes Engine or
-   * version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The nodeVersion. - */ - java.lang.String getNodeVersion(); - /** - * - * - *
-   * Required. The Kubernetes version to change the nodes to (typically an
-   * upgrade).
-   * Users may specify either explicit versions offered by Kubernetes Engine or
-   * version aliases, which have the following behavior:
-   * - "latest": picks the highest valid Kubernetes version
-   * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
-   * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
-   * - "1.X.Y-gke.N": picks an explicit Kubernetes version
-   * - "-": picks the Kubernetes master version
-   * 
- * - * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for nodeVersion. - */ - com.google.protobuf.ByteString getNodeVersionBytes(); - - /** - * - * - *
-   * Required. The desired image type for the node pool.
-   * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The imageType. - */ - java.lang.String getImageType(); - /** - * - * - *
-   * Required. The desired image type for the node pool.
-   * 
- * - * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for imageType. - */ - com.google.protobuf.ByteString getImageTypeBytes(); - - /** - * - * - *
-   * The name (project, location, cluster, node pool) of the node pool to
-   * update. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 8; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name (project, location, cluster, node pool) of the node pool to
-   * update. Specified in the format
-   * `projects/*/locations/*/clusters/*/nodePools/*`.
-   * 
- * - * string name = 8; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * - * @return A list containing the locations. - */ - java.util.List getLocationsList(); - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * - * @return The count of locations. - */ - int getLocationsCount(); - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * - * @param index The index of the element to return. - * @return The locations at the given index. - */ - java.lang.String getLocations(int index); - /** - * - * - *
-   * The desired list of Google Compute Engine
-   * [zones](https://cloud.google.com/compute/docs/zones#available) in which the
-   * node pool's nodes should be located. Changing the locations for a node pool
-   * will result in nodes being either created or removed from the node pool,
-   * depending on whether locations are being added or removed.
-   * 
- * - * repeated string locations = 13; - * - * @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); - - /** - * - * - *
-   * The desired workload metadata config for the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return Whether the workloadMetadataConfig field is set. - */ - boolean hasWorkloadMetadataConfig(); - /** - * - * - *
-   * The desired workload metadata config for the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * - * @return The workloadMetadataConfig. - */ - com.google.container.v1.WorkloadMetadataConfig getWorkloadMetadataConfig(); - /** - * - * - *
-   * The desired workload metadata config for the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - com.google.container.v1.WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder(); - - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * - * @return Whether the upgradeSettings field is set. - */ - boolean hasUpgradeSettings(); - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * - * @return The upgradeSettings. - */ - com.google.container.v1.NodePool.UpgradeSettings getUpgradeSettings(); - /** - * - * - *
-   * Upgrade settings control disruption and speed of the upgrade.
-   * 
- * - * .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - com.google.container.v1.NodePool.UpgradeSettingsOrBuilder getUpgradeSettingsOrBuilder(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetwork.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetwork.java deleted file mode 100644 index b73c329c..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetwork.java +++ /dev/null @@ -1,1744 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * UsableSubnetwork resource returns the subnetwork name, its associated network
- * and the primary CIDR range.
- * 
- * - * Protobuf type {@code google.container.v1.UsableSubnetwork} - */ -public final class UsableSubnetwork extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.UsableSubnetwork) - UsableSubnetworkOrBuilder { - private static final long serialVersionUID = 0L; - // Use UsableSubnetwork.newBuilder() to construct. - private UsableSubnetwork(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UsableSubnetwork() { - subnetwork_ = ""; - network_ = ""; - ipCidrRange_ = ""; - secondaryIpRanges_ = java.util.Collections.emptyList(); - statusMessage_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UsableSubnetwork(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UsableSubnetwork( - 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(); - - subnetwork_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - network_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - ipCidrRange_ = s; - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - secondaryIpRanges_ = - new java.util.ArrayList< - com.google.container.v1.UsableSubnetworkSecondaryRange>(); - mutable_bitField0_ |= 0x00000001; - } - secondaryIpRanges_.add( - input.readMessage( - com.google.container.v1.UsableSubnetworkSecondaryRange.parser(), - extensionRegistry)); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - statusMessage_ = 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)) { - secondaryIpRanges_ = java.util.Collections.unmodifiableList(secondaryIpRanges_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UsableSubnetwork_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UsableSubnetwork_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UsableSubnetwork.class, - com.google.container.v1.UsableSubnetwork.Builder.class); - } - - public static final int SUBNETWORK_FIELD_NUMBER = 1; - private volatile java.lang.Object subnetwork_; - /** - * - * - *
-   * Subnetwork Name.
-   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
-   * 
- * - * string subnetwork = 1; - * - * @return The subnetwork. - */ - @java.lang.Override - public java.lang.String getSubnetwork() { - java.lang.Object ref = subnetwork_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetwork_ = s; - return s; - } - } - /** - * - * - *
-   * Subnetwork Name.
-   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
-   * 
- * - * string subnetwork = 1; - * - * @return The bytes for subnetwork. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSubnetworkBytes() { - java.lang.Object ref = subnetwork_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - subnetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NETWORK_FIELD_NUMBER = 2; - private volatile java.lang.Object network_; - /** - * - * - *
-   * Network Name.
-   * Example: projects/my-project/global/networks/my-network
-   * 
- * - * string network = 2; - * - * @return The network. - */ - @java.lang.Override - public java.lang.String getNetwork() { - java.lang.Object 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(); - network_ = s; - return s; - } - } - /** - * - * - *
-   * Network Name.
-   * Example: projects/my-project/global/networks/my-network
-   * 
- * - * string network = 2; - * - * @return The bytes for network. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IP_CIDR_RANGE_FIELD_NUMBER = 3; - private volatile java.lang.Object ipCidrRange_; - /** - * - * - *
-   * The range of internal addresses that are owned by this subnetwork.
-   * 
- * - * string ip_cidr_range = 3; - * - * @return The ipCidrRange. - */ - @java.lang.Override - public java.lang.String getIpCidrRange() { - java.lang.Object ref = ipCidrRange_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ipCidrRange_ = s; - return s; - } - } - /** - * - * - *
-   * The range of internal addresses that are owned by this subnetwork.
-   * 
- * - * string ip_cidr_range = 3; - * - * @return The bytes for ipCidrRange. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIpCidrRangeBytes() { - java.lang.Object ref = ipCidrRange_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - ipCidrRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SECONDARY_IP_RANGES_FIELD_NUMBER = 4; - private java.util.List secondaryIpRanges_; - /** - * - * - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - @java.lang.Override - public java.util.List - getSecondaryIpRangesList() { - return secondaryIpRanges_; - } - /** - * - * - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - @java.lang.Override - public java.util.List - getSecondaryIpRangesOrBuilderList() { - return secondaryIpRanges_; - } - /** - * - * - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - @java.lang.Override - public int getSecondaryIpRangesCount() { - return secondaryIpRanges_.size(); - } - /** - * - * - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - @java.lang.Override - public com.google.container.v1.UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index) { - return secondaryIpRanges_.get(index); - } - /** - * - * - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - @java.lang.Override - public com.google.container.v1.UsableSubnetworkSecondaryRangeOrBuilder - getSecondaryIpRangesOrBuilder(int index) { - return secondaryIpRanges_.get(index); - } - - public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; - private volatile java.lang.Object statusMessage_; - /** - * - * - *
-   * A human readable status message representing the reasons for cases where
-   * the caller cannot use the secondary ranges under the subnet. For example if
-   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-   * permission message will be given by status_message.
-   * 
- * - * string status_message = 5; - * - * @return The statusMessage. - */ - @java.lang.Override - public java.lang.String getStatusMessage() { - java.lang.Object ref = statusMessage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusMessage_ = s; - return s; - } - } - /** - * - * - *
-   * A human readable status message representing the reasons for cases where
-   * the caller cannot use the secondary ranges under the subnet. For example if
-   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-   * permission message will be given by status_message.
-   * 
- * - * string status_message = 5; - * - * @return The bytes for statusMessage. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getSubnetworkBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subnetwork_); - } - if (!getNetworkBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, network_); - } - if (!getIpCidrRangeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipCidrRange_); - } - for (int i = 0; i < secondaryIpRanges_.size(); i++) { - output.writeMessage(4, secondaryIpRanges_.get(i)); - } - if (!getStatusMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSubnetworkBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subnetwork_); - } - if (!getNetworkBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, network_); - } - if (!getIpCidrRangeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipCidrRange_); - } - for (int i = 0; i < secondaryIpRanges_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, secondaryIpRanges_.get(i)); - } - if (!getStatusMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); - } - 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.container.v1.UsableSubnetwork)) { - return super.equals(obj); - } - com.google.container.v1.UsableSubnetwork other = (com.google.container.v1.UsableSubnetwork) obj; - - if (!getSubnetwork().equals(other.getSubnetwork())) return false; - if (!getNetwork().equals(other.getNetwork())) return false; - if (!getIpCidrRange().equals(other.getIpCidrRange())) return false; - if (!getSecondaryIpRangesList().equals(other.getSecondaryIpRangesList())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) 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) + SUBNETWORK_FIELD_NUMBER; - hash = (53 * hash) + getSubnetwork().hashCode(); - hash = (37 * hash) + NETWORK_FIELD_NUMBER; - hash = (53 * hash) + getNetwork().hashCode(); - hash = (37 * hash) + IP_CIDR_RANGE_FIELD_NUMBER; - hash = (53 * hash) + getIpCidrRange().hashCode(); - if (getSecondaryIpRangesCount() > 0) { - hash = (37 * hash) + SECONDARY_IP_RANGES_FIELD_NUMBER; - hash = (53 * hash) + getSecondaryIpRangesList().hashCode(); - } - hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getStatusMessage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.UsableSubnetwork parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UsableSubnetwork parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UsableSubnetwork parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UsableSubnetwork parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UsableSubnetwork parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UsableSubnetwork parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UsableSubnetwork parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.UsableSubnetwork parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.UsableSubnetwork parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.UsableSubnetwork parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.UsableSubnetwork parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.UsableSubnetwork parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.UsableSubnetwork prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * UsableSubnetwork resource returns the subnetwork name, its associated network
-   * and the primary CIDR range.
-   * 
- * - * Protobuf type {@code google.container.v1.UsableSubnetwork} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.UsableSubnetwork) - com.google.container.v1.UsableSubnetworkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UsableSubnetwork_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UsableSubnetwork_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UsableSubnetwork.class, - com.google.container.v1.UsableSubnetwork.Builder.class); - } - - // Construct using com.google.container.v1.UsableSubnetwork.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSecondaryIpRangesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - subnetwork_ = ""; - - network_ = ""; - - ipCidrRange_ = ""; - - if (secondaryIpRangesBuilder_ == null) { - secondaryIpRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - secondaryIpRangesBuilder_.clear(); - } - statusMessage_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UsableSubnetwork_descriptor; - } - - @java.lang.Override - public com.google.container.v1.UsableSubnetwork getDefaultInstanceForType() { - return com.google.container.v1.UsableSubnetwork.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.UsableSubnetwork build() { - com.google.container.v1.UsableSubnetwork result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.UsableSubnetwork buildPartial() { - com.google.container.v1.UsableSubnetwork result = - new com.google.container.v1.UsableSubnetwork(this); - int from_bitField0_ = bitField0_; - result.subnetwork_ = subnetwork_; - result.network_ = network_; - result.ipCidrRange_ = ipCidrRange_; - if (secondaryIpRangesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - secondaryIpRanges_ = java.util.Collections.unmodifiableList(secondaryIpRanges_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.secondaryIpRanges_ = secondaryIpRanges_; - } else { - result.secondaryIpRanges_ = secondaryIpRangesBuilder_.build(); - } - result.statusMessage_ = statusMessage_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.UsableSubnetwork) { - return mergeFrom((com.google.container.v1.UsableSubnetwork) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.UsableSubnetwork other) { - if (other == com.google.container.v1.UsableSubnetwork.getDefaultInstance()) return this; - if (!other.getSubnetwork().isEmpty()) { - subnetwork_ = other.subnetwork_; - onChanged(); - } - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - onChanged(); - } - if (!other.getIpCidrRange().isEmpty()) { - ipCidrRange_ = other.ipCidrRange_; - onChanged(); - } - if (secondaryIpRangesBuilder_ == null) { - if (!other.secondaryIpRanges_.isEmpty()) { - if (secondaryIpRanges_.isEmpty()) { - secondaryIpRanges_ = other.secondaryIpRanges_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.addAll(other.secondaryIpRanges_); - } - onChanged(); - } - } else { - if (!other.secondaryIpRanges_.isEmpty()) { - if (secondaryIpRangesBuilder_.isEmpty()) { - secondaryIpRangesBuilder_.dispose(); - secondaryIpRangesBuilder_ = null; - secondaryIpRanges_ = other.secondaryIpRanges_; - bitField0_ = (bitField0_ & ~0x00000001); - secondaryIpRangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSecondaryIpRangesFieldBuilder() - : null; - } else { - secondaryIpRangesBuilder_.addAllMessages(other.secondaryIpRanges_); - } - } - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - 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.container.v1.UsableSubnetwork parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.UsableSubnetwork) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object subnetwork_ = ""; - /** - * - * - *
-     * Subnetwork Name.
-     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 1; - * - * @return The subnetwork. - */ - public java.lang.String getSubnetwork() { - java.lang.Object ref = subnetwork_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subnetwork_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Subnetwork Name.
-     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 1; - * - * @return The bytes for subnetwork. - */ - public com.google.protobuf.ByteString getSubnetworkBytes() { - java.lang.Object ref = subnetwork_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - subnetwork_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Subnetwork Name.
-     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 1; - * - * @param value The subnetwork to set. - * @return This builder for chaining. - */ - public Builder setSubnetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - subnetwork_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Subnetwork Name.
-     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 1; - * - * @return This builder for chaining. - */ - public Builder clearSubnetwork() { - - subnetwork_ = getDefaultInstance().getSubnetwork(); - onChanged(); - return this; - } - /** - * - * - *
-     * Subnetwork Name.
-     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
-     * 
- * - * string subnetwork = 1; - * - * @param value The bytes for subnetwork to set. - * @return This builder for chaining. - */ - public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - subnetwork_ = value; - onChanged(); - return this; - } - - private java.lang.Object network_ = ""; - /** - * - * - *
-     * Network Name.
-     * Example: projects/my-project/global/networks/my-network
-     * 
- * - * string network = 2; - * - * @return The network. - */ - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - network_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Network Name.
-     * Example: projects/my-project/global/networks/my-network
-     * 
- * - * string network = 2; - * - * @return The bytes for network. - */ - public com.google.protobuf.ByteString getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Network Name.
-     * Example: projects/my-project/global/networks/my-network
-     * 
- * - * string network = 2; - * - * @param value The network to set. - * @return This builder for chaining. - */ - public Builder setNetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - network_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Network Name.
-     * Example: projects/my-project/global/networks/my-network
-     * 
- * - * string network = 2; - * - * @return This builder for chaining. - */ - public Builder clearNetwork() { - - network_ = getDefaultInstance().getNetwork(); - onChanged(); - return this; - } - /** - * - * - *
-     * Network Name.
-     * Example: projects/my-project/global/networks/my-network
-     * 
- * - * string network = 2; - * - * @param value The bytes for network to set. - * @return This builder for chaining. - */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - network_ = value; - onChanged(); - return this; - } - - private java.lang.Object ipCidrRange_ = ""; - /** - * - * - *
-     * The range of internal addresses that are owned by this subnetwork.
-     * 
- * - * string ip_cidr_range = 3; - * - * @return The ipCidrRange. - */ - public java.lang.String getIpCidrRange() { - java.lang.Object ref = ipCidrRange_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ipCidrRange_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The range of internal addresses that are owned by this subnetwork.
-     * 
- * - * string ip_cidr_range = 3; - * - * @return The bytes for ipCidrRange. - */ - public com.google.protobuf.ByteString getIpCidrRangeBytes() { - java.lang.Object ref = ipCidrRange_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - ipCidrRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The range of internal addresses that are owned by this subnetwork.
-     * 
- * - * string ip_cidr_range = 3; - * - * @param value The ipCidrRange to set. - * @return This builder for chaining. - */ - public Builder setIpCidrRange(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ipCidrRange_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The range of internal addresses that are owned by this subnetwork.
-     * 
- * - * string ip_cidr_range = 3; - * - * @return This builder for chaining. - */ - public Builder clearIpCidrRange() { - - ipCidrRange_ = getDefaultInstance().getIpCidrRange(); - onChanged(); - return this; - } - /** - * - * - *
-     * The range of internal addresses that are owned by this subnetwork.
-     * 
- * - * string ip_cidr_range = 3; - * - * @param value The bytes for ipCidrRange to set. - * @return This builder for chaining. - */ - public Builder setIpCidrRangeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ipCidrRange_ = value; - onChanged(); - return this; - } - - private java.util.List - secondaryIpRanges_ = java.util.Collections.emptyList(); - - private void ensureSecondaryIpRangesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - secondaryIpRanges_ = - new java.util.ArrayList( - secondaryIpRanges_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.UsableSubnetworkSecondaryRange, - com.google.container.v1.UsableSubnetworkSecondaryRange.Builder, - com.google.container.v1.UsableSubnetworkSecondaryRangeOrBuilder> - secondaryIpRangesBuilder_; - - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public java.util.List - getSecondaryIpRangesList() { - if (secondaryIpRangesBuilder_ == null) { - return java.util.Collections.unmodifiableList(secondaryIpRanges_); - } else { - return secondaryIpRangesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public int getSecondaryIpRangesCount() { - if (secondaryIpRangesBuilder_ == null) { - return secondaryIpRanges_.size(); - } else { - return secondaryIpRangesBuilder_.getCount(); - } - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public com.google.container.v1.UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index) { - if (secondaryIpRangesBuilder_ == null) { - return secondaryIpRanges_.get(index); - } else { - return secondaryIpRangesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder setSecondaryIpRanges( - int index, com.google.container.v1.UsableSubnetworkSecondaryRange value) { - if (secondaryIpRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.set(index, value); - onChanged(); - } else { - secondaryIpRangesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder setSecondaryIpRanges( - int index, com.google.container.v1.UsableSubnetworkSecondaryRange.Builder builderForValue) { - if (secondaryIpRangesBuilder_ == null) { - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.set(index, builderForValue.build()); - onChanged(); - } else { - secondaryIpRangesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder addSecondaryIpRanges( - com.google.container.v1.UsableSubnetworkSecondaryRange value) { - if (secondaryIpRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.add(value); - onChanged(); - } else { - secondaryIpRangesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder addSecondaryIpRanges( - int index, com.google.container.v1.UsableSubnetworkSecondaryRange value) { - if (secondaryIpRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.add(index, value); - onChanged(); - } else { - secondaryIpRangesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder addSecondaryIpRanges( - com.google.container.v1.UsableSubnetworkSecondaryRange.Builder builderForValue) { - if (secondaryIpRangesBuilder_ == null) { - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.add(builderForValue.build()); - onChanged(); - } else { - secondaryIpRangesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder addSecondaryIpRanges( - int index, com.google.container.v1.UsableSubnetworkSecondaryRange.Builder builderForValue) { - if (secondaryIpRangesBuilder_ == null) { - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.add(index, builderForValue.build()); - onChanged(); - } else { - secondaryIpRangesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder addAllSecondaryIpRanges( - java.lang.Iterable - values) { - if (secondaryIpRangesBuilder_ == null) { - ensureSecondaryIpRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secondaryIpRanges_); - onChanged(); - } else { - secondaryIpRangesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder clearSecondaryIpRanges() { - if (secondaryIpRangesBuilder_ == null) { - secondaryIpRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - secondaryIpRangesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public Builder removeSecondaryIpRanges(int index) { - if (secondaryIpRangesBuilder_ == null) { - ensureSecondaryIpRangesIsMutable(); - secondaryIpRanges_.remove(index); - onChanged(); - } else { - secondaryIpRangesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public com.google.container.v1.UsableSubnetworkSecondaryRange.Builder - getSecondaryIpRangesBuilder(int index) { - return getSecondaryIpRangesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public com.google.container.v1.UsableSubnetworkSecondaryRangeOrBuilder - getSecondaryIpRangesOrBuilder(int index) { - if (secondaryIpRangesBuilder_ == null) { - return secondaryIpRanges_.get(index); - } else { - return secondaryIpRangesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public java.util.List - getSecondaryIpRangesOrBuilderList() { - if (secondaryIpRangesBuilder_ != null) { - return secondaryIpRangesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(secondaryIpRanges_); - } - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public com.google.container.v1.UsableSubnetworkSecondaryRange.Builder - addSecondaryIpRangesBuilder() { - return getSecondaryIpRangesFieldBuilder() - .addBuilder(com.google.container.v1.UsableSubnetworkSecondaryRange.getDefaultInstance()); - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public com.google.container.v1.UsableSubnetworkSecondaryRange.Builder - addSecondaryIpRangesBuilder(int index) { - return getSecondaryIpRangesFieldBuilder() - .addBuilder( - index, com.google.container.v1.UsableSubnetworkSecondaryRange.getDefaultInstance()); - } - /** - * - * - *
-     * Secondary IP ranges.
-     * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - public java.util.List - getSecondaryIpRangesBuilderList() { - return getSecondaryIpRangesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.UsableSubnetworkSecondaryRange, - com.google.container.v1.UsableSubnetworkSecondaryRange.Builder, - com.google.container.v1.UsableSubnetworkSecondaryRangeOrBuilder> - getSecondaryIpRangesFieldBuilder() { - if (secondaryIpRangesBuilder_ == null) { - secondaryIpRangesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.container.v1.UsableSubnetworkSecondaryRange, - com.google.container.v1.UsableSubnetworkSecondaryRange.Builder, - com.google.container.v1.UsableSubnetworkSecondaryRangeOrBuilder>( - secondaryIpRanges_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - secondaryIpRanges_ = null; - } - return secondaryIpRangesBuilder_; - } - - private java.lang.Object statusMessage_ = ""; - /** - * - * - *
-     * A human readable status message representing the reasons for cases where
-     * the caller cannot use the secondary ranges under the subnet. For example if
-     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-     * permission message will be given by status_message.
-     * 
- * - * string status_message = 5; - * - * @return The statusMessage. - */ - public java.lang.String getStatusMessage() { - java.lang.Object ref = statusMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusMessage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A human readable status message representing the reasons for cases where
-     * the caller cannot use the secondary ranges under the subnet. For example if
-     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-     * permission message will be given by status_message.
-     * 
- * - * string status_message = 5; - * - * @return The bytes for statusMessage. - */ - public com.google.protobuf.ByteString getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A human readable status message representing the reasons for cases where
-     * the caller cannot use the secondary ranges under the subnet. For example if
-     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-     * permission message will be given by status_message.
-     * 
- * - * string status_message = 5; - * - * @param value The statusMessage to set. - * @return This builder for chaining. - */ - public Builder setStatusMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusMessage_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A human readable status message representing the reasons for cases where
-     * the caller cannot use the secondary ranges under the subnet. For example if
-     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-     * permission message will be given by status_message.
-     * 
- * - * string status_message = 5; - * - * @return This builder for chaining. - */ - public Builder clearStatusMessage() { - - statusMessage_ = getDefaultInstance().getStatusMessage(); - onChanged(); - return this; - } - /** - * - * - *
-     * A human readable status message representing the reasons for cases where
-     * the caller cannot use the secondary ranges under the subnet. For example if
-     * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-     * permission message will be given by status_message.
-     * 
- * - * string status_message = 5; - * - * @param value The bytes for statusMessage to set. - * @return This builder for chaining. - */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusMessage_ = value; - 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.container.v1.UsableSubnetwork) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.UsableSubnetwork) - private static final com.google.container.v1.UsableSubnetwork DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.UsableSubnetwork(); - } - - public static com.google.container.v1.UsableSubnetwork getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UsableSubnetwork parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UsableSubnetwork(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.container.v1.UsableSubnetwork getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkOrBuilder.java deleted file mode 100644 index 1b967b99..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface UsableSubnetworkOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.UsableSubnetwork) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Subnetwork Name.
-   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
-   * 
- * - * string subnetwork = 1; - * - * @return The subnetwork. - */ - java.lang.String getSubnetwork(); - /** - * - * - *
-   * Subnetwork Name.
-   * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
-   * 
- * - * string subnetwork = 1; - * - * @return The bytes for subnetwork. - */ - com.google.protobuf.ByteString getSubnetworkBytes(); - - /** - * - * - *
-   * Network Name.
-   * Example: projects/my-project/global/networks/my-network
-   * 
- * - * string network = 2; - * - * @return The network. - */ - java.lang.String getNetwork(); - /** - * - * - *
-   * Network Name.
-   * Example: projects/my-project/global/networks/my-network
-   * 
- * - * string network = 2; - * - * @return The bytes for network. - */ - com.google.protobuf.ByteString getNetworkBytes(); - - /** - * - * - *
-   * The range of internal addresses that are owned by this subnetwork.
-   * 
- * - * string ip_cidr_range = 3; - * - * @return The ipCidrRange. - */ - java.lang.String getIpCidrRange(); - /** - * - * - *
-   * The range of internal addresses that are owned by this subnetwork.
-   * 
- * - * string ip_cidr_range = 3; - * - * @return The bytes for ipCidrRange. - */ - com.google.protobuf.ByteString getIpCidrRangeBytes(); - - /** - * - * - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - java.util.List getSecondaryIpRangesList(); - /** - * - * - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - com.google.container.v1.UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index); - /** - * - * - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - int getSecondaryIpRangesCount(); - /** - * - * - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - java.util.List - getSecondaryIpRangesOrBuilderList(); - /** - * - * - *
-   * Secondary IP ranges.
-   * 
- * - * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * - */ - com.google.container.v1.UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder( - int index); - - /** - * - * - *
-   * A human readable status message representing the reasons for cases where
-   * the caller cannot use the secondary ranges under the subnet. For example if
-   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-   * permission message will be given by status_message.
-   * 
- * - * string status_message = 5; - * - * @return The statusMessage. - */ - java.lang.String getStatusMessage(); - /** - * - * - *
-   * A human readable status message representing the reasons for cases where
-   * the caller cannot use the secondary ranges under the subnet. For example if
-   * the secondary_ip_ranges is empty due to a permission issue, an insufficient
-   * permission message will be given by status_message.
-   * 
- * - * string status_message = 5; - * - * @return The bytes for statusMessage. - */ - com.google.protobuf.ByteString getStatusMessageBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRange.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRange.java deleted file mode 100644 index 3a783ebd..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRange.java +++ /dev/null @@ -1,1191 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Secondary IP range of a usable subnetwork.
- * 
- * - * Protobuf type {@code google.container.v1.UsableSubnetworkSecondaryRange} - */ -public final class UsableSubnetworkSecondaryRange extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.UsableSubnetworkSecondaryRange) - UsableSubnetworkSecondaryRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use UsableSubnetworkSecondaryRange.newBuilder() to construct. - private UsableSubnetworkSecondaryRange( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UsableSubnetworkSecondaryRange() { - rangeName_ = ""; - ipCidrRange_ = ""; - status_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UsableSubnetworkSecondaryRange(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private UsableSubnetworkSecondaryRange( - 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(); - - rangeName_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - ipCidrRange_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); - - status_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UsableSubnetworkSecondaryRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UsableSubnetworkSecondaryRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UsableSubnetworkSecondaryRange.class, - com.google.container.v1.UsableSubnetworkSecondaryRange.Builder.class); - } - - /** - * - * - *
-   * Status shows the current usage of a secondary IP range.
-   * 
- * - * Protobuf enum {@code google.container.v1.UsableSubnetworkSecondaryRange.Status} - */ - public enum Status implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * UNKNOWN is the zero value of the Status enum. It's not a valid status.
-     * 
- * - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * - * - *
-     * UNUSED denotes that this range is unclaimed by any cluster.
-     * 
- * - * UNUSED = 1; - */ - UNUSED(1), - /** - * - * - *
-     * IN_USE_SERVICE denotes that this range is claimed by a cluster for
-     * services. It cannot be used for other clusters.
-     * 
- * - * IN_USE_SERVICE = 2; - */ - IN_USE_SERVICE(2), - /** - * - * - *
-     * IN_USE_SHAREABLE_POD denotes this range was created by the network admin
-     * and is currently claimed by a cluster for pods. It can only be used by
-     * other clusters as a pod range.
-     * 
- * - * IN_USE_SHAREABLE_POD = 3; - */ - IN_USE_SHAREABLE_POD(3), - /** - * - * - *
-     * IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed
-     * for pods. It cannot be used for other clusters.
-     * 
- * - * IN_USE_MANAGED_POD = 4; - */ - IN_USE_MANAGED_POD(4), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * UNKNOWN is the zero value of the Status enum. It's not a valid status.
-     * 
- * - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * - * - *
-     * UNUSED denotes that this range is unclaimed by any cluster.
-     * 
- * - * UNUSED = 1; - */ - public static final int UNUSED_VALUE = 1; - /** - * - * - *
-     * IN_USE_SERVICE denotes that this range is claimed by a cluster for
-     * services. It cannot be used for other clusters.
-     * 
- * - * IN_USE_SERVICE = 2; - */ - public static final int IN_USE_SERVICE_VALUE = 2; - /** - * - * - *
-     * IN_USE_SHAREABLE_POD denotes this range was created by the network admin
-     * and is currently claimed by a cluster for pods. It can only be used by
-     * other clusters as a pod range.
-     * 
- * - * IN_USE_SHAREABLE_POD = 3; - */ - public static final int IN_USE_SHAREABLE_POD_VALUE = 3; - /** - * - * - *
-     * IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed
-     * for pods. It cannot be used for other clusters.
-     * 
- * - * IN_USE_MANAGED_POD = 4; - */ - public static final int IN_USE_MANAGED_POD_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 Status 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 Status forNumber(int value) { - switch (value) { - case 0: - return UNKNOWN; - case 1: - return UNUSED; - case 2: - return IN_USE_SERVICE; - case 3: - return IN_USE_SHAREABLE_POD; - case 4: - return IN_USE_MANAGED_POD; - 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 Status findValueByNumber(int number) { - return Status.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.container.v1.UsableSubnetworkSecondaryRange.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Status[] VALUES = values(); - - public static Status 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 Status(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.UsableSubnetworkSecondaryRange.Status) - } - - public static final int RANGE_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object rangeName_; - /** - * - * - *
-   * The name associated with this subnetwork secondary range, used when adding
-   * an alias IP range to a VM instance.
-   * 
- * - * string range_name = 1; - * - * @return The rangeName. - */ - @java.lang.Override - public java.lang.String getRangeName() { - java.lang.Object ref = rangeName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rangeName_ = s; - return s; - } - } - /** - * - * - *
-   * The name associated with this subnetwork secondary range, used when adding
-   * an alias IP range to a VM instance.
-   * 
- * - * string range_name = 1; - * - * @return The bytes for rangeName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRangeNameBytes() { - java.lang.Object ref = rangeName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - rangeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IP_CIDR_RANGE_FIELD_NUMBER = 2; - private volatile java.lang.Object ipCidrRange_; - /** - * - * - *
-   * The range of IP addresses belonging to this subnetwork secondary range.
-   * 
- * - * string ip_cidr_range = 2; - * - * @return The ipCidrRange. - */ - @java.lang.Override - public java.lang.String getIpCidrRange() { - java.lang.Object ref = ipCidrRange_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ipCidrRange_ = s; - return s; - } - } - /** - * - * - *
-   * The range of IP addresses belonging to this subnetwork secondary range.
-   * 
- * - * string ip_cidr_range = 2; - * - * @return The bytes for ipCidrRange. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIpCidrRangeBytes() { - java.lang.Object ref = ipCidrRange_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - ipCidrRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 3; - private int status_; - /** - * - * - *
-   * This field is to determine the status of the secondary range programmably.
-   * 
- * - * .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; - * - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override - public int getStatusValue() { - return status_; - } - /** - * - * - *
-   * This field is to determine the status of the secondary range programmably.
-   * 
- * - * .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1.UsableSubnetworkSecondaryRange.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1.UsableSubnetworkSecondaryRange.Status result = - com.google.container.v1.UsableSubnetworkSecondaryRange.Status.valueOf(status_); - return result == null - ? com.google.container.v1.UsableSubnetworkSecondaryRange.Status.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 (!getRangeNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rangeName_); - } - if (!getIpCidrRangeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ipCidrRange_); - } - if (status_ - != com.google.container.v1.UsableSubnetworkSecondaryRange.Status.UNKNOWN.getNumber()) { - output.writeEnum(3, status_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getRangeNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rangeName_); - } - if (!getIpCidrRangeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ipCidrRange_); - } - if (status_ - != com.google.container.v1.UsableSubnetworkSecondaryRange.Status.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, status_); - } - 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.container.v1.UsableSubnetworkSecondaryRange)) { - return super.equals(obj); - } - com.google.container.v1.UsableSubnetworkSecondaryRange other = - (com.google.container.v1.UsableSubnetworkSecondaryRange) obj; - - if (!getRangeName().equals(other.getRangeName())) return false; - if (!getIpCidrRange().equals(other.getIpCidrRange())) return false; - if (status_ != other.status_) 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) + RANGE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getRangeName().hashCode(); - hash = (37 * hash) + IP_CIDR_RANGE_FIELD_NUMBER; - hash = (53 * hash) + getIpCidrRange().hashCode(); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + status_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.UsableSubnetworkSecondaryRange parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UsableSubnetworkSecondaryRange parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UsableSubnetworkSecondaryRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UsableSubnetworkSecondaryRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UsableSubnetworkSecondaryRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.UsableSubnetworkSecondaryRange parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.UsableSubnetworkSecondaryRange parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.UsableSubnetworkSecondaryRange parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.UsableSubnetworkSecondaryRange parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.UsableSubnetworkSecondaryRange parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.UsableSubnetworkSecondaryRange parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.UsableSubnetworkSecondaryRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.container.v1.UsableSubnetworkSecondaryRange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Secondary IP range of a usable subnetwork.
-   * 
- * - * Protobuf type {@code google.container.v1.UsableSubnetworkSecondaryRange} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.UsableSubnetworkSecondaryRange) - com.google.container.v1.UsableSubnetworkSecondaryRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UsableSubnetworkSecondaryRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UsableSubnetworkSecondaryRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.UsableSubnetworkSecondaryRange.class, - com.google.container.v1.UsableSubnetworkSecondaryRange.Builder.class); - } - - // Construct using com.google.container.v1.UsableSubnetworkSecondaryRange.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(); - rangeName_ = ""; - - ipCidrRange_ = ""; - - status_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_UsableSubnetworkSecondaryRange_descriptor; - } - - @java.lang.Override - public com.google.container.v1.UsableSubnetworkSecondaryRange getDefaultInstanceForType() { - return com.google.container.v1.UsableSubnetworkSecondaryRange.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.UsableSubnetworkSecondaryRange build() { - com.google.container.v1.UsableSubnetworkSecondaryRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.UsableSubnetworkSecondaryRange buildPartial() { - com.google.container.v1.UsableSubnetworkSecondaryRange result = - new com.google.container.v1.UsableSubnetworkSecondaryRange(this); - result.rangeName_ = rangeName_; - result.ipCidrRange_ = ipCidrRange_; - result.status_ = status_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.UsableSubnetworkSecondaryRange) { - return mergeFrom((com.google.container.v1.UsableSubnetworkSecondaryRange) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.UsableSubnetworkSecondaryRange other) { - if (other == com.google.container.v1.UsableSubnetworkSecondaryRange.getDefaultInstance()) - return this; - if (!other.getRangeName().isEmpty()) { - rangeName_ = other.rangeName_; - onChanged(); - } - if (!other.getIpCidrRange().isEmpty()) { - ipCidrRange_ = other.ipCidrRange_; - onChanged(); - } - if (other.status_ != 0) { - setStatusValue(other.getStatusValue()); - } - 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.container.v1.UsableSubnetworkSecondaryRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.container.v1.UsableSubnetworkSecondaryRange) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object rangeName_ = ""; - /** - * - * - *
-     * The name associated with this subnetwork secondary range, used when adding
-     * an alias IP range to a VM instance.
-     * 
- * - * string range_name = 1; - * - * @return The rangeName. - */ - public java.lang.String getRangeName() { - java.lang.Object ref = rangeName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rangeName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The name associated with this subnetwork secondary range, used when adding
-     * an alias IP range to a VM instance.
-     * 
- * - * string range_name = 1; - * - * @return The bytes for rangeName. - */ - public com.google.protobuf.ByteString getRangeNameBytes() { - java.lang.Object ref = rangeName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - rangeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The name associated with this subnetwork secondary range, used when adding
-     * an alias IP range to a VM instance.
-     * 
- * - * string range_name = 1; - * - * @param value The rangeName to set. - * @return This builder for chaining. - */ - public Builder setRangeName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - rangeName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The name associated with this subnetwork secondary range, used when adding
-     * an alias IP range to a VM instance.
-     * 
- * - * string range_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearRangeName() { - - rangeName_ = getDefaultInstance().getRangeName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name associated with this subnetwork secondary range, used when adding
-     * an alias IP range to a VM instance.
-     * 
- * - * string range_name = 1; - * - * @param value The bytes for rangeName to set. - * @return This builder for chaining. - */ - public Builder setRangeNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - rangeName_ = value; - onChanged(); - return this; - } - - private java.lang.Object ipCidrRange_ = ""; - /** - * - * - *
-     * The range of IP addresses belonging to this subnetwork secondary range.
-     * 
- * - * string ip_cidr_range = 2; - * - * @return The ipCidrRange. - */ - public java.lang.String getIpCidrRange() { - java.lang.Object ref = ipCidrRange_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ipCidrRange_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The range of IP addresses belonging to this subnetwork secondary range.
-     * 
- * - * string ip_cidr_range = 2; - * - * @return The bytes for ipCidrRange. - */ - public com.google.protobuf.ByteString getIpCidrRangeBytes() { - java.lang.Object ref = ipCidrRange_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - ipCidrRange_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The range of IP addresses belonging to this subnetwork secondary range.
-     * 
- * - * string ip_cidr_range = 2; - * - * @param value The ipCidrRange to set. - * @return This builder for chaining. - */ - public Builder setIpCidrRange(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ipCidrRange_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The range of IP addresses belonging to this subnetwork secondary range.
-     * 
- * - * string ip_cidr_range = 2; - * - * @return This builder for chaining. - */ - public Builder clearIpCidrRange() { - - ipCidrRange_ = getDefaultInstance().getIpCidrRange(); - onChanged(); - return this; - } - /** - * - * - *
-     * The range of IP addresses belonging to this subnetwork secondary range.
-     * 
- * - * string ip_cidr_range = 2; - * - * @param value The bytes for ipCidrRange to set. - * @return This builder for chaining. - */ - public Builder setIpCidrRangeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ipCidrRange_ = value; - onChanged(); - return this; - } - - private int status_ = 0; - /** - * - * - *
-     * This field is to determine the status of the secondary range programmably.
-     * 
- * - * .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; - * - * @return The enum numeric value on the wire for status. - */ - @java.lang.Override - public int getStatusValue() { - return status_; - } - /** - * - * - *
-     * This field is to determine the status of the secondary range programmably.
-     * 
- * - * .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; - * - * @param value The enum numeric value on the wire for status to set. - * @return This builder for chaining. - */ - public Builder setStatusValue(int value) { - - status_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * This field is to determine the status of the secondary range programmably.
-     * 
- * - * .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; - * - * @return The status. - */ - @java.lang.Override - public com.google.container.v1.UsableSubnetworkSecondaryRange.Status getStatus() { - @SuppressWarnings("deprecation") - com.google.container.v1.UsableSubnetworkSecondaryRange.Status result = - com.google.container.v1.UsableSubnetworkSecondaryRange.Status.valueOf(status_); - return result == null - ? com.google.container.v1.UsableSubnetworkSecondaryRange.Status.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * This field is to determine the status of the secondary range programmably.
-     * 
- * - * .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; - * - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(com.google.container.v1.UsableSubnetworkSecondaryRange.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * This field is to determine the status of the secondary range programmably.
-     * 
- * - * .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; - * - * @return This builder for chaining. - */ - public Builder clearStatus() { - - status_ = 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.container.v1.UsableSubnetworkSecondaryRange) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.UsableSubnetworkSecondaryRange) - private static final com.google.container.v1.UsableSubnetworkSecondaryRange DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.UsableSubnetworkSecondaryRange(); - } - - public static com.google.container.v1.UsableSubnetworkSecondaryRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UsableSubnetworkSecondaryRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UsableSubnetworkSecondaryRange(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.container.v1.UsableSubnetworkSecondaryRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRangeOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRangeOrBuilder.java deleted file mode 100644 index 44fc87c7..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRangeOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface UsableSubnetworkSecondaryRangeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.UsableSubnetworkSecondaryRange) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The name associated with this subnetwork secondary range, used when adding
-   * an alias IP range to a VM instance.
-   * 
- * - * string range_name = 1; - * - * @return The rangeName. - */ - java.lang.String getRangeName(); - /** - * - * - *
-   * The name associated with this subnetwork secondary range, used when adding
-   * an alias IP range to a VM instance.
-   * 
- * - * string range_name = 1; - * - * @return The bytes for rangeName. - */ - com.google.protobuf.ByteString getRangeNameBytes(); - - /** - * - * - *
-   * The range of IP addresses belonging to this subnetwork secondary range.
-   * 
- * - * string ip_cidr_range = 2; - * - * @return The ipCidrRange. - */ - java.lang.String getIpCidrRange(); - /** - * - * - *
-   * The range of IP addresses belonging to this subnetwork secondary range.
-   * 
- * - * string ip_cidr_range = 2; - * - * @return The bytes for ipCidrRange. - */ - com.google.protobuf.ByteString getIpCidrRangeBytes(); - - /** - * - * - *
-   * This field is to determine the status of the secondary range programmably.
-   * 
- * - * .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; - * - * @return The enum numeric value on the wire for status. - */ - int getStatusValue(); - /** - * - * - *
-   * This field is to determine the status of the secondary range programmably.
-   * 
- * - * .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; - * - * @return The status. - */ - com.google.container.v1.UsableSubnetworkSecondaryRange.Status getStatus(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscaling.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscaling.java deleted file mode 100644 index 1af63120..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscaling.java +++ /dev/null @@ -1,548 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * VerticalPodAutoscaling contains global, per-cluster information
- * required by Vertical Pod Autoscaler to automatically adjust
- * the resources of pods controlled by it.
- * 
- * - * Protobuf type {@code google.container.v1.VerticalPodAutoscaling} - */ -public final class VerticalPodAutoscaling extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.VerticalPodAutoscaling) - VerticalPodAutoscalingOrBuilder { - private static final long serialVersionUID = 0L; - // Use VerticalPodAutoscaling.newBuilder() to construct. - private VerticalPodAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private VerticalPodAutoscaling() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new VerticalPodAutoscaling(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private VerticalPodAutoscaling( - 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: - { - enabled_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_VerticalPodAutoscaling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_VerticalPodAutoscaling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.VerticalPodAutoscaling.class, - com.google.container.v1.VerticalPodAutoscaling.Builder.class); - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - * - * - *
-   * Enables vertical pod autoscaling.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enabled_ != false) { - output.writeBool(1, enabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); - } - 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.container.v1.VerticalPodAutoscaling)) { - return super.equals(obj); - } - com.google.container.v1.VerticalPodAutoscaling other = - (com.google.container.v1.VerticalPodAutoscaling) obj; - - if (getEnabled() != other.getEnabled()) 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) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.VerticalPodAutoscaling parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.VerticalPodAutoscaling parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.VerticalPodAutoscaling parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.VerticalPodAutoscaling parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.VerticalPodAutoscaling parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.VerticalPodAutoscaling parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.VerticalPodAutoscaling parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.VerticalPodAutoscaling parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.VerticalPodAutoscaling parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.VerticalPodAutoscaling parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.VerticalPodAutoscaling parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.VerticalPodAutoscaling parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.VerticalPodAutoscaling prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * VerticalPodAutoscaling contains global, per-cluster information
-   * required by Vertical Pod Autoscaler to automatically adjust
-   * the resources of pods controlled by it.
-   * 
- * - * Protobuf type {@code google.container.v1.VerticalPodAutoscaling} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.VerticalPodAutoscaling) - com.google.container.v1.VerticalPodAutoscalingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_VerticalPodAutoscaling_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_VerticalPodAutoscaling_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.VerticalPodAutoscaling.class, - com.google.container.v1.VerticalPodAutoscaling.Builder.class); - } - - // Construct using com.google.container.v1.VerticalPodAutoscaling.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(); - enabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_VerticalPodAutoscaling_descriptor; - } - - @java.lang.Override - public com.google.container.v1.VerticalPodAutoscaling getDefaultInstanceForType() { - return com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.VerticalPodAutoscaling build() { - com.google.container.v1.VerticalPodAutoscaling result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.VerticalPodAutoscaling buildPartial() { - com.google.container.v1.VerticalPodAutoscaling result = - new com.google.container.v1.VerticalPodAutoscaling(this); - result.enabled_ = enabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.VerticalPodAutoscaling) { - return mergeFrom((com.google.container.v1.VerticalPodAutoscaling) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.VerticalPodAutoscaling other) { - if (other == com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - 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.container.v1.VerticalPodAutoscaling parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.VerticalPodAutoscaling) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean enabled_; - /** - * - * - *
-     * Enables vertical pod autoscaling.
-     * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - @java.lang.Override - public boolean getEnabled() { - return enabled_; - } - /** - * - * - *
-     * Enables vertical pod autoscaling.
-     * 
- * - * bool enabled = 1; - * - * @param value The enabled to set. - * @return This builder for chaining. - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Enables vertical pod autoscaling.
-     * 
- * - * bool enabled = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnabled() { - - enabled_ = 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.container.v1.VerticalPodAutoscaling) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.VerticalPodAutoscaling) - private static final com.google.container.v1.VerticalPodAutoscaling DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.VerticalPodAutoscaling(); - } - - public static com.google.container.v1.VerticalPodAutoscaling getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VerticalPodAutoscaling parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VerticalPodAutoscaling(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.container.v1.VerticalPodAutoscaling getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscalingOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscalingOrBuilder.java deleted file mode 100644 index e03a9612..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscalingOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface VerticalPodAutoscalingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.VerticalPodAutoscaling) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Enables vertical pod autoscaling.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfig.java deleted file mode 100644 index 8d8a69f4..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfig.java +++ /dev/null @@ -1,636 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * Configuration for the use of Kubernetes Service Accounts in GCP IAM
- * policies.
- * 
- * - * Protobuf type {@code google.container.v1.WorkloadIdentityConfig} - */ -public final class WorkloadIdentityConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.WorkloadIdentityConfig) - WorkloadIdentityConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkloadIdentityConfig.newBuilder() to construct. - private WorkloadIdentityConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkloadIdentityConfig() { - workloadPool_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkloadIdentityConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private WorkloadIdentityConfig( - 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 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - workloadPool_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadIdentityConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadIdentityConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.WorkloadIdentityConfig.class, - com.google.container.v1.WorkloadIdentityConfig.Builder.class); - } - - public static final int WORKLOAD_POOL_FIELD_NUMBER = 2; - private volatile java.lang.Object workloadPool_; - /** - * - * - *
-   * The workload pool to attach all Kubernetes service accounts to.
-   * 
- * - * string workload_pool = 2; - * - * @return The workloadPool. - */ - @java.lang.Override - public java.lang.String getWorkloadPool() { - java.lang.Object ref = workloadPool_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workloadPool_ = s; - return s; - } - } - /** - * - * - *
-   * The workload pool to attach all Kubernetes service accounts to.
-   * 
- * - * string workload_pool = 2; - * - * @return The bytes for workloadPool. - */ - @java.lang.Override - public com.google.protobuf.ByteString getWorkloadPoolBytes() { - java.lang.Object ref = workloadPool_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workloadPool_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getWorkloadPoolBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, workloadPool_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getWorkloadPoolBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workloadPool_); - } - 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.container.v1.WorkloadIdentityConfig)) { - return super.equals(obj); - } - com.google.container.v1.WorkloadIdentityConfig other = - (com.google.container.v1.WorkloadIdentityConfig) obj; - - if (!getWorkloadPool().equals(other.getWorkloadPool())) 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) + WORKLOAD_POOL_FIELD_NUMBER; - hash = (53 * hash) + getWorkloadPool().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.WorkloadIdentityConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.WorkloadIdentityConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.WorkloadIdentityConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 use of Kubernetes Service Accounts in GCP IAM
-   * policies.
-   * 
- * - * Protobuf type {@code google.container.v1.WorkloadIdentityConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.WorkloadIdentityConfig) - com.google.container.v1.WorkloadIdentityConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadIdentityConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadIdentityConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.WorkloadIdentityConfig.class, - com.google.container.v1.WorkloadIdentityConfig.Builder.class); - } - - // Construct using com.google.container.v1.WorkloadIdentityConfig.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(); - workloadPool_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadIdentityConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfig getDefaultInstanceForType() { - return com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfig build() { - com.google.container.v1.WorkloadIdentityConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.WorkloadIdentityConfig buildPartial() { - com.google.container.v1.WorkloadIdentityConfig result = - new com.google.container.v1.WorkloadIdentityConfig(this); - result.workloadPool_ = workloadPool_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.WorkloadIdentityConfig) { - return mergeFrom((com.google.container.v1.WorkloadIdentityConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.WorkloadIdentityConfig other) { - if (other == com.google.container.v1.WorkloadIdentityConfig.getDefaultInstance()) return this; - if (!other.getWorkloadPool().isEmpty()) { - workloadPool_ = other.workloadPool_; - 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.container.v1.WorkloadIdentityConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.WorkloadIdentityConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object workloadPool_ = ""; - /** - * - * - *
-     * The workload pool to attach all Kubernetes service accounts to.
-     * 
- * - * string workload_pool = 2; - * - * @return The workloadPool. - */ - public java.lang.String getWorkloadPool() { - java.lang.Object ref = workloadPool_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workloadPool_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The workload pool to attach all Kubernetes service accounts to.
-     * 
- * - * string workload_pool = 2; - * - * @return The bytes for workloadPool. - */ - public com.google.protobuf.ByteString getWorkloadPoolBytes() { - java.lang.Object ref = workloadPool_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - workloadPool_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The workload pool to attach all Kubernetes service accounts to.
-     * 
- * - * string workload_pool = 2; - * - * @param value The workloadPool to set. - * @return This builder for chaining. - */ - public Builder setWorkloadPool(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - workloadPool_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The workload pool to attach all Kubernetes service accounts to.
-     * 
- * - * string workload_pool = 2; - * - * @return This builder for chaining. - */ - public Builder clearWorkloadPool() { - - workloadPool_ = getDefaultInstance().getWorkloadPool(); - onChanged(); - return this; - } - /** - * - * - *
-     * The workload pool to attach all Kubernetes service accounts to.
-     * 
- * - * string workload_pool = 2; - * - * @param value The bytes for workloadPool to set. - * @return This builder for chaining. - */ - public Builder setWorkloadPoolBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - workloadPool_ = 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.container.v1.WorkloadIdentityConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.WorkloadIdentityConfig) - private static final com.google.container.v1.WorkloadIdentityConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.WorkloadIdentityConfig(); - } - - public static com.google.container.v1.WorkloadIdentityConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkloadIdentityConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkloadIdentityConfig(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.container.v1.WorkloadIdentityConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfigOrBuilder.java deleted file mode 100644 index 759c92b4..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfigOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface WorkloadIdentityConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.WorkloadIdentityConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The workload pool to attach all Kubernetes service accounts to.
-   * 
- * - * string workload_pool = 2; - * - * @return The workloadPool. - */ - java.lang.String getWorkloadPool(); - /** - * - * - *
-   * The workload pool to attach all Kubernetes service accounts to.
-   * 
- * - * string workload_pool = 2; - * - * @return The bytes for workloadPool. - */ - com.google.protobuf.ByteString getWorkloadPoolBytes(); -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfig.java deleted file mode 100644 index 846a98fd..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfig.java +++ /dev/null @@ -1,784 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/container/v1/cluster_service.proto - -package com.google.container.v1; - -/** - * - * - *
- * WorkloadMetadataConfig defines the metadata configuration to expose to
- * workloads on the node pool.
- * 
- * - * Protobuf type {@code google.container.v1.WorkloadMetadataConfig} - */ -public final class WorkloadMetadataConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.container.v1.WorkloadMetadataConfig) - WorkloadMetadataConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkloadMetadataConfig.newBuilder() to construct. - private WorkloadMetadataConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private WorkloadMetadataConfig() { - mode_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new WorkloadMetadataConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private WorkloadMetadataConfig( - 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: - { - int rawValue = input.readEnum(); - - mode_ = 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.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadMetadataConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadMetadataConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.WorkloadMetadataConfig.class, - com.google.container.v1.WorkloadMetadataConfig.Builder.class); - } - - /** - * - * - *
-   * Mode is the configuration for how to expose metadata to workloads running
-   * on the node.
-   * 
- * - * Protobuf enum {@code google.container.v1.WorkloadMetadataConfig.Mode} - */ - public enum Mode implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Not set.
-     * 
- * - * MODE_UNSPECIFIED = 0; - */ - MODE_UNSPECIFIED(0), - /** - * - * - *
-     * Expose all Compute Engine metadata to pods.
-     * 
- * - * GCE_METADATA = 1; - */ - GCE_METADATA(1), - /** - * - * - *
-     * Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
-     * a metadata API to workloads that is compatible with the V1 Compute
-     * Metadata APIs exposed by the Compute Engine and App Engine Metadata
-     * Servers. This feature can only be enabled if Workload Identity is enabled
-     * at the cluster level.
-     * 
- * - * GKE_METADATA = 2; - */ - GKE_METADATA(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Not set.
-     * 
- * - * MODE_UNSPECIFIED = 0; - */ - public static final int MODE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Expose all Compute Engine metadata to pods.
-     * 
- * - * GCE_METADATA = 1; - */ - public static final int GCE_METADATA_VALUE = 1; - /** - * - * - *
-     * Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
-     * a metadata API to workloads that is compatible with the V1 Compute
-     * Metadata APIs exposed by the Compute Engine and App Engine Metadata
-     * Servers. This feature can only be enabled if Workload Identity is enabled
-     * at the cluster level.
-     * 
- * - * GKE_METADATA = 2; - */ - public static final int GKE_METADATA_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Mode valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Mode forNumber(int value) { - switch (value) { - case 0: - return MODE_UNSPECIFIED; - case 1: - return GCE_METADATA; - case 2: - return GKE_METADATA; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Mode findValueByNumber(int number) { - return Mode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.container.v1.WorkloadMetadataConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final Mode[] VALUES = values(); - - public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Mode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.container.v1.WorkloadMetadataConfig.Mode) - } - - public static final int MODE_FIELD_NUMBER = 2; - private int mode_; - /** - * - * - *
-   * Mode is the configuration for how to expose metadata to workloads running
-   * on the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * - * @return The enum numeric value on the wire for mode. - */ - @java.lang.Override - public int getModeValue() { - return mode_; - } - /** - * - * - *
-   * Mode is the configuration for how to expose metadata to workloads running
-   * on the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * - * @return The mode. - */ - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfig.Mode getMode() { - @SuppressWarnings("deprecation") - com.google.container.v1.WorkloadMetadataConfig.Mode result = - com.google.container.v1.WorkloadMetadataConfig.Mode.valueOf(mode_); - return result == null - ? com.google.container.v1.WorkloadMetadataConfig.Mode.UNRECOGNIZED - : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (mode_ != com.google.container.v1.WorkloadMetadataConfig.Mode.MODE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, mode_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (mode_ != com.google.container.v1.WorkloadMetadataConfig.Mode.MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, mode_); - } - 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.container.v1.WorkloadMetadataConfig)) { - return super.equals(obj); - } - com.google.container.v1.WorkloadMetadataConfig other = - (com.google.container.v1.WorkloadMetadataConfig) obj; - - if (mode_ != other.mode_) 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) + MODE_FIELD_NUMBER; - hash = (53 * hash) + mode_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.container.v1.WorkloadMetadataConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.container.v1.WorkloadMetadataConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.container.v1.WorkloadMetadataConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * WorkloadMetadataConfig defines the metadata configuration to expose to
-   * workloads on the node pool.
-   * 
- * - * Protobuf type {@code google.container.v1.WorkloadMetadataConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.container.v1.WorkloadMetadataConfig) - com.google.container.v1.WorkloadMetadataConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadMetadataConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadMetadataConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.container.v1.WorkloadMetadataConfig.class, - com.google.container.v1.WorkloadMetadataConfig.Builder.class); - } - - // Construct using com.google.container.v1.WorkloadMetadataConfig.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(); - mode_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.container.v1.ClusterServiceProto - .internal_static_google_container_v1_WorkloadMetadataConfig_descriptor; - } - - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfig getDefaultInstanceForType() { - return com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfig build() { - com.google.container.v1.WorkloadMetadataConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfig buildPartial() { - com.google.container.v1.WorkloadMetadataConfig result = - new com.google.container.v1.WorkloadMetadataConfig(this); - result.mode_ = mode_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.container.v1.WorkloadMetadataConfig) { - return mergeFrom((com.google.container.v1.WorkloadMetadataConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.container.v1.WorkloadMetadataConfig other) { - if (other == com.google.container.v1.WorkloadMetadataConfig.getDefaultInstance()) return this; - if (other.mode_ != 0) { - setModeValue(other.getModeValue()); - } - 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.container.v1.WorkloadMetadataConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.container.v1.WorkloadMetadataConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int mode_ = 0; - /** - * - * - *
-     * Mode is the configuration for how to expose metadata to workloads running
-     * on the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * - * @return The enum numeric value on the wire for mode. - */ - @java.lang.Override - public int getModeValue() { - return mode_; - } - /** - * - * - *
-     * Mode is the configuration for how to expose metadata to workloads running
-     * on the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * - * @param value The enum numeric value on the wire for mode to set. - * @return This builder for chaining. - */ - public Builder setModeValue(int value) { - - mode_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Mode is the configuration for how to expose metadata to workloads running
-     * on the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * - * @return The mode. - */ - @java.lang.Override - public com.google.container.v1.WorkloadMetadataConfig.Mode getMode() { - @SuppressWarnings("deprecation") - com.google.container.v1.WorkloadMetadataConfig.Mode result = - com.google.container.v1.WorkloadMetadataConfig.Mode.valueOf(mode_); - return result == null - ? com.google.container.v1.WorkloadMetadataConfig.Mode.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Mode is the configuration for how to expose metadata to workloads running
-     * on the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * - * @param value The mode to set. - * @return This builder for chaining. - */ - public Builder setMode(com.google.container.v1.WorkloadMetadataConfig.Mode value) { - if (value == null) { - throw new NullPointerException(); - } - - mode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Mode is the configuration for how to expose metadata to workloads running
-     * on the node pool.
-     * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * - * @return This builder for chaining. - */ - public Builder clearMode() { - - mode_ = 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.container.v1.WorkloadMetadataConfig) - } - - // @@protoc_insertion_point(class_scope:google.container.v1.WorkloadMetadataConfig) - private static final com.google.container.v1.WorkloadMetadataConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.container.v1.WorkloadMetadataConfig(); - } - - public static com.google.container.v1.WorkloadMetadataConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkloadMetadataConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkloadMetadataConfig(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.container.v1.WorkloadMetadataConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfigOrBuilder.java deleted file mode 100644 index d24b40fb..00000000 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfigOrBuilder.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/container/v1/cluster_service.proto - -package com.google.container.v1; - -public interface WorkloadMetadataConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.container.v1.WorkloadMetadataConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Mode is the configuration for how to expose metadata to workloads running
-   * on the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * - * @return The enum numeric value on the wire for mode. - */ - int getModeValue(); - /** - * - * - *
-   * Mode is the configuration for how to expose metadata to workloads running
-   * on the node pool.
-   * 
- * - * .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * - * @return The mode. - */ - com.google.container.v1.WorkloadMetadataConfig.Mode getMode(); -} diff --git a/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto b/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto deleted file mode 100644 index 040173ec..00000000 --- a/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto +++ /dev/null @@ -1,3352 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.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.container.v1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.Container.V1"; -option go_package = "google.golang.org/genproto/googleapis/container/v1;container"; -option java_multiple_files = true; -option java_outer_classname = "ClusterServiceProto"; -option java_package = "com.google.container.v1"; -option php_namespace = "Google\\Cloud\\Container\\V1"; -option ruby_package = "Google::Cloud::Container::V1"; - -// Google Kubernetes Engine Cluster Manager v1 -service ClusterManager { - option (google.api.default_host) = "container.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Lists all clusters owned by a project in either the specified zone or all - // zones. - rpc ListClusters(ListClustersRequest) returns (ListClustersResponse) { - option (google.api.http) = { - get: "/v1/{parent=projects/*/locations/*}/clusters" - additional_bindings { - get: "/v1/projects/{project_id}/zones/{zone}/clusters" - } - }; - option (google.api.method_signature) = "project_id,zone"; - option (google.api.method_signature) = "parent"; - } - - // Gets the details of a specific cluster. - rpc GetCluster(GetClusterRequest) returns (Cluster) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/clusters/*}" - additional_bindings { - get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" - } - }; - option (google.api.method_signature) = "project_id,zone,cluster_id"; - option (google.api.method_signature) = "name"; - } - - // Creates a cluster, consisting of the specified number and type of Google - // Compute Engine instances. - // - // By default, the cluster is created in the project's - // [default - // network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). - // - // One firewall is added for the cluster. After cluster creation, - // the Kubelet creates routes for each node to allow the containers - // on that node to communicate with all other instances in the - // cluster. - // - // Finally, an entry is added to the project's global metadata indicating - // which CIDR range the cluster is using. - rpc CreateCluster(CreateClusterRequest) returns (Operation) { - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*}/clusters" - body: "*" - additional_bindings { - post: "/v1/projects/{project_id}/zones/{zone}/clusters" - body: "*" - } - }; - option (google.api.method_signature) = "project_id,zone,cluster"; - option (google.api.method_signature) = "parent,cluster"; - } - - // Updates the settings of a specific cluster. - rpc UpdateCluster(UpdateClusterRequest) returns (Operation) { - option (google.api.http) = { - put: "/v1/{name=projects/*/locations/*/clusters/*}" - body: "*" - additional_bindings { - put: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" - body: "*" - } - }; - option (google.api.method_signature) = "project_id,zone,cluster_id,update"; - option (google.api.method_signature) = "name,update"; - } - - // Updates the version and/or image type for the specified node pool. - rpc UpdateNodePool(UpdateNodePoolRequest) returns (Operation) { - option (google.api.http) = { - put: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}" - body: "*" - additional_bindings { - post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/update" - body: "*" - } - }; - } - - // Sets the autoscaling settings for the specified node pool. - rpc SetNodePoolAutoscaling(SetNodePoolAutoscalingRequest) returns (Operation) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setAutoscaling" - body: "*" - additional_bindings { - post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/autoscaling" - body: "*" - } - }; - } - - // Sets the logging service for a specific cluster. - rpc SetLoggingService(SetLoggingServiceRequest) returns (Operation) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/clusters/*}:setLogging" - body: "*" - additional_bindings { - post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/logging" - body: "*" - } - }; - option (google.api.method_signature) = "project_id,zone,cluster_id,logging_service"; - option (google.api.method_signature) = "name,logging_service"; - } - - // Sets the monitoring service for a specific cluster. - rpc SetMonitoringService(SetMonitoringServiceRequest) returns (Operation) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/clusters/*}:setMonitoring" - body: "*" - additional_bindings { - post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/monitoring" - body: "*" - } - }; - option (google.api.method_signature) = "project_id,zone,cluster_id,monitoring_service"; - option (google.api.method_signature) = "name,monitoring_service"; - } - - // Sets the addons for a specific cluster. - rpc SetAddonsConfig(SetAddonsConfigRequest) returns (Operation) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/clusters/*}:setAddons" - body: "*" - additional_bindings { - post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/addons" - body: "*" - } - }; - option (google.api.method_signature) = "project_id,zone,cluster_id,addons_config"; - option (google.api.method_signature) = "name,addons_config"; - } - - // Sets the locations for a specific cluster. - // Deprecated. Use - // [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update) - // instead. - rpc SetLocations(SetLocationsRequest) returns (Operation) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/clusters/*}:setLocations" - body: "*" - additional_bindings { - post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/locations" - body: "*" - } - }; - option (google.api.method_signature) = "project_id,zone,cluster_id,locations"; - option (google.api.method_signature) = "name,locations"; - } - - // Updates the master for a specific cluster. - rpc UpdateMaster(UpdateMasterRequest) returns (Operation) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/clusters/*}:updateMaster" - body: "*" - additional_bindings { - post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master" - body: "*" - } - }; - option (google.api.method_signature) = "project_id,zone,cluster_id,master_version"; - option (google.api.method_signature) = "name,master_version"; - } - - // Sets master auth materials. Currently supports changing the admin password - // or a specific cluster, either via password generation or explicitly setting - // the password. - rpc SetMasterAuth(SetMasterAuthRequest) returns (Operation) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/clusters/*}:setMasterAuth" - body: "*" - additional_bindings { - post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMasterAuth" - body: "*" - } - }; - } - - // Deletes the cluster, including the Kubernetes endpoint and all worker - // nodes. - // - // Firewalls and routes that were configured during cluster creation - // are also deleted. - // - // Other Google Compute Engine resources that might be in use by the cluster, - // such as load balancer resources, are not deleted if they weren't present - // when the cluster was initially created. - rpc DeleteCluster(DeleteClusterRequest) returns (Operation) { - option (google.api.http) = { - delete: "/v1/{name=projects/*/locations/*/clusters/*}" - additional_bindings { - delete: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" - } - }; - option (google.api.method_signature) = "project_id,zone,cluster_id"; - option (google.api.method_signature) = "name"; - } - - // Lists all operations in a project in a specific zone or all zones. - rpc ListOperations(ListOperationsRequest) returns (ListOperationsResponse) { - option (google.api.http) = { - get: "/v1/{parent=projects/*/locations/*}/operations" - additional_bindings { - get: "/v1/projects/{project_id}/zones/{zone}/operations" - } - }; - option (google.api.method_signature) = "project_id,zone"; - } - - // Gets the specified operation. - rpc GetOperation(GetOperationRequest) returns (Operation) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/operations/*}" - additional_bindings { - get: "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}" - } - }; - option (google.api.method_signature) = "project_id,zone,operation_id"; - option (google.api.method_signature) = "name"; - } - - // Cancels the specified operation. - rpc CancelOperation(CancelOperationRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/operations/*}:cancel" - body: "*" - additional_bindings { - post: "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}:cancel" - body: "*" - } - }; - option (google.api.method_signature) = "project_id,zone,operation_id"; - option (google.api.method_signature) = "name"; - } - - // Returns configuration info about the Google Kubernetes Engine service. - rpc GetServerConfig(GetServerConfigRequest) returns (ServerConfig) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*}/serverConfig" - additional_bindings { - get: "/v1/projects/{project_id}/zones/{zone}/serverconfig" - } - }; - option (google.api.method_signature) = "project_id,zone"; - option (google.api.method_signature) = "name"; - } - - // Gets the public component of the cluster signing keys in - // JSON Web Key format. - // This API is not yet intended for general use, and is not available for all - // clusters. - rpc GetJSONWebKeys(GetJSONWebKeysRequest) returns (GetJSONWebKeysResponse) { - option (google.api.http) = { - get: "/v1/{parent=projects/*/locations/*/clusters/*}/jwks" - }; - } - - // Lists the node pools for a cluster. - rpc ListNodePools(ListNodePoolsRequest) returns (ListNodePoolsResponse) { - option (google.api.http) = { - get: "/v1/{parent=projects/*/locations/*/clusters/*}/nodePools" - additional_bindings { - get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" - } - }; - option (google.api.method_signature) = "project_id,zone,cluster_id"; - option (google.api.method_signature) = "parent"; - } - - // Retrieves the requested node pool. - rpc GetNodePool(GetNodePoolRequest) returns (NodePool) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}" - additional_bindings { - get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" - } - }; - option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id"; - option (google.api.method_signature) = "name"; - } - - // Creates a node pool for a cluster. - rpc CreateNodePool(CreateNodePoolRequest) returns (Operation) { - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*/clusters/*}/nodePools" - body: "*" - additional_bindings { - post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" - body: "*" - } - }; - option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool"; - option (google.api.method_signature) = "parent,node_pool"; - } - - // Deletes a node pool from a cluster. - rpc DeleteNodePool(DeleteNodePoolRequest) returns (Operation) { - option (google.api.http) = { - delete: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}" - additional_bindings { - delete: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" - } - }; - option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id"; - option (google.api.method_signature) = "name"; - } - - // Rolls back a previously Aborted or Failed NodePool upgrade. - // This makes no changes if the last upgrade successfully completed. - rpc RollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest) returns (Operation) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:rollback" - body: "*" - additional_bindings { - post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}:rollback" - body: "*" - } - }; - option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id"; - option (google.api.method_signature) = "name"; - } - - // Sets the NodeManagement options for a node pool. - rpc SetNodePoolManagement(SetNodePoolManagementRequest) returns (Operation) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setManagement" - body: "*" - additional_bindings { - post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setManagement" - body: "*" - } - }; - } - - // Sets labels on a cluster. - rpc SetLabels(SetLabelsRequest) returns (Operation) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/clusters/*}:setResourceLabels" - body: "*" - additional_bindings { - post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels" - body: "*" - } - }; - } - - // Enables or disables the ABAC authorization mechanism on a cluster. - rpc SetLegacyAbac(SetLegacyAbacRequest) returns (Operation) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac" - body: "*" - additional_bindings { - post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac" - body: "*" - } - }; - option (google.api.method_signature) = "project_id,zone,cluster_id,enabled"; - option (google.api.method_signature) = "name,enabled"; - } - - // Starts master IP rotation. - rpc StartIPRotation(StartIPRotationRequest) returns (Operation) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/clusters/*}:startIpRotation" - body: "*" - additional_bindings { - post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation" - body: "*" - } - }; - option (google.api.method_signature) = "project_id,zone,cluster_id"; - option (google.api.method_signature) = "name"; - } - - // Completes master IP rotation. - rpc CompleteIPRotation(CompleteIPRotationRequest) returns (Operation) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/clusters/*}:completeIpRotation" - body: "*" - additional_bindings { - post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:completeIpRotation" - body: "*" - } - }; - option (google.api.method_signature) = "project_id,zone,cluster_id"; - option (google.api.method_signature) = "name"; - } - - // Sets the size for a specific node pool. - rpc SetNodePoolSize(SetNodePoolSizeRequest) returns (Operation) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setSize" - body: "*" - additional_bindings { - post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setSize" - body: "*" - } - }; - } - - // Enables or disables Network Policy for a cluster. - rpc SetNetworkPolicy(SetNetworkPolicyRequest) returns (Operation) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/clusters/*}:setNetworkPolicy" - body: "*" - additional_bindings { - post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setNetworkPolicy" - body: "*" - } - }; - option (google.api.method_signature) = "project_id,zone,cluster_id,network_policy"; - option (google.api.method_signature) = "name,network_policy"; - } - - // Sets the maintenance policy for a cluster. - rpc SetMaintenancePolicy(SetMaintenancePolicyRequest) returns (Operation) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/clusters/*}:setMaintenancePolicy" - body: "*" - additional_bindings { - post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMaintenancePolicy" - body: "*" - } - }; - option (google.api.method_signature) = "project_id,zone,cluster_id,maintenance_policy"; - option (google.api.method_signature) = "name,maintenance_policy"; - } - - // Lists subnetworks that are usable for creating clusters in a project. - rpc ListUsableSubnetworks(ListUsableSubnetworksRequest) returns (ListUsableSubnetworksResponse) { - option (google.api.http) = { - get: "/v1/{parent=projects/*}/aggregated/usableSubnetworks" - }; - } -} - -// Parameters that describe the nodes in a cluster. -message NodeConfig { - // The name of a Google Compute Engine [machine - // type](https://cloud.google.com/compute/docs/machine-types) - // - // If unspecified, the default machine type is `e2-medium`. - string machine_type = 1; - - // Size of the disk attached to each node, specified in GB. - // The smallest allowed disk size is 10GB. - // - // If unspecified, the default disk size is 100GB. - int32 disk_size_gb = 2; - - // The set of Google API scopes to be made available on all of the - // node VMs under the "default" service account. - // - // The following scopes are recommended, but not required, and by default are - // not included: - // - // * `https://www.googleapis.com/auth/compute` is required for mounting - // persistent storage on your nodes. - // * `https://www.googleapis.com/auth/devstorage.read_only` is required for - // communicating with **gcr.io** - // (the [Google Container - // Registry](https://cloud.google.com/container-registry/)). - // - // If unspecified, no scopes are added, unless Cloud Logging or Cloud - // Monitoring are enabled, in which case their required scopes will be added. - repeated string oauth_scopes = 3; - - // The Google Cloud Platform Service Account to be used by the node VMs. - // Specify the email address of the Service Account; otherwise, if no Service - // Account is specified, the "default" service account is used. - string service_account = 9; - - // The metadata key/value pairs assigned to instances in the cluster. - // - // Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes - // in length. These are reflected as part of a URL in the metadata server. - // Additionally, to avoid ambiguity, keys must not conflict with any other - // metadata keys for the project or be one of the reserved keys: - // - "cluster-location" - // - "cluster-name" - // - "cluster-uid" - // - "configure-sh" - // - "containerd-configure-sh" - // - "enable-os-login" - // - "gci-ensure-gke-docker" - // - "gci-metrics-enabled" - // - "gci-update-strategy" - // - "instance-template" - // - "kube-env" - // - "startup-script" - // - "user-data" - // - "disable-address-manager" - // - "windows-startup-script-ps1" - // - "common-psm1" - // - "k8s-node-setup-psm1" - // - "install-ssh-psm1" - // - "user-profile-psm1" - // - // The following keys are reserved for Windows nodes: - // - "serial-port-logging-enable" - // - // Values are free-form strings, and only have meaning as interpreted by - // the image running in the instance. The only restriction placed on them is - // that each value's size must be less than or equal to 32 KB. - // - // The total size of all keys and values must be less than 512 KB. - map metadata = 4; - - // The image type to use for this node. Note that for a given image type, - // the latest version of it will be used. - string image_type = 5; - - // The map of Kubernetes labels (key/value pairs) to be applied to each node. - // These will added in addition to any default label(s) that - // Kubernetes may apply to the node. - // In case of conflict in label keys, the applied set may differ depending on - // the Kubernetes version -- it's best to assume the behavior is undefined - // and conflicts should be avoided. - // For more information, including usage and the valid values, see: - // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - map labels = 6; - - // The number of local SSD disks to be attached to the node. - // - // The limit for this value is dependent upon the maximum number of - // disks available on a machine per zone. See: - // https://cloud.google.com/compute/docs/disks/local-ssd - // for more information. - int32 local_ssd_count = 7; - - // The list of instance tags applied to all nodes. Tags are used to identify - // valid sources or targets for network firewalls and are specified by - // the client during cluster or node pool creation. Each tag within the list - // must comply with RFC1035. - repeated string tags = 8; - - // Whether the nodes are created as preemptible VM instances. See: - // https://cloud.google.com/compute/docs/instances/preemptible for more - // information about preemptible VM instances. - bool preemptible = 10; - - // A list of hardware accelerators to be attached to each node. - // See https://cloud.google.com/compute/docs/gpus for more information about - // support for GPUs. - repeated AcceleratorConfig accelerators = 11; - - // Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - // 'pd-balanced') - // - // If unspecified, the default disk type is 'pd-standard' - string disk_type = 12; - - // Minimum CPU platform to be used by this instance. The instance may be - // scheduled on the specified or newer CPU platform. Applicable values are the - // friendly names of CPU platforms, such as - // `minCpuPlatform: "Intel Haswell"` or - // `minCpuPlatform: "Intel Sandy Bridge"`. For more - // information, read [how to specify min CPU - // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) - string min_cpu_platform = 13; - - // The workload metadata configuration for this node. - WorkloadMetadataConfig workload_metadata_config = 14; - - // List of kubernetes taints to be applied to each node. - // - // For more information, including usage and the valid values, see: - // https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - repeated NodeTaint taints = 15; - - // Sandbox configuration for this node. - SandboxConfig sandbox_config = 17; - - // Setting this field will assign instances of this - // pool to run on the specified node group. This is useful for running - // workloads on [sole tenant - // nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). - string node_group = 18; - - // The optional reservation affinity. Setting this field will apply - // the specified [Zonal Compute - // Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) - // to this node pool. - ReservationAffinity reservation_affinity = 19; - - // Shielded Instance options. - ShieldedInstanceConfig shielded_instance_config = 20; - - // - // The Customer Managed Encryption Key used to encrypt the boot disk attached - // to each node in the node pool. This should be of the form - // projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - // For more information about protecting resources with Cloud KMS Keys please - // see: - // https://cloud.google.com/compute/docs/disks/customer-managed-encryption - string boot_disk_kms_key = 23; -} - -// A set of Shielded Instance options. -message ShieldedInstanceConfig { - // Defines whether the instance has Secure Boot enabled. - // - // Secure Boot helps ensure that the system only runs authentic software by - // verifying the digital signature of all boot components, and halting the - // boot process if signature verification fails. - bool enable_secure_boot = 1; - - // Defines whether the instance has integrity monitoring enabled. - // - // Enables monitoring and attestation of the boot integrity of the instance. - // The attestation is performed against the integrity policy baseline. This - // baseline is initially derived from the implicitly trusted boot image when - // the instance is created. - bool enable_integrity_monitoring = 2; -} - -// SandboxConfig contains configurations of the sandbox to use for the node. -message SandboxConfig { - // Possible types of sandboxes. - enum Type { - // Default value. This should not be used. - UNSPECIFIED = 0; - - // Run sandbox using gvisor. - GVISOR = 1; - } - - // Type of the sandbox to use for the node. - Type type = 2; -} - -// [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) -// is the configuration of desired reservation which instances could take -// capacity from. -message ReservationAffinity { - // Indicates whether to consume capacity from a reservation or not. - enum Type { - // Default value. This should not be used. - UNSPECIFIED = 0; - - // Do not consume from any reserved 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; - } - - // Corresponds to the type of reservation consumption. - Type consume_reservation_type = 1; - - // Corresponds to the label key of a reservation resource. To target a - // SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as - // the key and specify the name of your reservation as its value. - string key = 2; - - // Corresponds to the label value(s) of reservation resource(s). - repeated string values = 3; -} - -// Kubernetes taint is comprised of three fields: key, value, and effect. Effect -// can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. -// -// See -// [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) -// for more information, including usage and the valid values. -message NodeTaint { - // Possible values for Effect in taint. - enum Effect { - // Not set - EFFECT_UNSPECIFIED = 0; - - // NoSchedule - NO_SCHEDULE = 1; - - // PreferNoSchedule - PREFER_NO_SCHEDULE = 2; - - // NoExecute - NO_EXECUTE = 3; - } - - // Key for taint. - string key = 1; - - // Value for taint. - string value = 2; - - // Effect for taint. - Effect effect = 3; -} - -// The authentication information for accessing the master endpoint. -// Authentication can be done using HTTP basic auth or using client -// certificates. -message MasterAuth { - // The username to use for HTTP basic authentication to the master endpoint. - // For clusters v1.6.0 and later, basic authentication can be disabled by - // leaving username unspecified (or setting it to the empty string). - // - // Warning: basic authentication is deprecated, and will be removed in GKE - // control plane versions 1.19 and newer. For a list of recommended - // authentication methods, see: - // https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - string username = 1 [deprecated = true]; - - // The password to use for HTTP basic authentication to the master endpoint. - // Because the master endpoint is open to the Internet, you should create a - // strong password. If a password is provided for cluster creation, username - // must be non-empty. - // - // Warning: basic authentication is deprecated, and will be removed in GKE - // control plane versions 1.19 and newer. For a list of recommended - // authentication methods, see: - // https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - string password = 2 [deprecated = true]; - - // Configuration for client certificate authentication on the cluster. For - // clusters before v1.12, if no configuration is specified, a client - // certificate is issued. - ClientCertificateConfig client_certificate_config = 3; - - // [Output only] Base64-encoded public certificate that is the root of - // trust for the cluster. - string cluster_ca_certificate = 100; - - // [Output only] Base64-encoded public certificate used by clients to - // authenticate to the cluster endpoint. - string client_certificate = 101; - - // [Output only] Base64-encoded private key used by clients to authenticate - // to the cluster endpoint. - string client_key = 102; -} - -// Configuration for client certificates on the cluster. -message ClientCertificateConfig { - // Issue a client certificate. - bool issue_client_certificate = 1; -} - -// Configuration for the addons that can be automatically spun up in the -// cluster, enabling additional functionality. -message AddonsConfig { - // Configuration for the HTTP (L7) load balancing controller addon, which - // makes it easy to set up HTTP load balancers for services in a cluster. - HttpLoadBalancing http_load_balancing = 1; - - // Configuration for the horizontal pod autoscaling feature, which - // increases or decreases the number of replica pods a replication controller - // has based on the resource usage of the existing pods. - HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - - // Configuration for the Kubernetes Dashboard. - // This addon is deprecated, and will be disabled in 1.15. It is recommended - // to use the Cloud Console to manage and monitor your Kubernetes clusters, - // workloads and applications. For more information, see: - // https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards - KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - - // Configuration for NetworkPolicy. This only tracks whether the addon - // is enabled or not on the Master, it does not track whether network policy - // is enabled for the nodes. - NetworkPolicyConfig network_policy_config = 4; - - // Configuration for the Cloud Run addon, which allows the user to use a - // managed Knative service. - CloudRunConfig cloud_run_config = 7; - - // Configuration for NodeLocalDNS, a dns cache running on cluster nodes - DnsCacheConfig dns_cache_config = 8; - - // Configuration for the ConfigConnector add-on, a Kubernetes - // extension to manage hosted GCP services through the Kubernetes API - ConfigConnectorConfig config_connector_config = 10; -} - -// Configuration options for the HTTP (L7) load balancing controller addon, -// which makes it easy to set up HTTP load balancers for services in a cluster. -message HttpLoadBalancing { - // Whether the HTTP Load Balancing controller is enabled in the cluster. - // When enabled, it runs a small pod in the cluster that manages the load - // balancers. - bool disabled = 1; -} - -// Configuration options for the horizontal pod autoscaling feature, which -// increases or decreases the number of replica pods a replication controller -// has based on the resource usage of the existing pods. -message HorizontalPodAutoscaling { - // Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. - // When enabled, it ensures that metrics are collected into Stackdriver - // Monitoring. - bool disabled = 1; -} - -// Configuration for the Kubernetes Dashboard. -message KubernetesDashboard { - // Whether the Kubernetes Dashboard is enabled for this cluster. - bool disabled = 1; -} - -// Configuration for NetworkPolicy. This only tracks whether the addon -// is enabled or not on the Master, it does not track whether network policy -// is enabled for the nodes. -message NetworkPolicyConfig { - // Whether NetworkPolicy is enabled for this cluster. - bool disabled = 1; -} - -// Configuration for NodeLocal DNSCache -message DnsCacheConfig { - // Whether NodeLocal DNSCache is enabled for this cluster. - bool enabled = 1; -} - -// Configuration for controlling master global access settings. -message PrivateClusterMasterGlobalAccessConfig { - // Whenever master is accessible globally or not. - bool enabled = 1; -} - -// Configuration options for private clusters. -message PrivateClusterConfig { - // Whether nodes have internal IP addresses only. If enabled, all nodes are - // given only RFC 1918 private addresses and communicate with the master via - // private networking. - bool enable_private_nodes = 1; - - // Whether the master's internal IP address is used as the cluster endpoint. - bool enable_private_endpoint = 2; - - // The IP range in CIDR notation to use for the hosted master network. This - // range will be used for assigning internal IP addresses to the master or - // set of masters, as well as the ILB VIP. This range must not overlap with - // any other ranges in use within the cluster's network. - string master_ipv4_cidr_block = 3; - - // Output only. The internal IP address of this cluster's master endpoint. - string private_endpoint = 4; - - // Output only. The external IP address of this cluster's master endpoint. - string public_endpoint = 5; - - // Output only. The peering name in the customer VPC used by this cluster. - string peering_name = 7; - - // Controls master global access settings. - PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; -} - -// Configuration for returning group information from authenticators. -message AuthenticatorGroupsConfig { - // Whether this cluster should return group membership lookups - // during authentication using a group of security groups. - bool enabled = 1; - - // The name of the security group-of-groups to be used. Only relevant - // if enabled = true. - string security_group = 2; -} - -// Configuration options for the Cloud Run feature. -message CloudRunConfig { - // Load balancer type of ingress service of Cloud Run. - enum LoadBalancerType { - // Load balancer type for Cloud Run is unspecified. - LOAD_BALANCER_TYPE_UNSPECIFIED = 0; - - // Install external load balancer for Cloud Run. - LOAD_BALANCER_TYPE_EXTERNAL = 1; - - // Install internal load balancer for Cloud Run. - LOAD_BALANCER_TYPE_INTERNAL = 2; - } - - // Whether Cloud Run addon is enabled for this cluster. - bool disabled = 1; - - // Which load balancer type is installed for Cloud Run. - LoadBalancerType load_balancer_type = 3; -} - -// Configuration options for the Config Connector add-on. -message ConfigConnectorConfig { - // Whether Cloud Connector is enabled for this cluster. - bool enabled = 1; -} - -// Configuration options for the master authorized networks feature. Enabled -// master authorized networks will disallow all external traffic to access -// Kubernetes master through HTTPS except traffic from the given CIDR blocks, -// Google Compute Engine Public IPs and Google Prod IPs. -message MasterAuthorizedNetworksConfig { - // CidrBlock contains an optional name and one CIDR block. - message CidrBlock { - // display_name is an optional field for users to identify CIDR blocks. - string display_name = 1; - - // cidr_block must be specified in CIDR notation. - string cidr_block = 2; - } - - // Whether or not master authorized networks is enabled. - bool enabled = 1; - - // cidr_blocks define up to 50 external networks that could access - // Kubernetes master through HTTPS. - repeated CidrBlock cidr_blocks = 2; -} - -// Configuration for the legacy Attribute Based Access Control authorization -// mode. -message LegacyAbac { - // Whether the ABAC authorizer is enabled for this cluster. When enabled, - // identities in the system, including service accounts, nodes, and - // controllers, will have statically granted permissions beyond those - // provided by the RBAC configuration or IAM. - bool enabled = 1; -} - -// Configuration options for the NetworkPolicy feature. -// https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ -message NetworkPolicy { - // Allowed Network Policy providers. - enum Provider { - // Not set - PROVIDER_UNSPECIFIED = 0; - - // Tigera (Calico Felix). - CALICO = 1; - } - - // The selected network policy provider. - Provider provider = 1; - - // Whether network policy is enabled on the cluster. - bool enabled = 2; -} - -// Configuration for Binary Authorization. -message BinaryAuthorization { - // Enable Binary Authorization for this cluster. If enabled, all container - // images will be validated by Binary Authorization. - bool enabled = 1; -} - -// Configuration for controlling how IPs are allocated in the cluster. -message IPAllocationPolicy { - // Whether alias IPs will be used for pod IPs in the cluster. - // This is used in conjunction with use_routes. It cannot - // be true if use_routes is true. If both use_ip_aliases and use_routes are - // false, then the server picks the default IP allocation mode - bool use_ip_aliases = 1; - - // Whether a new subnetwork will be created automatically for the cluster. - // - // This field is only applicable when `use_ip_aliases` is true. - bool create_subnetwork = 2; - - // A custom subnetwork name to be used if `create_subnetwork` is true. If - // this field is empty, then an automatic name will be chosen for the new - // subnetwork. - string subnetwork_name = 3; - - // This field is deprecated, use cluster_ipv4_cidr_block. - string cluster_ipv4_cidr = 4 [deprecated = true]; - - // This field is deprecated, use node_ipv4_cidr_block. - string node_ipv4_cidr = 5 [deprecated = true]; - - // This field is deprecated, use services_ipv4_cidr_block. - string services_ipv4_cidr = 6 [deprecated = true]; - - // The name of the secondary range to be used for the cluster CIDR - // block. The secondary range will be used for pod IP - // addresses. This must be an existing secondary range associated - // with the cluster subnetwork. - // - // This field is only applicable with use_ip_aliases is true and - // create_subnetwork is false. - string cluster_secondary_range_name = 7; - - // The name of the secondary range to be used as for the services - // CIDR block. The secondary range will be used for service - // ClusterIPs. This must be an existing secondary range associated - // with the cluster subnetwork. - // - // This field is only applicable with use_ip_aliases is true and - // create_subnetwork is false. - string services_secondary_range_name = 8; - - // The IP address range for the cluster pod IPs. If this field is set, then - // `cluster.cluster_ipv4_cidr` must be left blank. - // - // This field is only applicable when `use_ip_aliases` is true. - // - // Set to blank to have a range chosen with the default size. - // - // Set to /netmask (e.g. `/14`) to have a range chosen with a specific - // netmask. - // - // Set to a - // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - // to use. - string cluster_ipv4_cidr_block = 9; - - // The IP address range of the instance IPs in this cluster. - // - // This is applicable only if `create_subnetwork` is true. - // - // Set to blank to have a range chosen with the default size. - // - // Set to /netmask (e.g. `/14`) to have a range chosen with a specific - // netmask. - // - // Set to a - // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - // to use. - string node_ipv4_cidr_block = 10; - - // The IP address range of the services IPs in this cluster. If blank, a range - // will be automatically chosen with the default size. - // - // This field is only applicable when `use_ip_aliases` is true. - // - // Set to blank to have a range chosen with the default size. - // - // Set to /netmask (e.g. `/14`) to have a range chosen with a specific - // netmask. - // - // Set to a - // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - // to use. - string services_ipv4_cidr_block = 11; - - // The IP address range of the Cloud TPUs in this cluster. If unspecified, a - // range will be automatically chosen with the default size. - // - // This field is only applicable when `use_ip_aliases` is true. - // - // If unspecified, the range will use the default size. - // - // Set to /netmask (e.g. `/14`) to have a range chosen with a specific - // netmask. - // - // Set to a - // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - // to use. - string tpu_ipv4_cidr_block = 13; - - // Whether routes will be used for pod IPs in the cluster. - // This is used in conjunction with use_ip_aliases. It cannot be true if - // use_ip_aliases is true. If both use_ip_aliases and use_routes are false, - // then the server picks the default IP allocation mode - bool use_routes = 15; -} - -// A Google Kubernetes Engine cluster. -message Cluster { - // The current status of the cluster. - enum Status { - // Not set. - STATUS_UNSPECIFIED = 0; - - // The PROVISIONING state indicates the cluster is being created. - PROVISIONING = 1; - - // The RUNNING state indicates the cluster has been created and is fully - // usable. - RUNNING = 2; - - // The RECONCILING state indicates that some work is actively being done on - // the cluster, such as upgrading the master or node software. Details can - // be found in the `statusMessage` field. - RECONCILING = 3; - - // The STOPPING state indicates the cluster is being deleted. - STOPPING = 4; - - // The ERROR state indicates the cluster is unusable. It will be - // automatically deleted. Details can be found in the `statusMessage` field. - ERROR = 5; - - // The DEGRADED state indicates the cluster requires user action to restore - // full functionality. Details can be found in the `statusMessage` field. - DEGRADED = 6; - } - - // The name of this cluster. The name must be unique within this project - // and location (e.g. zone or region), and can be up to 40 characters with - // the following restrictions: - // - // * Lowercase letters, numbers, and hyphens only. - // * Must start with a letter. - // * Must end with a number or a letter. - string name = 1; - - // An optional description of this cluster. - string description = 2; - - // The number of nodes to create in this cluster. You must ensure that your - // Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - // is sufficient for this number of instances. You must also have available - // firewall and routes quota. - // For requests, this field should only be used in lieu of a - // "node_pool" object, since this configuration (along with the - // "node_config") will be used to create a "NodePool" object with an - // auto-generated name. Do not use this and a node_pool at the same time. - // - // This field is deprecated, use node_pool.initial_node_count instead. - int32 initial_node_count = 3 [deprecated = true]; - - // Parameters used in creating the cluster's nodes. - // For requests, this field should only be used in lieu of a - // "node_pool" object, since this configuration (along with the - // "initial_node_count") will be used to create a "NodePool" object with an - // auto-generated name. Do not use this and a node_pool at the same time. - // For responses, this field will be populated with the node configuration of - // the first node pool. (For configuration of each node pool, see - // `node_pool.config`) - // - // If unspecified, the defaults are used. - // This field is deprecated, use node_pool.config instead. - NodeConfig node_config = 4 [deprecated = true]; - - // The authentication information for accessing the master endpoint. - // If unspecified, the defaults are used: - // For clusters before v1.12, if master_auth is unspecified, `username` will - // be set to "admin", a random password will be generated, and a client - // certificate will be issued. - MasterAuth master_auth = 5; - - // The logging service the cluster should use to write logs. - // Currently available options: - // - // * `logging.googleapis.com/kubernetes` - The Cloud Logging - // service with a Kubernetes-native resource model - // * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - // available as of GKE 1.15). - // * `none` - no logs will be exported from the cluster. - // - // If left as an empty string,`logging.googleapis.com/kubernetes` will be - // used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - string logging_service = 6; - - // The monitoring service the cluster should use to write metrics. - // Currently available options: - // - // * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - // service with a Kubernetes-native resource model - // * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - // longer available as of GKE 1.15). - // * `none` - No metrics will be exported from the cluster. - // - // If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - // used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - string monitoring_service = 7; - - // The name of the Google Compute Engine - // [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - // to which the cluster is connected. If left unspecified, the `default` - // network will be used. - string network = 8; - - // The IP address range of the container pods in this cluster, in - // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - // notation (e.g. `10.96.0.0/14`). Leave blank to have - // one automatically chosen or specify a `/14` block in `10.0.0.0/8`. - string cluster_ipv4_cidr = 9; - - // Configurations for the various addons available to run in the cluster. - AddonsConfig addons_config = 10; - - // The name of the Google Compute Engine - // [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which - // the cluster is connected. - string subnetwork = 11; - - // The node pools associated with this cluster. - // This field should not be set if "node_config" or "initial_node_count" are - // specified. - repeated NodePool node_pools = 12; - - // The list of Google Compute Engine - // [zones](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster's nodes should be located. - // - // This field provides a default value if - // [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - // are not specified during node pool creation. - // - // Warning: changing cluster locations will update the - // [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - // of all node pools and will result in nodes being added and/or removed. - repeated string locations = 13; - - // Kubernetes alpha features are enabled on this cluster. This includes alpha - // API groups (e.g. v1alpha1) and features that may not be production ready in - // the kubernetes version of the master and nodes. - // The cluster has no SLA for uptime and master/node upgrades are disabled. - // Alpha enabled clusters are automatically deleted thirty days after - // creation. - bool enable_kubernetes_alpha = 14; - - // The resource labels for the cluster to use to annotate any related - // Google Compute Engine resources. - map resource_labels = 15; - - // The fingerprint of the set of labels for this cluster. - string label_fingerprint = 16; - - // Configuration for the legacy ABAC authorization mode. - LegacyAbac legacy_abac = 18; - - // Configuration options for the NetworkPolicy feature. - NetworkPolicy network_policy = 19; - - // Configuration for cluster IP allocation. - IPAllocationPolicy ip_allocation_policy = 20; - - // The configuration options for master authorized networks feature. - MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; - - // Configure the maintenance policy for this cluster. - MaintenancePolicy maintenance_policy = 23; - - // Configuration for Binary Authorization. - BinaryAuthorization binary_authorization = 24; - - // Cluster-level autoscaling configuration. - ClusterAutoscaling autoscaling = 26; - - // Configuration for cluster networking. - NetworkConfig network_config = 27; - - // The default constraint on the maximum number of pods that can be run - // simultaneously on a node in the node pool of this cluster. Only honored - // if cluster created with IP Alias support. - MaxPodsConstraint default_max_pods_constraint = 30; - - // Configuration for exporting resource usages. Resource usage export is - // disabled when this config is unspecified. - ResourceUsageExportConfig resource_usage_export_config = 33; - - // Configuration controlling RBAC group membership information. - AuthenticatorGroupsConfig authenticator_groups_config = 34; - - // Configuration for private cluster. - PrivateClusterConfig private_cluster_config = 37; - - // Configuration of etcd encryption. - DatabaseEncryption database_encryption = 38; - - // Cluster-level Vertical Pod Autoscaling configuration. - VerticalPodAutoscaling vertical_pod_autoscaling = 39; - - // Shielded Nodes configuration. - ShieldedNodes shielded_nodes = 40; - - // Release channel configuration. - ReleaseChannel release_channel = 41; - - // Configuration for the use of Kubernetes Service Accounts in GCP IAM - // policies. - WorkloadIdentityConfig workload_identity_config = 43; - - // [Output only] Server-defined URL for the resource. - string self_link = 100; - - // [Output only] The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field is deprecated, use location instead. - string zone = 101 [deprecated = true]; - - // [Output only] The IP address of this cluster's master endpoint. - // The endpoint can be accessed from the internet at - // `https://username:password@endpoint/`. - // - // See the `masterAuth` property of this resource for username and - // password information. - string endpoint = 102; - - // The initial Kubernetes version for this cluster. Valid versions are those - // found in validMasterVersions returned by getServerConfig. The version can - // be upgraded over time; such upgrades are reflected in - // currentMasterVersion and currentNodeVersion. - // - // Users may specify either explicit versions offered by - // Kubernetes Engine or version aliases, which have the following behavior: - // - // - "latest": picks the highest valid Kubernetes version - // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - // - "1.X.Y-gke.N": picks an explicit Kubernetes version - // - "","-": picks the default Kubernetes version - string initial_cluster_version = 103; - - // [Output only] The current software version of the master endpoint. - string current_master_version = 104; - - // [Output only] Deprecated, use - // [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) - // instead. The current version of the node software components. If they are - // currently at multiple versions because they're in the process of being - // upgraded, this reflects the minimum version of all nodes. - string current_node_version = 105 [deprecated = true]; - - // [Output only] The time the cluster was created, in - // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - string create_time = 106; - - // [Output only] The current status of this cluster. - Status status = 107; - - // [Output only] Deprecated. Use conditions instead. - // Additional information about the current status of this - // cluster, if available. - string status_message = 108 [deprecated = true]; - - // [Output only] The size of the address space on each node for hosting - // containers. This is provisioned from within the `container_ipv4_cidr` - // range. This field will only be set when cluster is in route-based network - // mode. - int32 node_ipv4_cidr_size = 109; - - // [Output only] The IP address range of the Kubernetes services in - // this cluster, in - // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - // notation (e.g. `1.2.3.4/29`). Service addresses are - // typically put in the last `/16` from the container CIDR. - string services_ipv4_cidr = 110; - - // Deprecated. Use node_pools.instance_group_urls. - repeated string instance_group_urls = 111 [deprecated = true]; - - // [Output only] The number of nodes currently in the cluster. Deprecated. - // Call Kubernetes API directly to retrieve node information. - int32 current_node_count = 112 [deprecated = true]; - - // [Output only] The time the cluster will be automatically - // deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - string expire_time = 113; - - // [Output only] The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - // or - // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - // in which the cluster resides. - string location = 114; - - // Enable the ability to use Cloud TPUs in this cluster. - bool enable_tpu = 115; - - // [Output only] The IP address range of the Cloud TPUs in this cluster, in - // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - // notation (e.g. `1.2.3.4/29`). - string tpu_ipv4_cidr_block = 116; - - // Which conditions caused the current cluster state. - repeated StatusCondition conditions = 118; -} - -// ClusterUpdate describes an update to the cluster. Exactly one update can -// be applied to a cluster with each request, so at most one field can be -// provided. -message ClusterUpdate { - // The Kubernetes version to change the nodes to (typically an - // upgrade). - // - // Users may specify either explicit versions offered by - // Kubernetes Engine or version aliases, which have the following behavior: - // - // - "latest": picks the highest valid Kubernetes version - // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - // - "1.X.Y-gke.N": picks an explicit Kubernetes version - // - "-": picks the Kubernetes master version - string desired_node_version = 4; - - // The monitoring service the cluster should use to write metrics. - // Currently available options: - // - // * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - // service with a Kubernetes-native resource model - // * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - // longer available as of GKE 1.15). - // * `none` - No metrics will be exported from the cluster. - // - // If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - // used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - string desired_monitoring_service = 5; - - // Configurations for the various addons available to run in the cluster. - AddonsConfig desired_addons_config = 6; - - // The node pool to be upgraded. This field is mandatory if - // "desired_node_version", "desired_image_family" or - // "desired_node_pool_autoscaling" is specified and there is more than one - // node pool on the cluster. - string desired_node_pool_id = 7; - - // The desired image type for the node pool. - // NOTE: Set the "desired_node_pool" field as well. - string desired_image_type = 8; - - // Configuration of etcd encryption. - DatabaseEncryption desired_database_encryption = 46; - - // Configuration for Workload Identity. - WorkloadIdentityConfig desired_workload_identity_config = 47; - - // Configuration for Shielded Nodes. - ShieldedNodes desired_shielded_nodes = 48; - - // Autoscaler configuration for the node pool specified in - // desired_node_pool_id. If there is only one pool in the - // cluster and desired_node_pool_id is not provided then - // the change applies to that single node pool. - NodePoolAutoscaling desired_node_pool_autoscaling = 9; - - // The desired list of Google Compute Engine - // [zones](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster's nodes should be located. - // - // This list must always include the cluster's primary zone. - // - // Warning: changing cluster locations will update the locations of all node - // pools and will result in nodes being added and/or removed. - repeated string desired_locations = 10; - - // The desired configuration options for master authorized networks feature. - MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - - // Cluster-level autoscaling configuration. - ClusterAutoscaling desired_cluster_autoscaling = 15; - - // The desired configuration options for the Binary Authorization feature. - BinaryAuthorization desired_binary_authorization = 16; - - // The logging service the cluster should use to write logs. - // Currently available options: - // - // * `logging.googleapis.com/kubernetes` - The Cloud Logging - // service with a Kubernetes-native resource model - // * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - // available as of GKE 1.15). - // * `none` - no logs will be exported from the cluster. - // - // If left as an empty string,`logging.googleapis.com/kubernetes` will be - // used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - string desired_logging_service = 19; - - // The desired configuration for exporting resource usage. - ResourceUsageExportConfig desired_resource_usage_export_config = 21; - - // Cluster-level Vertical Pod Autoscaling configuration. - VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - - // The desired private cluster configuration. - PrivateClusterConfig desired_private_cluster_config = 25; - - // The desired config of Intra-node visibility. - IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - - // The desired status of whether to disable default sNAT for this cluster. - DefaultSnatStatus desired_default_snat_status = 28; - - // The desired release channel configuration. - ReleaseChannel desired_release_channel = 31; - - // The Kubernetes version to change the master to. - // - // Users may specify either explicit versions offered by - // Kubernetes Engine or version aliases, which have the following behavior: - // - // - "latest": picks the highest valid Kubernetes version - // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - // - "1.X.Y-gke.N": picks an explicit Kubernetes version - // - "-": picks the default Kubernetes version - string desired_master_version = 100; -} - -// This operation resource represents operations that may have happened or are -// happening on the cluster. All fields are output only. -message Operation { - // Current status of the operation. - enum Status { - // Not set. - STATUS_UNSPECIFIED = 0; - - // The operation has been created. - PENDING = 1; - - // The operation is currently running. - RUNNING = 2; - - // The operation is done, either cancelled or completed. - DONE = 3; - - // The operation is aborting. - ABORTING = 4; - } - - // Operation type. - enum Type { - // Not set. - TYPE_UNSPECIFIED = 0; - - // Cluster create. - CREATE_CLUSTER = 1; - - // Cluster delete. - DELETE_CLUSTER = 2; - - // A master upgrade. - UPGRADE_MASTER = 3; - - // A node upgrade. - UPGRADE_NODES = 4; - - // Cluster repair. - REPAIR_CLUSTER = 5; - - // Cluster update. - UPDATE_CLUSTER = 6; - - // Node pool create. - CREATE_NODE_POOL = 7; - - // Node pool delete. - DELETE_NODE_POOL = 8; - - // Set node pool management. - SET_NODE_POOL_MANAGEMENT = 9; - - // Automatic node pool repair. - AUTO_REPAIR_NODES = 10; - - // Automatic node upgrade. - AUTO_UPGRADE_NODES = 11; - - // Set labels. - SET_LABELS = 12; - - // Set/generate master auth materials - SET_MASTER_AUTH = 13; - - // Set node pool size. - SET_NODE_POOL_SIZE = 14; - - // Updates network policy for a cluster. - SET_NETWORK_POLICY = 15; - - // Set the maintenance policy. - SET_MAINTENANCE_POLICY = 16; - } - - // The server-assigned ID for the operation. - string name = 1; - - // The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // operation is taking place. This field is deprecated, use location instead. - string zone = 2 [deprecated = true]; - - // The operation type. - Type operation_type = 3; - - // The current status of the operation. - Status status = 4; - - // Detailed operation progress, if available. - string detail = 8; - - // Output only. If an error has occurred, a textual description of the error. - string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Server-defined URL for the resource. - string self_link = 6; - - // Server-defined URL for the target of the operation. - string target_link = 7; - - // [Output only] The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - // or - // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - // in which the cluster resides. - string location = 9; - - // [Output only] The time the operation started, in - // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - string start_time = 10; - - // [Output only] The time the operation completed, in - // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - string end_time = 11; - - // Output only. [Output only] Progress information for an operation. - OperationProgress progress = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Which conditions caused the current cluster state. - repeated StatusCondition cluster_conditions = 13; - - // Which conditions caused the current node pool state. - repeated StatusCondition nodepool_conditions = 14; -} - -// Information about operation (or operation stage) progress. -message OperationProgress { - // Progress metric is (string, int|float|string) pair. - message Metric { - // Required. Metric name, e.g., "nodes total", "percent done". - string name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Strictly one of the values is required. - oneof value { - // For metrics with integer value. - int64 int_value = 2; - - // For metrics with floating point value. - double double_value = 3; - - // For metrics with custom values (ratios, visual progress, etc.). - string string_value = 4; - } - } - - // A non-parameterized string describing an operation stage. - // Unset for single-stage operations. - string name = 1; - - // Status of an operation stage. - // Unset for single-stage operations. - Operation.Status status = 2; - - // Progress metric bundle, for example: - // metrics: [{name: "nodes done", int_value: 15}, - // {name: "nodes total", int_value: 32}] - // or - // metrics: [{name: "progress", double_value: 0.56}, - // {name: "progress scale", double_value: 1.0}] - repeated Metric metrics = 3; - - // Substages of an operation or a stage. - repeated OperationProgress stages = 4; -} - -// CreateClusterRequest creates a cluster. -message CreateClusterRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - // This field has been deprecated and replaced by the parent field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the parent - // field. - string zone = 2 [deprecated = true]; - - // Required. A [cluster - // resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED]; - - // The parent (project and location) where the cluster will be created. - // Specified in the format `projects/*/locations/*`. - string parent = 5; -} - -// GetClusterRequest gets the settings of a cluster. -message GetClusterRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster to retrieve. - // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; - - // The name (project, location, cluster) of the cluster to retrieve. - // Specified in the format `projects/*/locations/*/clusters/*`. - string name = 5; -} - -// UpdateClusterRequest updates the settings of a cluster. -message UpdateClusterRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster to upgrade. - // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; - - // Required. A description of the update. - ClusterUpdate update = 4 [(google.api.field_behavior) = REQUIRED]; - - // The name (project, location, cluster) of the cluster to update. - // Specified in the format `projects/*/locations/*/clusters/*`. - string name = 5; -} - -// UpdateNodePoolRequests update a node pool's image and/or version. -message UpdateNodePoolRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster to upgrade. - // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; - - // Deprecated. The name of the node pool to upgrade. - // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 [deprecated = true]; - - // Required. The Kubernetes version to change the nodes to (typically an - // upgrade). - // - // Users may specify either explicit versions offered by Kubernetes Engine or - // version aliases, which have the following behavior: - // - // - "latest": picks the highest valid Kubernetes version - // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - // - "1.X.Y-gke.N": picks an explicit Kubernetes version - // - "-": picks the Kubernetes master version - string node_version = 5 [(google.api.field_behavior) = REQUIRED]; - - // Required. The desired image type for the node pool. - string image_type = 6 [(google.api.field_behavior) = REQUIRED]; - - // The name (project, location, cluster, node pool) of the node pool to - // update. Specified in the format - // `projects/*/locations/*/clusters/*/nodePools/*`. - string name = 8; - - // The desired list of Google Compute Engine - // [zones](https://cloud.google.com/compute/docs/zones#available) in which the - // node pool's nodes should be located. Changing the locations for a node pool - // will result in nodes being either created or removed from the node pool, - // depending on whether locations are being added or removed. - repeated string locations = 13; - - // The desired workload metadata config for the node pool. - WorkloadMetadataConfig workload_metadata_config = 14; - - // Upgrade settings control disruption and speed of the upgrade. - NodePool.UpgradeSettings upgrade_settings = 15; -} - -// SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. -message SetNodePoolAutoscalingRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster to upgrade. - // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; - - // Deprecated. The name of the node pool to upgrade. - // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 [deprecated = true]; - - // Required. Autoscaling configuration for the node pool. - NodePoolAutoscaling autoscaling = 5 [(google.api.field_behavior) = REQUIRED]; - - // The name (project, location, cluster, node pool) of the node pool to set - // autoscaler settings. Specified in the format - // `projects/*/locations/*/clusters/*/nodePools/*`. - string name = 6; -} - -// SetLoggingServiceRequest sets the logging service of a cluster. -message SetLoggingServiceRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster to upgrade. - // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; - - // Required. The logging service the cluster should use to write logs. - // Currently available options: - // - // * `logging.googleapis.com/kubernetes` - The Cloud Logging - // service with a Kubernetes-native resource model - // * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - // available as of GKE 1.15). - // * `none` - no logs will be exported from the cluster. - // - // If left as an empty string,`logging.googleapis.com/kubernetes` will be - // used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - string logging_service = 4 [(google.api.field_behavior) = REQUIRED]; - - // The name (project, location, cluster) of the cluster to set logging. - // Specified in the format `projects/*/locations/*/clusters/*`. - string name = 5; -} - -// SetMonitoringServiceRequest sets the monitoring service of a cluster. -message SetMonitoringServiceRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster to upgrade. - // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; - - // Required. The monitoring service the cluster should use to write metrics. - // Currently available options: - // - // * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - // service with a Kubernetes-native resource model - // * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - // longer available as of GKE 1.15). - // * `none` - No metrics will be exported from the cluster. - // - // If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - // used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - string monitoring_service = 4 [(google.api.field_behavior) = REQUIRED]; - - // The name (project, location, cluster) of the cluster to set monitoring. - // Specified in the format `projects/*/locations/*/clusters/*`. - string name = 6; -} - -// SetAddonsConfigRequest sets the addons associated with the cluster. -message SetAddonsConfigRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster to upgrade. - // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; - - // Required. The desired configurations for the various addons available to run in the - // cluster. - AddonsConfig addons_config = 4 [(google.api.field_behavior) = REQUIRED]; - - // The name (project, location, cluster) of the cluster to set addons. - // Specified in the format `projects/*/locations/*/clusters/*`. - string name = 6; -} - -// SetLocationsRequest sets the locations of the cluster. -message SetLocationsRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster to upgrade. - // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; - - // Required. The desired list of Google Compute Engine - // [zones](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster's nodes should be located. Changing the locations a cluster is in - // will result in nodes being either created or removed from the cluster, - // depending on whether locations are being added or removed. - // - // This list must always include the cluster's primary zone. - repeated string locations = 4 [(google.api.field_behavior) = REQUIRED]; - - // The name (project, location, cluster) of the cluster to set locations. - // Specified in the format `projects/*/locations/*/clusters/*`. - string name = 6; -} - -// UpdateMasterRequest updates the master of the cluster. -message UpdateMasterRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster to upgrade. - // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; - - // Required. The Kubernetes version to change the master to. - // - // Users may specify either explicit versions offered by Kubernetes Engine or - // version aliases, which have the following behavior: - // - // - "latest": picks the highest valid Kubernetes version - // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - // - "1.X.Y-gke.N": picks an explicit Kubernetes version - // - "-": picks the default Kubernetes version - string master_version = 4 [(google.api.field_behavior) = REQUIRED]; - - // The name (project, location, cluster) of the cluster to update. - // Specified in the format `projects/*/locations/*/clusters/*`. - string name = 7; -} - -// SetMasterAuthRequest updates the admin password of a cluster. -message SetMasterAuthRequest { - // Operation type: what type update to perform. - enum Action { - // Operation is unknown and will error out. - UNKNOWN = 0; - - // Set the password to a user generated value. - SET_PASSWORD = 1; - - // Generate a new password and set it to that. - GENERATE_PASSWORD = 2; - - // Set the username. If an empty username is provided, basic authentication - // is disabled for the cluster. If a non-empty username is provided, basic - // authentication is enabled, with either a provided password or a generated - // one. - SET_USERNAME = 3; - } - - // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster to upgrade. - // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; - - // Required. The exact form of action to be taken on the master auth. - Action action = 4 [(google.api.field_behavior) = REQUIRED]; - - // Required. A description of the update. - MasterAuth update = 5 [(google.api.field_behavior) = REQUIRED]; - - // The name (project, location, cluster) of the cluster to set auth. - // Specified in the format `projects/*/locations/*/clusters/*`. - string name = 7; -} - -// DeleteClusterRequest deletes a cluster. -message DeleteClusterRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster to delete. - // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; - - // The name (project, location, cluster) of the cluster to delete. - // Specified in the format `projects/*/locations/*/clusters/*`. - string name = 4; -} - -// ListClustersRequest lists clusters. -message ListClustersRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - // This field has been deprecated and replaced by the parent field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides, or "-" for all zones. This field has been deprecated and - // replaced by the parent field. - string zone = 2 [deprecated = true]; - - // The parent (project and location) where the clusters will be listed. - // Specified in the format `projects/*/locations/*`. - // Location "-" matches all zones and all regions. - string parent = 4; -} - -// ListClustersResponse is the result of ListClustersRequest. -message ListClustersResponse { - // A list of clusters in the project in the specified zone, or - // across all ones. - repeated Cluster clusters = 1; - - // If any zones are listed here, the list of clusters returned - // may be missing those zones. - repeated string missing_zones = 2; -} - -// GetOperationRequest gets a single operation. -message GetOperationRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The server-assigned `name` of the operation. - // This field has been deprecated and replaced by the name field. - string operation_id = 3 [deprecated = true]; - - // The name (project, location, operation id) of the operation to get. - // Specified in the format `projects/*/locations/*/operations/*`. - string name = 5; -} - -// ListOperationsRequest lists operations. -message ListOperationsRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - // This field has been deprecated and replaced by the parent field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) to return - // operations for, or `-` for all zones. This field has been deprecated and - // replaced by the parent field. - string zone = 2 [deprecated = true]; - - // The parent (project and location) where the operations will be listed. - // Specified in the format `projects/*/locations/*`. - // Location "-" matches all zones and all regions. - string parent = 4; -} - -// CancelOperationRequest cancels a single operation. -message CancelOperationRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // operation resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The server-assigned `name` of the operation. - // This field has been deprecated and replaced by the name field. - string operation_id = 3 [deprecated = true]; - - // The name (project, location, operation id) of the operation to cancel. - // Specified in the format `projects/*/locations/*/operations/*`. - string name = 4; -} - -// ListOperationsResponse is the result of ListOperationsRequest. -message ListOperationsResponse { - // A list of operations in the project in the specified zone. - repeated Operation operations = 1; - - // If any zones are listed here, the list of operations returned - // may be missing the operations from those zones. - repeated string missing_zones = 2; -} - -// Gets the current Kubernetes Engine service configuration. -message GetServerConfigRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) to return - // operations for. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // The name (project and location) of the server config to get, - // specified in the format `projects/*/locations/*`. - string name = 4; -} - -// Kubernetes Engine service configuration. -message ServerConfig { - // ReleaseChannelConfig exposes configuration for a release channel. - message ReleaseChannelConfig { - // The release channel this configuration applies to. - ReleaseChannel.Channel channel = 1; - - // The default version for newly created clusters on the channel. - string default_version = 2; - - // List of valid versions for the channel. - repeated string valid_versions = 4; - } - - // Version of Kubernetes the service deploys by default. - string default_cluster_version = 1; - - // List of valid node upgrade target versions, in descending order. - repeated string valid_node_versions = 3; - - // Default image type. - string default_image_type = 4; - - // List of valid image types. - repeated string valid_image_types = 5; - - // List of valid master versions, in descending order. - repeated string valid_master_versions = 6; - - // List of release channel configurations. - repeated ReleaseChannelConfig channels = 9; -} - -// CreateNodePoolRequest creates a node pool for a cluster. -message CreateNodePoolRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://developers.google.com/console/help/new/#projectnumber). - // This field has been deprecated and replaced by the parent field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the parent - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster. - // This field has been deprecated and replaced by the parent field. - string cluster_id = 3 [deprecated = true]; - - // Required. The node pool to create. - NodePool node_pool = 4 [(google.api.field_behavior) = REQUIRED]; - - // The parent (project, location, cluster id) where the node pool will be - // created. Specified in the format - // `projects/*/locations/*/clusters/*`. - string parent = 6; -} - -// DeleteNodePoolRequest deletes a node pool for a cluster. -message DeleteNodePoolRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://developers.google.com/console/help/new/#projectnumber). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster. - // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; - - // Deprecated. The name of the node pool to delete. - // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 [deprecated = true]; - - // The name (project, location, cluster, node pool id) of the node pool to - // delete. Specified in the format - // `projects/*/locations/*/clusters/*/nodePools/*`. - string name = 6; -} - -// ListNodePoolsRequest lists the node pool(s) for a cluster. -message ListNodePoolsRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://developers.google.com/console/help/new/#projectnumber). - // This field has been deprecated and replaced by the parent field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the parent - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster. - // This field has been deprecated and replaced by the parent field. - string cluster_id = 3 [deprecated = true]; - - // The parent (project, location, cluster id) where the node pools will be - // listed. Specified in the format `projects/*/locations/*/clusters/*`. - string parent = 5; -} - -// GetNodePoolRequest retrieves a node pool for a cluster. -message GetNodePoolRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://developers.google.com/console/help/new/#projectnumber). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster. - // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; - - // Deprecated. The name of the node pool. - // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 [deprecated = true]; - - // The name (project, location, cluster, node pool id) of the node pool to - // get. Specified in the format - // `projects/*/locations/*/clusters/*/nodePools/*`. - string name = 6; -} - -// NodePool contains the name and configuration for a cluster's node pool. -// Node pools are a set of nodes (i.e. VM's), with a common configuration and -// specification, under the control of the cluster master. They may have a set -// of Kubernetes labels applied to them, which may be used to reference them -// during pod scheduling. They may also be resized up or down, to accommodate -// the workload. -message NodePool { - // These upgrade settings control the level of parallelism and the level of - // disruption caused by an upgrade. - // - // maxUnavailable controls the number of nodes that can be simultaneously - // unavailable. - // - // maxSurge controls the number of additional nodes that can be added to the - // node pool temporarily for the time of the upgrade to increase the number of - // available nodes. - // - // (maxUnavailable + maxSurge) determines the level of parallelism (how many - // nodes are being upgraded at the same time). - // - // Note: upgrades inevitably introduce some disruption since workloads need to - // be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, - // this holds true. (Disruption stays within the limits of - // PodDisruptionBudget, if it is configured.) - // - // Consider a hypothetical node pool with 5 nodes having maxSurge=2, - // maxUnavailable=1. This means the upgrade process upgrades 3 nodes - // simultaneously. It creates 2 additional (upgraded) nodes, then it brings - // down 3 old (not yet upgraded) nodes at the same time. This ensures that - // there are always at least 4 nodes available. - message UpgradeSettings { - // The maximum number of nodes that can be created beyond the current size - // of the node pool during the upgrade process. - int32 max_surge = 1; - - // The maximum number of nodes that can be simultaneously unavailable during - // the upgrade process. A node is considered available if its status is - // Ready. - int32 max_unavailable = 2; - } - - // The current status of the node pool instance. - enum Status { - // Not set. - STATUS_UNSPECIFIED = 0; - - // The PROVISIONING state indicates the node pool is being created. - PROVISIONING = 1; - - // The RUNNING state indicates the node pool has been created - // and is fully usable. - RUNNING = 2; - - // The RUNNING_WITH_ERROR state indicates the node pool has been created - // and is partially usable. Some error state has occurred and some - // functionality may be impaired. Customer may need to reissue a request - // or trigger a new update. - RUNNING_WITH_ERROR = 3; - - // The RECONCILING state indicates that some work is actively being done on - // the node pool, such as upgrading node software. Details can - // be found in the `statusMessage` field. - RECONCILING = 4; - - // The STOPPING state indicates the node pool is being deleted. - STOPPING = 5; - - // The ERROR state indicates the node pool may be unusable. Details - // can be found in the `statusMessage` field. - ERROR = 6; - } - - // The name of the node pool. - string name = 1; - - // The node configuration of the pool. - NodeConfig config = 2; - - // The initial node count for the pool. You must ensure that your - // Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - // is sufficient for this number of instances. You must also have available - // firewall and routes quota. - int32 initial_node_count = 3; - - // The list of Google Compute Engine - // [zones](https://cloud.google.com/compute/docs/zones#available) in which the - // NodePool's nodes should be located. - // - // If this value is unspecified during node pool creation, the - // [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) - // value will be used, instead. - // - // Warning: changing node pool locations will result in nodes being added - // and/or removed. - repeated string locations = 13; - - // [Output only] Server-defined URL for the resource. - string self_link = 100; - - // The version of the Kubernetes of this node. - string version = 101; - - // [Output only] The resource URLs of the [managed instance - // groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) - // associated with this node pool. - repeated string instance_group_urls = 102; - - // [Output only] The status of the nodes in this pool instance. - Status status = 103; - - // [Output only] Deprecated. Use conditions instead. - // Additional information about the current status of this - // node pool instance, if available. - string status_message = 104 [deprecated = true]; - - // Autoscaler configuration for this NodePool. Autoscaler is enabled - // only if a valid configuration is present. - NodePoolAutoscaling autoscaling = 4; - - // NodeManagement configuration for this NodePool. - NodeManagement management = 5; - - // The constraint on the maximum number of pods that can be run - // simultaneously on a node in the node pool. - MaxPodsConstraint max_pods_constraint = 6; - - // Which conditions caused the current node pool state. - repeated StatusCondition conditions = 105; - - // [Output only] The pod CIDR block size per node in this node pool. - int32 pod_ipv4_cidr_size = 7; - - // Upgrade settings control disruption and speed of the upgrade. - UpgradeSettings upgrade_settings = 107; -} - -// NodeManagement defines the set of node management services turned on for the -// node pool. -message NodeManagement { - // A flag that specifies whether node auto-upgrade is enabled for the node - // pool. If enabled, node auto-upgrade helps keep the nodes in your node pool - // up to date with the latest release version of Kubernetes. - bool auto_upgrade = 1; - - // A flag that specifies whether the node auto-repair is enabled for the node - // pool. If enabled, the nodes in this node pool will be monitored and, if - // they fail health checks too many times, an automatic repair action will be - // triggered. - bool auto_repair = 2; - - // Specifies the Auto Upgrade knobs for the node pool. - AutoUpgradeOptions upgrade_options = 10; -} - -// AutoUpgradeOptions defines the set of options for the user to control how -// the Auto Upgrades will proceed. -message AutoUpgradeOptions { - // [Output only] This field is set when upgrades are about to commence - // with the approximate start time for the upgrades, in - // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - string auto_upgrade_start_time = 1; - - // [Output only] This field is set when upgrades are about to commence - // with the description of the upgrade. - string description = 2; -} - -// MaintenancePolicy defines the maintenance policy to be used for the cluster. -message MaintenancePolicy { - // Specifies the maintenance window in which maintenance may be performed. - MaintenanceWindow window = 1; - - // A hash identifying the version of this policy, so that updates to fields of - // the policy won't accidentally undo intermediate changes (and so that users - // of the API unaware of some fields won't accidentally remove other fields). - // Make a `get()` request to the cluster to get the current - // resource version and include it with requests to set the policy. - string resource_version = 3; -} - -// MaintenanceWindow defines the maintenance window to be used for the cluster. -message MaintenanceWindow { - oneof policy { - // DailyMaintenanceWindow specifies a daily maintenance operation window. - DailyMaintenanceWindow daily_maintenance_window = 2; - - // RecurringWindow specifies some number of recurring time periods for - // maintenance to occur. The time windows may be overlapping. If no - // maintenance windows are set, maintenance can occur at any time. - RecurringTimeWindow recurring_window = 3; - } - - // Exceptions to maintenance window. Non-emergency maintenance should not - // occur in these windows. - map maintenance_exclusions = 4; -} - -// Represents an arbitrary window of time. -message TimeWindow { - // The time that the window first starts. - google.protobuf.Timestamp start_time = 1; - - // The time that the window ends. The end time should take place after the - // start time. - google.protobuf.Timestamp end_time = 2; -} - -// Represents an arbitrary window of time that recurs. -message RecurringTimeWindow { - // The window of the first recurrence. - TimeWindow window = 1; - - // An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how - // this window reccurs. They go on for the span of time between the start and - // end time. - // - // For example, to have something repeat every weekday, you'd use: - // `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` - // - // To repeat some window daily (equivalent to the DailyMaintenanceWindow): - // `FREQ=DAILY` - // - // For the first weekend of every month: - // `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` - // - // This specifies how frequently the window starts. Eg, if you wanted to have - // a 9-5 UTC-4 window every weekday, you'd use something like: - // ``` - // start time = 2019-01-01T09:00:00-0400 - // end time = 2019-01-01T17:00:00-0400 - // recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - // ``` - // - // Windows can span multiple days. Eg, to make the window encompass every - // weekend from midnight Saturday till the last minute of Sunday UTC: - // ``` - // start time = 2019-01-05T00:00:00Z - // end time = 2019-01-07T23:59:00Z - // recurrence = FREQ=WEEKLY;BYDAY=SA - // ``` - // - // Note the start and end time's specific dates are largely arbitrary except - // to specify duration of the window and when it first starts. - // The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. - string recurrence = 2; -} - -// Time window specified for daily maintenance operations. -message DailyMaintenanceWindow { - // Time within the maintenance window to start the maintenance operations. - // Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - // format "HH:MM", where HH : [00-23] and MM : [00-59] GMT. - string start_time = 2; - - // [Output only] Duration of the time window, automatically chosen to be - // smallest possible in the given scenario. - // Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - // format "PTnHnMnS". - string duration = 3; -} - -// SetNodePoolManagementRequest sets the node management properties of a node -// pool. -message SetNodePoolManagementRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster to update. - // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; - - // Deprecated. The name of the node pool to update. - // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 [deprecated = true]; - - // Required. NodeManagement configuration for the node pool. - NodeManagement management = 5 [(google.api.field_behavior) = REQUIRED]; - - // The name (project, location, cluster, node pool id) of the node pool to set - // management properties. Specified in the format - // `projects/*/locations/*/clusters/*/nodePools/*`. - string name = 7; -} - -// SetNodePoolSizeRequest sets the size a node -// pool. -message SetNodePoolSizeRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster to update. - // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; - - // Deprecated. The name of the node pool to update. - // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 [deprecated = true]; - - // Required. The desired node count for the pool. - int32 node_count = 5 [(google.api.field_behavior) = REQUIRED]; - - // The name (project, location, cluster, node pool id) of the node pool to set - // size. - // Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - string name = 7; -} - -// RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed -// NodePool upgrade. This will be an no-op if the last upgrade successfully -// completed. -message RollbackNodePoolUpgradeRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster to rollback. - // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; - - // Deprecated. The name of the node pool to rollback. - // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 [deprecated = true]; - - // The name (project, location, cluster, node pool id) of the node poll to - // rollback upgrade. - // Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - string name = 6; -} - -// ListNodePoolsResponse is the result of ListNodePoolsRequest. -message ListNodePoolsResponse { - // A list of node pools for a cluster. - repeated NodePool node_pools = 1; -} - -// ClusterAutoscaling contains global, per-cluster information -// required by Cluster Autoscaler to automatically adjust -// the size of the cluster and create/delete -// node pools based on the current needs. -message ClusterAutoscaling { - // Enables automatic node pool creation and deletion. - bool enable_node_autoprovisioning = 1; - - // Contains global constraints regarding minimum and maximum - // amount of resources in the cluster. - repeated ResourceLimit resource_limits = 2; - - // AutoprovisioningNodePoolDefaults contains defaults for a node pool - // created by NAP. - AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - - // The list of Google Compute Engine - // [zones](https://cloud.google.com/compute/docs/zones#available) in which the - // NodePool's nodes can be created by NAP. - repeated string autoprovisioning_locations = 5; -} - -// AutoprovisioningNodePoolDefaults contains defaults for a node pool created -// by NAP. -message AutoprovisioningNodePoolDefaults { - // Scopes that are used by NAP when creating node pools. - repeated string oauth_scopes = 1; - - // The Google Cloud Platform Service Account to be used by the node VMs. - string service_account = 2; - - // Specifies the upgrade settings for NAP created node pools - NodePool.UpgradeSettings upgrade_settings = 3; - - // Specifies the node management options for NAP created node-pools. - NodeManagement management = 4; - - // Minimum CPU platform to be used for NAP created node pools. - // The instance may be scheduled on the specified or newer CPU platform. - // Applicable values are the friendly names of CPU platforms, such as - // minCpuPlatform: Intel Haswell or - // minCpuPlatform: Intel Sandy Bridge. For more - // information, read [how to specify min CPU - // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) - // To unset the min cpu platform field pass "automatic" - // as field value. - string min_cpu_platform = 5; - - // Size of the disk attached to each node, specified in GB. - // The smallest allowed disk size is 10GB. - // - // If unspecified, the default disk size is 100GB. - int32 disk_size_gb = 6; - - // Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - // 'pd-balanced') - // - // If unspecified, the default disk type is 'pd-standard' - string disk_type = 7; - - // Shielded Instance options. - ShieldedInstanceConfig shielded_instance_config = 8; - - // The Customer Managed Encryption Key used to encrypt the boot disk attached - // to each node in the node pool. This should be of the form - // projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - // For more information about protecting resources with Cloud KMS Keys please - // see: - // https://cloud.google.com/compute/docs/disks/customer-managed-encryption - string boot_disk_kms_key = 9; -} - -// Contains information about amount of some resource in the cluster. -// For memory, value should be in GB. -message ResourceLimit { - // Resource name "cpu", "memory" or gpu-specific string. - string resource_type = 1; - - // Minimum amount of the resource in the cluster. - int64 minimum = 2; - - // Maximum amount of the resource in the cluster. - int64 maximum = 3; -} - -// NodePoolAutoscaling contains information required by cluster autoscaler to -// adjust the size of the node pool to the current cluster usage. -message NodePoolAutoscaling { - // Is autoscaling enabled for this node pool. - bool enabled = 1; - - // Minimum number of nodes in the NodePool. Must be >= 1 and <= - // max_node_count. - int32 min_node_count = 2; - - // Maximum number of nodes in the NodePool. Must be >= min_node_count. There - // has to enough quota to scale up the cluster. - int32 max_node_count = 3; - - // Can this node pool be deleted automatically. - bool autoprovisioned = 4; -} - -// SetLabelsRequest sets the Google Cloud Platform labels on a Google Container -// Engine cluster, which will in turn set them for Google Compute Engine -// resources used by that cluster -message SetLabelsRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://developers.google.com/console/help/new/#projectnumber). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster. - // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; - - // Required. The labels to set for that cluster. - map resource_labels = 4 [(google.api.field_behavior) = REQUIRED]; - - // Required. The fingerprint of the previous set of labels for this resource, - // used to detect conflicts. The fingerprint is initially generated by - // Kubernetes Engine and changes after every request to modify or update - // labels. You must always provide an up-to-date fingerprint hash when - // updating or changing labels. Make a `get()` request to the - // resource to get the latest fingerprint. - string label_fingerprint = 5 [(google.api.field_behavior) = REQUIRED]; - - // The name (project, location, cluster id) of the cluster to set labels. - // Specified in the format `projects/*/locations/*/clusters/*`. - string name = 7; -} - -// SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for -// a cluster. -message SetLegacyAbacRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster to update. - // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; - - // Required. Whether ABAC authorization will be enabled in the cluster. - bool enabled = 4 [(google.api.field_behavior) = REQUIRED]; - - // The name (project, location, cluster id) of the cluster to set legacy abac. - // Specified in the format `projects/*/locations/*/clusters/*`. - string name = 6; -} - -// StartIPRotationRequest creates a new IP for the cluster and then performs -// a node upgrade on each node pool to point to the new IP. -message StartIPRotationRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://developers.google.com/console/help/new/#projectnumber). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster. - // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; - - // The name (project, location, cluster id) of the cluster to start IP - // rotation. Specified in the format `projects/*/locations/*/clusters/*`. - string name = 6; - - // Whether to rotate credentials during IP rotation. - bool rotate_credentials = 7; -} - -// CompleteIPRotationRequest moves the cluster master back into single-IP mode. -message CompleteIPRotationRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://developers.google.com/console/help/new/#projectnumber). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster. - // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; - - // The name (project, location, cluster id) of the cluster to complete IP - // rotation. Specified in the format `projects/*/locations/*/clusters/*`. - string name = 7; -} - -// AcceleratorConfig represents a Hardware Accelerator request. -message AcceleratorConfig { - // The number of the accelerator cards exposed to an instance. - int64 accelerator_count = 1; - - // The accelerator type resource name. List of supported accelerators - // [here](https://cloud.google.com/compute/docs/gpus) - string accelerator_type = 2; -} - -// WorkloadMetadataConfig defines the metadata configuration to expose to -// workloads on the node pool. -message WorkloadMetadataConfig { - // Mode is the configuration for how to expose metadata to workloads running - // on the node. - enum Mode { - // Not set. - MODE_UNSPECIFIED = 0; - - // Expose all Compute Engine metadata to pods. - GCE_METADATA = 1; - - // Run the GKE Metadata Server on this node. The GKE Metadata Server exposes - // a metadata API to workloads that is compatible with the V1 Compute - // Metadata APIs exposed by the Compute Engine and App Engine Metadata - // Servers. This feature can only be enabled if Workload Identity is enabled - // at the cluster level. - GKE_METADATA = 2; - } - - // Mode is the configuration for how to expose metadata to workloads running - // on the node pool. - Mode mode = 2; -} - -// SetNetworkPolicyRequest enables/disables network policy for a cluster. -message SetNetworkPolicyRequest { - // Deprecated. The Google Developers Console [project ID or project - // number](https://developers.google.com/console/help/new/#projectnumber). - // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; - - // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. This field has been deprecated and replaced by the name - // field. - string zone = 2 [deprecated = true]; - - // Deprecated. The name of the cluster. - // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; - - // Required. Configuration options for the NetworkPolicy feature. - NetworkPolicy network_policy = 4 [(google.api.field_behavior) = REQUIRED]; - - // The name (project, location, cluster id) of the cluster to set networking - // policy. Specified in the format `projects/*/locations/*/clusters/*`. - string name = 6; -} - -// SetMaintenancePolicyRequest sets the maintenance policy for a cluster. -message SetMaintenancePolicyRequest { - // Required. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the - // cluster resides. - string zone = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The name of the cluster to update. - string cluster_id = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The maintenance policy to be set for the cluster. An empty field - // clears the existing maintenance policy. - MaintenancePolicy maintenance_policy = 4 [(google.api.field_behavior) = REQUIRED]; - - // The name (project, location, cluster id) of the cluster to set maintenance - // policy. - // Specified in the format `projects/*/locations/*/clusters/*`. - string name = 5; -} - -// StatusCondition describes why a cluster or a node pool has a certain status -// (e.g., ERROR or DEGRADED). -message StatusCondition { - // Code for each condition - enum Code { - // UNKNOWN indicates a generic condition. - UNKNOWN = 0; - - // GCE_STOCKOUT indicates that Google Compute Engine resources are - // temporarily unavailable. - GCE_STOCKOUT = 1; - - // GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot - // service account. - GKE_SERVICE_ACCOUNT_DELETED = 2; - - // Google Compute Engine quota was exceeded. - GCE_QUOTA_EXCEEDED = 3; - - // Cluster state was manually changed by an SRE due to a system logic error. - SET_BY_OPERATOR = 4; - - // Unable to perform an encrypt operation against the CloudKMS key used for - // etcd level encryption. - // More codes TBA - CLOUD_KMS_KEY_ERROR = 7; - } - - // Machine-friendly representation of the condition - Code code = 1; - - // Human-friendly representation of the condition - string message = 2; -} - -// NetworkConfig reports the relative names of network & subnetwork. -message NetworkConfig { - // Output only. The relative name of the Google Compute Engine - // [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - // to which the cluster is connected. Example: - // projects/my-project/global/networks/my-network - string network = 1; - - // Output only. The relative name of the Google Compute Engine - // [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the - // cluster is connected. Example: - // projects/my-project/regions/us-central1/subnetworks/my-subnet - string subnetwork = 2; - - // Whether Intra-node visibility is enabled for this cluster. - // This makes same node pod to pod traffic visible for VPC network. - bool enable_intra_node_visibility = 5; - - // Whether the cluster disables default in-node sNAT rules. In-node sNAT rules - // will be disabled when default_snat_status is disabled. When disabled is set - // to false, default IP masquerade rules will be applied to the nodes to - // prevent sNAT on cluster internal traffic. - DefaultSnatStatus default_snat_status = 7; -} - -// GetOpenIDConfigRequest gets the OIDC discovery document for the -// cluster. See the OpenID Connect Discovery 1.0 specification for details. -message GetOpenIDConfigRequest { - // The cluster (project, location, cluster id) to get the discovery document - // for. Specified in the format `projects/*/locations/*/clusters/*`. - string parent = 1; -} - -// GetOpenIDConfigResponse is an OIDC discovery document for the cluster. -// See the OpenID Connect Discovery 1.0 specification for details. -message GetOpenIDConfigResponse { - // OIDC Issuer. - string issuer = 1; - - // JSON Web Key uri. - string jwks_uri = 2; - - // Supported response types. - repeated string response_types_supported = 3; - - // Supported subject types. - repeated string subject_types_supported = 4; - - // supported ID Token signing Algorithms. - repeated string id_token_signing_alg_values_supported = 5; - - // Supported claims. - repeated string claims_supported = 6; - - // Supported grant types. - repeated string grant_types = 7; -} - -// GetJSONWebKeysRequest gets the public component of the keys used by the -// cluster to sign token requests. This will be the jwks_uri for the discover -// document returned by getOpenIDConfig. See the OpenID Connect -// Discovery 1.0 specification for details. -message GetJSONWebKeysRequest { - // The cluster (project, location, cluster id) to get keys for. Specified in - // the format `projects/*/locations/*/clusters/*`. - string parent = 1; -} - -// Jwk is a JSON Web Key as specified in RFC 7517 -message Jwk { - // Key Type. - string kty = 1; - - // Algorithm. - string alg = 2; - - // Permitted uses for the public keys. - string use = 3; - - // Key ID. - string kid = 4; - - // Used for RSA keys. - string n = 5; - - // Used for RSA keys. - string e = 6; - - // Used for ECDSA keys. - string x = 7; - - // Used for ECDSA keys. - string y = 8; - - // Used for ECDSA keys. - string crv = 9; -} - -// GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517 -message GetJSONWebKeysResponse { - // The public component of the keys used by the cluster to sign token - // requests. - repeated Jwk keys = 1; -} - -// ReleaseChannel indicates which release channel a cluster is -// subscribed to. Release channels are arranged in order of risk. -// -// When a cluster is subscribed to a release channel, Google maintains -// both the master version and the node version. Node auto-upgrade -// defaults to true and cannot be disabled. -message ReleaseChannel { - // Possible values for 'channel'. - enum Channel { - // No channel specified. - UNSPECIFIED = 0; - - // RAPID channel is offered on an early access basis for customers who want - // to test new releases. - // - // WARNING: Versions available in the RAPID Channel may be subject to - // unresolved issues with no known workaround and are not subject to any - // SLAs. - RAPID = 1; - - // Clusters subscribed to REGULAR receive versions that are considered GA - // quality. REGULAR is intended for production users who want to take - // advantage of new features. - REGULAR = 2; - - // Clusters subscribed to STABLE receive versions that are known to be - // stable and reliable in production. - STABLE = 3; - } - - // channel specifies which release channel the cluster is subscribed to. - Channel channel = 1; -} - -// IntraNodeVisibilityConfig contains the desired config of the intra-node -// visibility on this cluster. -message IntraNodeVisibilityConfig { - // Enables intra node visibility for this cluster. - bool enabled = 1; -} - -// Constraints applied to pods. -message MaxPodsConstraint { - // Constraint enforced on the max num of pods per node. - int64 max_pods_per_node = 1; -} - -// Configuration for the use of Kubernetes Service Accounts in GCP IAM -// policies. -message WorkloadIdentityConfig { - // The workload pool to attach all Kubernetes service accounts to. - string workload_pool = 2; -} - -// Configuration of etcd encryption. -message DatabaseEncryption { - // State of etcd encryption. - enum State { - // Should never be set - UNKNOWN = 0; - - // Secrets in etcd are encrypted. - ENCRYPTED = 1; - - // Secrets in etcd are stored in plain text (at etcd level) - this is - // unrelated to Compute Engine level full disk encryption. - DECRYPTED = 2; - } - - // Denotes the state of etcd encryption. - State state = 2; - - // Name of CloudKMS key to use for the encryption of secrets in etcd. - // Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key - string key_name = 1; -} - -// ListUsableSubnetworksRequest requests the list of usable subnetworks -// available to a user for creating clusters. -message ListUsableSubnetworksRequest { - // The parent project where subnetworks are usable. - // Specified in the format `projects/*`. - string parent = 1; - - // Filtering currently only supports equality on the networkProjectId and must - // be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` - // is the project which owns the listed subnetworks. This defaults to the - // parent project ID. - string filter = 2; - - // The max number of results per page that should be returned. If the number - // of available results is larger than `page_size`, a `next_page_token` is - // returned which can be used to get the next page of results in subsequent - // requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - int32 page_size = 3; - - // Specifies a page token to use. Set this to the nextPageToken returned by - // previous list requests to get the next page of results. - string page_token = 4; -} - -// ListUsableSubnetworksResponse is the response of -// ListUsableSubnetworksRequest. -message ListUsableSubnetworksResponse { - // A list of usable subnetworks in the specified network project. - repeated UsableSubnetwork subnetworks = 1; - - // This token allows you to get the next page of results for list requests. - // If the number of results is larger than `page_size`, use the - // `next_page_token` as a value for the query parameter `page_token` in the - // next request. The value will become empty when there are no more pages. - string next_page_token = 2; -} - -// Secondary IP range of a usable subnetwork. -message UsableSubnetworkSecondaryRange { - // Status shows the current usage of a secondary IP range. - enum Status { - // UNKNOWN is the zero value of the Status enum. It's not a valid status. - UNKNOWN = 0; - - // UNUSED denotes that this range is unclaimed by any cluster. - UNUSED = 1; - - // IN_USE_SERVICE denotes that this range is claimed by a cluster for - // services. It cannot be used for other clusters. - IN_USE_SERVICE = 2; - - // IN_USE_SHAREABLE_POD denotes this range was created by the network admin - // and is currently claimed by a cluster for pods. It can only be used by - // other clusters as a pod range. - IN_USE_SHAREABLE_POD = 3; - - // IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed - // for pods. It cannot be used for other clusters. - IN_USE_MANAGED_POD = 4; - } - - // The name associated with this subnetwork secondary range, used when adding - // an alias IP range to a VM instance. - string range_name = 1; - - // The range of IP addresses belonging to this subnetwork secondary range. - string ip_cidr_range = 2; - - // This field is to determine the status of the secondary range programmably. - Status status = 3; -} - -// UsableSubnetwork resource returns the subnetwork name, its associated network -// and the primary CIDR range. -message UsableSubnetwork { - // Subnetwork Name. - // Example: projects/my-project/regions/us-central1/subnetworks/my-subnet - string subnetwork = 1; - - // Network Name. - // Example: projects/my-project/global/networks/my-network - string network = 2; - - // The range of internal addresses that are owned by this subnetwork. - string ip_cidr_range = 3; - - // Secondary IP ranges. - repeated UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - - // A human readable status message representing the reasons for cases where - // the caller cannot use the secondary ranges under the subnet. For example if - // the secondary_ip_ranges is empty due to a permission issue, an insufficient - // permission message will be given by status_message. - string status_message = 5; -} - -// Configuration for exporting cluster resource usages. -message ResourceUsageExportConfig { - // Parameters for using BigQuery as the destination of resource usage export. - message BigQueryDestination { - // The ID of a BigQuery Dataset. - string dataset_id = 1; - } - - // Parameters for controlling consumption metering. - message ConsumptionMeteringConfig { - // Whether to enable consumption metering for this cluster. If enabled, a - // second BigQuery table will be created to hold resource consumption - // records. - bool enabled = 1; - } - - // Configuration to use BigQuery as usage export destination. - BigQueryDestination bigquery_destination = 1; - - // Whether to enable network egress metering for this cluster. If enabled, a - // daemonset will be created in the cluster to meter network egress traffic. - bool enable_network_egress_metering = 2; - - // Configuration to enable resource consumption metering. - ConsumptionMeteringConfig consumption_metering_config = 3; -} - -// VerticalPodAutoscaling contains global, per-cluster information -// required by Vertical Pod Autoscaler to automatically adjust -// the resources of pods controlled by it. -message VerticalPodAutoscaling { - // Enables vertical pod autoscaling. - bool enabled = 1; -} - -// DefaultSnatStatus contains the desired state of whether default sNAT should -// be disabled on the cluster. -message DefaultSnatStatus { - // Disables cluster default sNAT rules. - bool disabled = 1; -} - -// Configuration of Shielded Nodes feature. -message ShieldedNodes { - // Whether Shielded Nodes features are enabled on all nodes in this cluster. - bool enabled = 1; -} diff --git a/renovate.json b/renovate.json deleted file mode 100644 index 05f6b7b3..00000000 --- a/renovate.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extends": [ - ":separateMajorReleases", - ":combinePatchMinorReleases", - ":ignoreUnstable", - ":prImmediately", - ":updateNotScheduled", - ":automergeDisabled", - ":ignoreModulesAndTests", - ":maintainLockFilesDisabled", - ":autodetectPinVersions" - ], - "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-container", - "^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" - ], - "semanticCommitType": "test", - "semanticCommitScope": "deps" - }, - { - "packagePatterns": [ - "^com.google.cloud:google-cloud-" - ], - "ignoreUnstable": false - }, - { - "packagePatterns": [ - "^com.fasterxml.jackson.core" - ], - "groupName": "jackson dependencies" - } - ], - "semanticCommits": true, - "masterIssue": true -} diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml deleted file mode 100644 index 05871bab..00000000 --- a/samples/install-without-bom/pom.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - 4.0.0 - com.google.cloud - container-install-without-bom - jar - Google Kubernetes Engine Install Without Bom - https://github.com/googleapis/java-container - - - - com.google.cloud.samples - shared-configuration - 1.0.21 - - - - 1.8 - 1.8 - UTF-8 - - - - - - - com.google.cloud - google-cloud-container - 1.2.4 - - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.2 - test - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.2.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 c39b2788..00000000 --- a/samples/pom.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-container-samples - 0.0.1-SNAPSHOT - pom - Google Kubernetes Engine Samples Parent - https://github.com/googleapis/java-container - - Java idiomatic client for Google Cloud Platform services. - - - - - com.google.cloud.samples - shared-configuration - 1.0.21 - - - - 1.8 - 1.8 - UTF-8 - - - - install-without-bom - snapshot - snippets - - - - - - org.apache.maven.plugins - maven-deploy-plugin - 2.8.2 - - true - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.8 - - true - - - - - diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml deleted file mode 100644 index d7041223..00000000 --- a/samples/snapshot/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - 4.0.0 - com.google.cloud - container-snapshot - jar - Google Kubernetes Engine Snapshot Samples - https://github.com/googleapis/java-container - - - - com.google.cloud.samples - shared-configuration - 1.0.21 - - - - 1.8 - 1.8 - UTF-8 - - - - - - com.google.cloud - google-cloud-container - 1.2.4 - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.2 - test - - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.2.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/pom.xml b/samples/snippets/pom.xml deleted file mode 100644 index 153bfb6c..00000000 --- a/samples/snippets/pom.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - 4.0.0 - com.google.cloud - container-snippets - jar - Google Kubernetes Engine Snippets - https://github.com/googleapis/java-container - - - - com.google.cloud.samples - shared-configuration - 1.0.21 - - - - 1.8 - 1.8 - UTF-8 - - - - - - - - com.google.cloud - libraries-bom - 16.4.0 - pom - import - - - - - - - com.google.cloud - google-cloud-container - - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.2 - test - - - diff --git a/synth.metadata b/synth.metadata deleted file mode 100644 index 6a6d0467..00000000 --- a/synth.metadata +++ /dev/null @@ -1,315 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/java-container.git", - "sha": "dbc84cdc77ff7bf3e03ab221afce09907c6e8a31" - } - }, - { - "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "8d8c008e56f1af31d57f75561e0f1848ffb29eeb", - "internalRef": "356341083" - } - }, - { - "git": { - "name": "synthtool", - "remote": "https://github.com/googleapis/synthtool.git", - "sha": "2414b817065726eae0bc525346c7e874f969369d" - } - } - ], - "destinations": [ - { - "client": { - "source": "googleapis", - "apiName": "container", - "apiVersion": "v1", - "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/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-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java", - "google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java", - "google-cloud-container/src/main/java/com/google/cloud/container/v1/package-info.java", - "google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java", - "google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java", - "google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerCallableFactory.java", - "google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java", - "google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java", - "google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManager.java", - "google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java", - "grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java", - "java.header", - "license-checks.xml", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfig.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfigOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfig.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfigOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptions.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptionsOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfig.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfigOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfig.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfigOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscaling.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscalingOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdate.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfig.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ConfigConnectorConfigOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindow.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindowOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryption.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryptionOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatus.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DefaultSnatStatusOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfig.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DnsCacheConfigOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponse.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetJSONWebKeysResponseOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponse.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOpenIDConfigResponseOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscaling.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscalingOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancing.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancingOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfig.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfigOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Jwk.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/JwkOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboard.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboardOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbac.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbacOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponse.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponseOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponse.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponseOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponse.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponseOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponse.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponseOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicy.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicyOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindow.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindowOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfigOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraint.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraintOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicy.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfig.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfigOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagement.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagementOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscaling.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscalingOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaint.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgress.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationProgressOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfig.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterMasterGlobalAccessConfigOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindow.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindowOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannel.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReleaseChannelOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinity.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ReservationAffinityOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimit.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimitOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfig.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfigOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfig.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SandboxConfigOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfigOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfig.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfigOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodes.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedNodesOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindow.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindowOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetwork.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRange.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRangeOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscaling.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscalingOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfig.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadIdentityConfigOrBuilder.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfig.java", - "proto-google-cloud-container-v1/src/main/java/com/google/container/v1/WorkloadMetadataConfigOrBuilder.java", - "proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.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/synth.py b/synth.py deleted file mode 100644 index 2091249e..00000000 --- a/synth.py +++ /dev/null @@ -1,32 +0,0 @@ -# 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. - -"""This script is used to synthesize generated parts of this library.""" - -import synthtool.languages.java as java - -AUTOSYNTH_MULTIPLE_COMMITS = True - -service = 'container' -versions = ['v1'] - -for version in versions: - java.bazel_library( - service=service, - version=version, - proto_path=f'google/{service}/{version}', - bazel_target=f'//google/{service}/{version}:google-cloud-{service}-{version}-java', - ) - -java.common_templates() diff --git a/versions.txt b/versions.txt deleted file mode 100644 index 542e9307..00000000 --- a/versions.txt +++ /dev/null @@ -1,6 +0,0 @@ -# Format: -# module:released-version:current-version - -proto-google-cloud-container-v1:1.2.4:1.2.4 -grpc-google-cloud-container-v1:1.2.4:1.2.4 -google-cloud-container:1.2.4:1.2.4